Package: ifupdown
Version: 0.6.8+nmu1

When the /etc/network/interfaces contains a duplicate static route add
statement, the ifupdown stops parsing the static routes with the error
message :
RTNETLINK answers: File exists
Failed to bring up eth0


Here is a sample /etc/netork/interfaces with duplicate route add
statement :

---------------------------------------------------
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 10.1.1.1
        netmask 255.255.255.0
        gateway 10.1.1.254
        up ip route add 10.2.1.0/24 via 10.1.1.10
        down ip route del 10.2.1.0/24 via 10.1.1.10
        up ip route add 10.2.1.0/24 via 10.1.1.10
        down ip route del 10.2.1.0/24 via 10.1.1.10
        up ip route add 10.2.2.0/24 via 10.1.1.10
        down ip route del 10.2.2.0/24 via 10.1.1.10
----------------------------------------------------
with the file above, the 10.2.2.0 route will never be added to the
routing table.

could it be possible to get a better message than the RNETLINK file
exists answer, and continue parsing the static routes ?

I tested this on debian lenny (5.0.2) with kernel 2.6.26-2-686.





-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to