adding non-default route in /etc/network/interfaces doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ifupdown
As I understand it, the proper way to introduce a non-default route at boot time is to add a "up route add -net ..." line to the network interface in question to the /etc/network/
iface eth0 inet static
address 10.1.1.123
netmask 255.255.255.0
network 10.1.1.0
broadcast 10.1.1.255
gateway 10.1.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-search example.com
up route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.1.1.2
However, the "up route" line doesn't get executed.
As a separate but related issue, there's no way using System-
After booting, the "up route ..." line is not run, as evidenced by "netstat -r" not showing the route specified. However, running "/etc/init. d/networking stop" followed by "/etc/init. d/networking start" after boot runs the "up route ..." line. Race condition of some sort, perhaps, at boot time?