Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2014 20:01:39 -0400
From:      Clint Armstrong <clint@clintarmstrong.net>
To:        freebsd-net@freebsd.org
Subject:   Cannot disable link local addresses on bridge or lagg members
Message-ID:  <CAJMTyCG%2BLvU=3zZZ7u4SeEWYNao=mP8kiJDdeOe69ftX4YokXw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Is there any known issue that prevents disabling ipv6 and
auto_linklocal on members of a lagg or bridge that is using ipv6?

I have em0 and em1 which are members of lagg0 and lagg0 is a member of
bridge0. This is for a server that runs man jails, including some vnet
jails that have tap devices that are a member of the bridge. The
handbook says that the host IP address should be on the bridge device
itself, which I'm doing, but I can't seem to stop the other interfaces
from getting link_local addresses.

I have "inet6 ifdisabled -auto_linklocal" set in rc.conf for em0, em1
and lagg0, but all of them get link local addresses regardless. This
isn't really causing a problem, because bridge0 is the only one that
accepts RAs and ends up being used for IPV6. But I'd still like to
clean it up if possible. I've anonymized the mac addresses, but the
em0, em1 and lagg0 interfaces all show the same mac address, which I
believe is expected. The bridge0 device has a mac address.

# rc.conf
ifconfig_em0="up"
ifconfig_em0_ipv6="inet6 ifdisabled -auto_linklocal"
ifconfig_em1="up"
ifconfig_em1_ipv6="inet6 ifdisabled -auto_linklocal"
ifconfig_lagg0="up laggport em0 laggport em1 laggproto roundrobin"
ifconfig_lagg0_ipv6="inet6 ifdisabled -auto_linklocal"
ifconfig_bridge0="up addm lagg0 192.168.10.10/24"
ifconfig_bridge0_ipv6="inet6 auto_linklocal accept_rtadv"


# ifconfig
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
0 mtu 1500
        options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
        ether 00:15:17:XX:XX:XX
        inet6 fe80::XXXXX:XXXX:XXXX:XXXX%em0 prefixlen 64 scopeid 0x2
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
0 mtu 1500
        options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
        ether 00:15:17:XX:XX:XX
        inet6 fe80::XXXX:XXXX:XXXX:XXXX%em1 prefixlen 64 scopeid 0x3
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
lagg0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST>
metric 0 mtu 1500
        options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
        ether 00:15:17:XX:XX:XX
        inet6 fe80::XXXX:XXXX:XXXX:XXXX%lagg0 prefixlen 64 scopeid 0x5
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect
        status: active
        laggproto roundrobin lagghash l2,l3,l4
        laggport: em1 flags=4<ACTIVE>
        laggport: em0 flags=4<ACTIVE>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:34:2f:XX:XX:XX
        inet 192.168.10.10 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::XXXX:XXXX:XXXX:XXXX%bridge0 prefixlen 64 scopeid 0x6
        inet6 2601:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX prefixlen 64 autoconf
        inet6 fdc3:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX prefixlen 64 autoconf
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: lagg0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 5 priority 128 path cost 55



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJMTyCG%2BLvU=3zZZ7u4SeEWYNao=mP8kiJDdeOe69ftX4YokXw>