Route to local subnet missing
Shadow Hawkins on Sunday, 15 May 2011 05:55:32
I've got a linux router running Ubuntu, Shorewall, radvd and aiccu. The LAN is connected at the device eth0, which shares a bridge br0 with vnet0.
Somehow the route to <my prefix>::/64 through br0 is missing after I restarted br0 (ifconfig up&down). I have to run "ip -6 ro add <my prefix>::/64 dev br0" manually to get it to work. Running that command through /etc/network/interfaces up or post-up doesn't work either. It looks like something will always remove the route after the interface gets up.
The route through lo stays as it should.
Does anyone know how to prevent the route from being deleted?
Route to local subnet missing
Shadow Hawkins on Sunday, 05 June 2011 16:40:06
Hello
It seems like you have several update deamons working on your system. One of them beeing you, the other one beeing something else. But if you run a GUI on your system, it can be the culprit. But try to search through your logs and se if you can find info on route updates.
-Anders
Route to local subnet missing
Shadow Hawkins on Sunday, 05 June 2011 17:20:39
Are you running Network Manager? You don't want it on a router.
Route to local subnet missing
Shadow Hawkins on Monday, 06 June 2011 23:05:17
Thanks for your replies.
I don't have NetworkManager running. Networking is configured through /etc/network/interfaces.
auto lo
iface lo inet loopback
# lan interface
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 192.168.0.1
netmask 255.255.255.0
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
iface br0 inet6 static
address <my prefix>::1
netmask 64
# wan interface
auto eth1
iface eth1 inet dhcp
The system doesn't have a GUI installed, just Ubuntu Server 10.10 running a few daemons like Samba, dnsmasq, saned, kvm (libvirt), cupsd, postfix, radvd and acciu.
Route to local subnet missing
Shadow Hawkins on Wednesday, 08 June 2011 00:05:52
Okey, i think that you are kinda missing the point with the 'auto' clause. The system will take your adapter up and down based on the state of the bridge. And it is only natural that it cleans up the routing tables afterwards. This because it is not given that br0 pre reboot is the same as br0 post reboot.
So i suggest you add som routinginfo in your interfaces file aswell.
You might want to add something like:
up route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.0.1
up route add default gw 192.168.0.1
down route del default gw 192.168.0.1
down route del -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.0.1
The UP clause defines what the script will do while initiating the adapter, and the DOWN does the opposite.
-Anders
Posting is only allowed when you are logged in. |