FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.36k stars 1.25k forks source link

missing ipv6 addresses on renamed interface #8256

Open pguibert6WIND opened 3 years ago

pguibert6WIND commented 3 years ago

tail -f /tmp/traces.txt

* reproduction*
on shell, do the following commands : 1, 2, and 3.

root@dut-vm:~# ip li add _dum_iface type dummy root@dut-vm:~# ip -6 a a 3f9::1/64 dev _dum_iface root@dut-vm:~# ip li set dev _dum_iface name eth10

* observation on vtysh after step 2:*

dut-vm# show interface _dum_iface Interface _dum_iface is down Link ups: 0 last: (never) Link downs: 0 last: (never) vrf: vrf0 index 18 metric 0 mtu 1500 speed 0 flags: <BROADCAST,NOARP> Type: Ethernet HWaddr: 5a:56:00:8b:c2:db inet6 3f9::1/64 Interface Type Other Interface Slave Type None dut-vm#


* observation on vtysh after step 3:*

dut-vm# show interface eth10 Interface eth10 is down Link ups: 0 last: (never) Link downs: 0 last: (never) vrf: vrf0 index 18 metric 0 mtu 1500 speed 0 flags: <BROADCAST,NOARP> Type: Ethernet HWaddr: 5a:56:00:8b:c2:db Interface Type Other Interface Slave Type None

root@dut-vm:~# ip -6 a show eth10 18: eth10: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000 inet6 3f9::1/64 scope global valid_lft forever preferred_lft forever

pguibert6WIND commented 3 years ago

https://gist.github.com/pguibert6WIND/9ef21250e255996474400992473077a9

pguibert6WIND commented 3 years ago

it is worth noting that ipv4 works well.

root@dut-vm:~# ip li add _dum_iface2 type dummy
root@dut-vm:~# ip  a a 44.33.11.1/24 dev _dum_iface2
root@dut-vm:~# ip li set dev _dum_iface2 name eth11

dut-vm# show interface eth11
Interface eth11 is down
  Link ups:       0    last: (never)
  Link downs:     0    last: (never)
  vrf: vrf0
  index 19 metric 0 mtu 1500 speed 0 
  flags: <BROADCAST,NOARP>
  Type: Ethernet
  HWaddr: 0e:33:95:68:bb:74
  inet 44.33.11.1/24
  Interface Type Other
  Interface Slave Type None
dut-vm# 

traces ipv4 additional:

2021/03/15 17:09:54 RIPNG: interface delete _dum_iface2 vrf 0 index 19 flags 0x82 metric 0 mtu 1500
2021/03/15 17:09:54 RIP: interface delete _dum_iface2 vrf 0 index 19 flags 0x82 metric 0 mtu 1500
2021/03/15 17:09:54 ZEBRA: netlink_parse_info: netlink-listen (NS 0) type RTM_NEWADDR(20), len=80, seq=0, pid=0
2021/03/15 17:09:54 ZEBRA: netlink_interface_addr RTM_NEWADDR eth11 flags 0x80:
2021/03/15 17:09:54 ZEBRA:   IFA_LOCAL     44.33.11.1/24
2021/03/15 17:09:54 ZEBRA:   IFA_ADDRESS   44.33.11.1/24
2021/03/15 17:09:54 ZEBRA:   IFA_CACHEINFO pref -1, valid -1
qlyoung commented 3 years ago

Can you add a description of what the actual bug is in English? Also, can you please use the bug report template?