[Xorp-users] AF_NETLINK NLMSG_ERROR message: File exists

Pavlin Radoslavov pavlin@icir.org
Wed, 06 Oct 2004 11:55:07 -0700


> I just wanted to explain how I got past these error messages on Linux
> 2.6.X running XORP CVS :

Xavier,

I tried with Linux Fedora Core2 kernel-2.6.5-1.358 (within vmware)
and with RedHat-7.2 kernel-2.4.18,
but I couldn't replicate the problem:

root@fedora[16] ip addr 
<DEL>
3: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:0c:29:4d:20:30 brd ff:ff:ff:ff:ff:ff
    inet 172.16.1.128/24 brd 172.16.1.255 scope global eth0
    inet6 fe80::20c:29ff:fe4d:2030/64 scope link 
       valid_lft forever preferred_lft forever


XORP CONFIG:
interfaces {
    interface eth0 {
        vif eth0 {
            address 172.16.1.128 {
                prefix-length: 24
                broadcast: 172.16.1.255
                enabled: true
            }
        }
    }
}

XORP OUTPUT:
root@fedora[17] ./xorp_rtrmgr -b ~/xorp/rtrmgr/foo.boot
[ 2004/10/06 11:51:20  INFO xorp_rtrmgr:30082 RTRMGR +134
/home/vmware/pavlin/xorp/rtrmgr/master_conf_tree.cc execute ]
Changed modules: interfaces
[ 2004/10/06 11:51:20  INFO xorp_rtrmgr:30082 RTRMGR +404
/home/vmware/pavlin/xorp/rtrmgr/module_manager.cc run ] Running
module: interfaces
(/home/vmware/pavlin/work/xorp/build/fedora/fea/xorp_fea)
[ 2004/10/06 11:51:22  INFO xorp_rtrmgr:30082 RTRMGR +1366
/home/vmware/pavlin/xorp/rtrmgr/task.cc run_task ] No more tasks to
run


Which particular Linux kernel version do you use?
Also, could you send the output of "ip addr" before and after you
run XORP.

Thanks,
Pavlin


> 
> [ 2004/10/04 15:14:06  ERROR xorp_fea:20999 FEA +485 ifconfig_set.cc
> push_vif_address ] On eth1/eth1/10.0.0.1: Failed to configure address:
> AF_NETLINK NLMSG_ERROR message: File exists
> [ 2004/10/04 15:14:06 WARNING xorp_fea XrlFeaTarget ] Handling method
> for ifmgr/0.1/commit_transaction failed: XrlCmdError 102 Command failed
> On eth1/eth1/10.0.0.1: Failed to configure address: AF_NETLINK
> NLMSG_ERROR message: File exists
> [ 2004/10/04 15:14:06  ERROR xorp_rtrmgr:20998 RTRMGR +538
> master_conf_tree.cc commit_pass2_done ] Commit failed: 102 Command
> failed On eth1/eth1/10.0.0.1: Failed to configure address: AF_NETLINK
> NLMSG_ERROR message: File exists
> [ 2004/10/04 15:14:06  ERROR xorp_rtrmgr:20998 RTRMGR +146
> master_conf_tree.cc config_done ] Configuration failed: 102 Command
> failed On eth1/eth1/10.0.0.1: Failed toconfigure address: AF_NETLINK
> NLMSG_ERROR message: File exists
> 
> These error messages come from a section like that in config.boot:
> address 10.0.0.1 {
>      prefix-length: 24
>      broadcast: 10.0.0.255
>      enabled: true
> }
> 
> It arrives when the interface is already configured with the address.
> So I did a "ip addr del 10.0.0.1 dev eth1".  I also did a "modprobe
> netlink_dev" because I saw netlink in the error messages but I don't
> know if it was useful.
> 
> Hope it helps,
> Xavier