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?
** Description changed:
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/interfaces file in the
interface stanza, like so:
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-nameservers 192.168.1.50
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->Administration->Network to add a non-default route either. That
- would be a nice RFQ.
+ would be a nice idea for an enhancement.
--
adding non-default route in /etc/network/interfaces doesn't work
https://bugs.launchpad.net/bugs/97058
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs