[Xorp-users] AF_NETLINK NLMSG_ERROR message: File exists

Xavier Brouckaert xbr@info.ucl.ac.be
Thu, 07 Oct 2004 15:21:32 +0200


--=-wNAmimzB4dsEUSB2AoxC
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Pavlin,

I'm running a native (no vmware) Debian/unstable Linux with kernel
2.6.9rc2 (I had to switch from 2.6.8.1 to 2.6.9rc2 because of a bug in
the IPv6 stack).

My /etc/network/interfaces contains that :
-----------
iface eth1 inet static
        address 10.0.0.1
        netmask 255.255.255.0
-----------

My config.boot :
-----------
interfaces {
    interface eth1 {
        description: "test interface"
        enabled: true
        vif eth1 {
            enabled: true
            address 10.0.0.1 {
                prefix-length: 24
                broadcast: 10.0.0.255
                enabled: true
            }
        }
    }
}

fea {
    enable-unicast-forwarding4: true
    enable-unicast-forwarding6: true
}
------------

netlink_dev has nothing to do with the problem. To reproduce the
problem, I had first to reboot because I can't reproduce it after it is
fixed. =20

xbr@bush:~$ ip addr
[...]
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:ad:80:92 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/24 brd 10.255.255.255 scope global eth1
    inet6 fe80::207:e9ff:fead:8092/64 scope link
       valid_lft forever preferred_lft forever
xbr@bush:~$ cd /usr/local/xorp/

xbr@bush:/usr/local/xorp$ sudo bin/xorp_rtrmgr
[ 2004/10/07 14:32:30  INFO xorp_rtrmgr:3283 RTRMGR +134
master_conf_tree.cc execute ] Changed modules: interfaces, fea
[ 2004/10/07 14:32:30  INFO xorp_rtrmgr:3283 RTRMGR +404
module_manager.cc run] Running module: interfaces
(/usr/local/xorp/fea/xorp_fea)
[ 2004/10/07 14:32:32  ERROR xorp_fea:3284 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/07 14:32:32 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/07 14:32:32  ERROR xorp_rtrmgr:3283 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/07 14:32:32  ERROR xorp_rtrmgr:3283 RTRMGR +146
master_conf_tree.cc config_done ] Configuration failed: 102 Command
failed On eth1/eth1/10.0.0.1: Failed to configure address: AF_NETLINK
NLMSG_ERROR message: File exists
[ 2004/10/07 14:32:32  INFO xorp_rtrmgr:3283 RTRMGR +1366 task.cc
run_task ] No more tasks to run
[ 2004/10/07 14:32:32  INFO xorp_rtrmgr:3283 RTRMGR +216
module_manager.cc terminate ] Terminating module: interfaces
[ 2004/10/07 14:32:32  INFO xorp_rtrmgr:3283 RTRMGR +262
module_manager.cc terminate ] Killing module: interfaces (pid =3D 3284)
[ 2004/10/07 14:32:32  INFO xorp_rtrmgr:3283 RTRMGR +546
module_manager.cc killed ] Module killed during shutdown: interfaces

xbr@bush:/usr/local/xorp$ ip addr
[...]
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:ad:80:92 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/24 brd 10.255.255.255 scope global eth1
    inet6 fe80::207:e9ff:fead:8092/64 scope link
       valid_lft forever preferred_lft forever

xbr@bush:/usr/local/xorp$ sudo ip addr del dev eth1 10.0.0.1/24

xbr@bush:/usr/local/xorp$ sudo bin/xorp_rtrmgr
[ 2004/10/07 14:33:18  INFO xorp_rtrmgr:3287 RTRMGR +134
master_conf_tree.cc execute ] Changed modules: interfaces, fea
[ 2004/10/07 14:33:18  INFO xorp_rtrmgr:3287 RTRMGR +404
module_manager.cc run] Running module: interfaces
(/usr/local/xorp/fea/xorp_fea)
[ 2004/10/07 14:33:20  INFO xorp_rtrmgr:3287 RTRMGR +404
module_manager.cc run] Running module: fea
(/usr/local/xorp/fea/xorp_fea)
[ 2004/10/07 14:33:26  INFO xorp_rtrmgr:3287 RTRMGR +1366 task.cc
run_task ] No more tasks to run
[ 2004/10/07 14:33:36  INFO xorp_rtrmgr:3287 RTRMGR +216
module_manager.cc terminate ] Terminating module: fea
[ 2004/10/07 14:33:36  INFO xorp_rtrmgr:3287 RTRMGR +568 task.cc
shutdown ] Shutting down module: interfaces
[ 2004/10/07 14:33:36  INFO xorp_rtrmgr:3287 RTRMGR +524
module_manager.cc normal_exit ] Module normal exit: interfaces
[ 2004/10/07 14:33:37  INFO xorp_rtrmgr:3287 RTRMGR +1366 task.cc
run_task ] No more tasks to run

xbr@bush:/usr/local/xorp$ ip addr
[...]
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:ad:80:92 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/24 brd 10.0.0.255 scope global eth1
    inet6 fe80::207:e9ff:fead:8092/64 scope link
       valid_lft forever preferred_lft forever

Has it to do with the fact that the broadcast address of eth1 is
misconfigured in the first place ?

--=20
Xavier Brouckaert <xbr@info.ucl.ac.be>
UCL

--=-wNAmimzB4dsEUSB2AoxC
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBZULc0wy6WJnsH5oRAuuzAJ9tXydq6sXhnxWJHhfHWlIMWPYr+QCgyFgZ
2rZZ2udPjHZ3DLnFH+yO+/o=
=fKDW
-----END PGP SIGNATURE-----

--=-wNAmimzB4dsEUSB2AoxC--