[Bug 207701] vlan interface over failover lagg has empty/00:00:00:00:00:00 mac/ether address

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 18 10:48:40 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207701

Pushkar Kothavade <pushkarbk at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pushkarbk at gmail.com

--- Comment #2 from Pushkar Kothavade <pushkarbk at gmail.com> ---
Hi Team, 

After going through the issue specified here, I investigated this issue on
FreeBSD 10 stable, Freebsd 10.2 release and FreeBSD HOL platforms by creating
lagg and vlan interfaces.

After investigation, problem statement is as follows:

*************************
*** Problem Statement ***
*************************

After machine boots up, when we create a vlan on Lagg interface, vlan interface
takes the same MAC address as that of lagg interface. This works fine as
expected.  Now going further, when we add/delete members of lagg bundle, 
MAC address of the lagg bundle changes as expected. It is expected that vlan
MAC should also get changed, when MAC of lagg interface changes, but it is not
happening. 

This issue is present in only 10 stable. It is not present in HOL and 10.2
release. 


*************************
******** Fix ************
*************************

https://reviews.freebsd.org/differential/diff/14418/


*************************
***** Test Plan *********
*************************

####################
#### Before Fix ####
####################

[Step-0] uname -a

** Output **

FreeBSD Host-XXX 10.3-PRERELEASE FreeBSD 10.3-PRERELEASE #2 r294978M: Thu Jan
28 16:46:33 IST 2016 amd64

[Step-1] ifconfig lagg1 create

[Step-2] ifconfig lagg1 laggproto failover laggport le1 laggport le2

[Step-3] ifconfig vlan1 create

[Step-4] ifconfig vlan1 vlan 1 vlandev lagg1

[Step-5] ifconfig

** Output **

lagg1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:0c:29:5b:6a:04
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
        laggproto failover lagghash l2,l3,l4
        laggport: le1 flags=1<MASTER>
        laggport: le2 flags=0<>

vlan1: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:29:5b:6a:04
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
        vlan: 1 parent interface: lagg1

[Step-6] ifconfig lagg1 -laggport le1

[Step-7] ifconfig

** Output **

lagg1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:0c:29:5b:6a:0e
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
        laggproto failover lagghash l2,l3,l4
        laggport: le2 flags=1<MASTER>

vlan1: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:29:5b:6a:04
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
        vlan: 1 parent interface: lagg1

** Conclusion  **

vlan1 MAC does not change, when Lagg1 MAC changes. 

###################
#### After Fix ####
###################

[Step-0] uname -a

** Output **

FreeBSD Host-XXX 10.3-PRERELEASE FreeBSD 10.3-PRERELEASE #6 r296988: Fri Mar 18
08:30:25 IST 2016 amd64

[Step-1] ifconfig lagg1 create

[Step-2] ifconfig lagg1 laggproto failover laggport le1 laggport le2

[Step-3] ifconfig vlan1 create

[Step-4] ifconfig vlan1 vlan 1 vlandev lagg1

[Step-5] ifconfig

** Output **

lagg1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:0c:29:5b:6a:04
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
        laggproto failover lagghash l2,l3,l4
        laggport: le1 flags=1<MASTER>
        laggport: le2 flags=0<>

vlan1: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:29:5b:6a:04
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
        vlan: 1 parent interface: lagg1

[Step-6] ifconfig lagg1 -laggport le1

[Step-7] ifconfig

** Output **

lagg1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:0c:29:5b:6a:0e
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
        laggproto failover lagghash l2,l3,l4
        laggport: le2 flags=1<MASTER>

vlan1: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:29:5b:6a:0e
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
        vlan: 1 parent interface: lagg1

** Conclusion  **

vlan1 MAC changes, when Lagg1 MAC changes. 

Thanks,
Pushkar Kothavade

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-amd64 mailing list