[Bug 214746] Carp ipv6 duplicate address detection

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 05 Jan 2022 21:01:25 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214746

Nicolas <nicolas_at_deffayet.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicolas_at_deffayet.com

--- Comment #3 from Nicolas <nicolas_at_deffayet.com> ---
Hello,

FreeBSD 12.3-RELEASE

The issue is still exist but in a strange way, only the first carp interface
have duplicated flag, other interfaces didn't have it (of course interfaces are
configured in same way)

host1-master# ifconfig vlan6
vlan6: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu
1500
        options=600703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether aa:aa:aa:aa:aa:aa
        inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 vhid 6
        inet6 fe80::aaaa:aaaa:aaaa:aaaa%vlan6 prefixlen 64 scopeid 0xf
        inet6 aaaa:bbbb:cccc:1::2 prefixlen 64
        inet6 aaaa:bbbb:cccc:1::1 prefixlen 64 duplicated vhid 6
        groups: vlan
        carp: MASTER vhid 6 advbase 1 advskew 0
        vlan: 106 vlanpcp: 0 parent interface: lagg0
        media: Ethernet autoselect
        status: active
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

host1-master# ifconfig vlan7
vlan7: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu
1500
        options=600703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether aa:aa:aa:aa:aa:aa
        inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 vhid 7
        inet6 fe80::aaaa:aaaa:aaaa:aaaa%vlan7 prefixlen 64 scopeid 0x10
        inet6 aaaa:bbbb:cccc:2::2 prefixlen 64
        inet6 aaaa:bbbb:cccc:2::1 prefixlen 64 vhid 7
        groups: vlan
        carp: MASTER vhid 7 advbase 1 advskew 0
        vlan: 107 vlanpcp: 0 parent interface: lagg0
        media: Ethernet autoselect

host2-slave# ifconfig vlan6
vlan6: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu
1500
        options=600703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether bb:bb:bb:bb:bb:bb
        inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 vhid 6
        inet6 fe80::bbbb:bbbb:bbbb:bbbb%vlan6 prefixlen 64 scopeid 0xf
        inet6 aaaa:bbbb:cccc:1::3 prefixlen 64
        inet6 aaaa:bbbb:cccc:1::1 prefixlen 64 vhid 6
        groups: vlan
        carp: BACKUP vhid 6 advbase 1 advskew 100
        vlan: 106 vlanpcp: 0 parent interface: lagg0
        media: Ethernet autoselect
        status: active
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

host2-slave# ifconfig vlan7
vlan7: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu
1500
        options=600703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether bb:bb:bb:bb:bb:bb
        inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 vhid 7
        inet6 fe80::bbbb:bbbb:bbbb:bbbb%vlan7 prefixlen 64 scopeid 0x10
        inet6 aaaa:bbbb:cccc:2::3 prefixlen 64
        inet6 aaaa:bbbb:cccc:2::1 prefixlen 64 vhid 7
        groups: vlan
        carp: BACKUP vhid 7 advbase 1 advskew 100
        vlan: 107 vlanpcp: 0 parent interface: lagg0
        media: Ethernet autoselect
        status: active
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
# 

As suggested by Athanasios, entering manually again the address make duplicated
flag disappear and so IPv6 address working.

host1-master# ifconfig vlan6 inet6 aaaa:bbbb:cccc:1::1 prefixlen 64 vhid6

host1-master# ifconfig vlan6
vlan6: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu
1500
        options=600703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether aa:aa:aa:aa:aa:aa
        inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 vhid 6
        inet6 fe80::aaaa:aaaa:aaaa:aaaa%vlan6 prefixlen 64 scopeid 0xf
        inet6 aaaa:bbbb:cccc:1::2 prefixlen 64
        inet6 aaaa:bbbb:cccc:1::1 prefixlen 64 vhid 6
        groups: vlan
        carp: MASTER vhid 6 advbase 1 advskew 0
        vlan: 106 vlanpcp: 0 parent interface: lagg0
        media: Ethernet autoselect
        status: active
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

host1-master#

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Wed Jan 05 2022 - 21:01:25 UTC

Original text of this message