Page MenuHomeVyOS Platform

IPv6 duplicate address detection is turned off on every interface
Open, NormalPublicBUG

Description

After a system ipv6 commit (here set system ipv6 neighbor table-size 16384), and from boot on routers with set system option performance network-throughput saved, accept_dad is 0 on all interfaces. An address that duplicates a neighbour's is not detected:

                 accept_dad all/default/eth1/eth2   duplicate address on eth1
1.5.1            1 / 1 / 1 / 1                      dadfailed (2/2)
rolling          0 / 0 / 0 / 0                      not detected, dadfailed=0 (0/2)

Both triggers (runtime commit, and reboot with system option performance) gave the same result.

Cause
T7736 (dabeff277, https://github.com/vyos/vyos-1x/pull/5384) changed src/conf_mode/system_ipv6.py to write accept_dad=0 (unless strict-dad) to every /proc/sys/net/ipv6/conf/*/accept_dad, to stop DAD on netavark container bridges. The script runs at every boot and as a dependent of system option. Its comment says VyOS-managed interfaces write their own accept_dad on their next commit; eth1 above stayed at 0 with an address configured.

Suggested fix
Set accept_dad=0 only for container bridges (or only in default, before they are created), and leave existing interfaces at 1.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)