Public bug reported:
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.
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
- 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
+ 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
+ $ 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
+ $ 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.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/917643
Title:
Adding address to vlan in UNKNOWN state results in routes that expire
within 30 days.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/917643/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs