2012-01-17 13:34:26 |
SaveTheRbtz |
description |
We noticed that after we add IPv6 address to vlan route to local network is added with expire date. If after `ip link set vlanXXX up` up we wait until vlan's link state becomes UP then route get added without expiration time.
We are using Ubuntu LTS 10.04: Ubuntu 2.6.32-32.62-server 2.6.32.38+drm33.16.
To reproduce one can use following test script:
$ cat test.sh
ip addr del 2a02::1.1.1.1/64 dev vlan764 || :
vconfig rem vlan764 || :
vconfig set_name_type VLAN_PLUS_VID_NO_PAD
vconfig add eth0 764
ip link set vlan764 up
#sleep 5
ip addr add 2a02::1.1.1.1/64 dev vlan764
sleep 2
ip -6 route show
$ sudo ./test.sh
2a02::/64 dev vlan764 proto kernel metric 256 expires 2591999sec mtu 8950 advmss 8890 hoplimit 4294967295
fe80::/64 dev eth0 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
fe80::/64 dev vlan764 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
default via fe80::226:bff:fe29:c40 dev vlan764 proto kernel metric 1024 expires 1799sec mtu 8950 advmss 8890 hoplimit 64
Notice `expires 2591999sec` in `2a02::/64 dev vlan764 ` route
Now uncomment `#sleep 5`
$ sudo ./test.sh
2a02::/64 dev vlan764 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
fe80::/64 dev eth0 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
fe80::/64 dev vlan764 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
default via fe80::226:bff:fe29:c40 dev vlan764 proto kernel metric 1024 expires 0sec mtu 8950 advmss 8890 hoplimit 64
Now `expire` is gone. |
We noticed that after adding IPv6 address to vlan route to local network is added with expiration time. If after `ip link set vlanXXX up` up we wait until vlan's link state becomes UP then route get added without expiration time.
We are using Ubuntu LTS 10.04: Ubuntu 2.6.32-32.62-server 2.6.32.38+drm33.16.
To reproduce one can use following test script:
$ cat test.sh
ip addr del 2a02::1.1.1.1/64 dev vlan764 || :
vconfig rem vlan764 || :
vconfig set_name_type VLAN_PLUS_VID_NO_PAD
vconfig add eth0 764
ip link set vlan764 up
#sleep 5
ip addr add 2a02::1.1.1.1/64 dev vlan764
sleep 2
ip -6 route show
$ sudo ./test.sh
2a02::/64 dev vlan764 proto kernel metric 256 expires 2591999sec mtu 8950 advmss 8890 hoplimit 4294967295
fe80::/64 dev eth0 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
fe80::/64 dev vlan764 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
default via fe80::226:bff:fe29:c40 dev vlan764 proto kernel metric 1024 expires 1799sec mtu 8950 advmss 8890 hoplimit 64
Notice `expires 2591999sec` in `2a02::/64 dev vlan764 ` route
Now uncomment `#sleep 5`
$ sudo ./test.sh
2a02::/64 dev vlan764 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
fe80::/64 dev eth0 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
fe80::/64 dev vlan764 proto kernel metric 256 mtu 8950 advmss 8890 hoplimit 4294967295
default via fe80::226:bff:fe29:c40 dev vlan764 proto kernel metric 1024 expires 0sec mtu 8950 advmss 8890 hoplimit 64
Now `expire` is gone. |
|