Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2007 08:21:28 GMT
From:      Leon Kos<leon.kos@lecad.uni-lj.si>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/113150: lagg interface fails to work with some unmanaged switches
Message-ID:  <200705300821.l4U8LSP7081492@www.freebsd.org>
Resent-Message-ID: <200705300830.l4U8U27Q009650@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         113150
>Category:       kern
>Synopsis:       lagg interface fails to work with some unmanaged switches
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 30 08:30:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Leon Kos
>Release:        RELENG_6
>Organization:
University of Ljubljana, Slovenia
>Environment:
FreeBSD cad.lecad.uni-lj.si 6.2-STABLE FreeBSD 6.2-STABLE #3: Wed May 23 14:45:31 CEST 2007     ledon@cad.lecad.uni-lj.si:/usr/obj/usr/src/sys/CAD  i386
>Description:
I have trouble with EtherChannel mode FEC and LACP. Packet flow through lagg device does not pass throug some older 1GBIT switches. Creating netgraph FEC does work with older switches! So the problem must be with lagg interface.
 
My setup:
 
FreeBSD-<  EtherChannel  > Cisco WS-3560G-EI -- Unmanaged 1GBIT switch -- PC
 
Replacing Unmanaged 1Gbit switch with some "smart" switch or dumb 100Mbit switch passes ping packets through. If I replace lagg0 with netgraph fec0 device it also works.

Really strange. It looks like layer 2 problem. Ping does not pass though switch. ARP requests on PC are unreplied.

Tested with 5 switches.Two of them, both 1Gbit does not work.

Lowering MTU to 1400 does not help.

Missing forwarding mode for FEC (inet or MAC) on lagg?
>How-To-Repeat:
hardware specific.


Create etherchannel on Cisco switch ports 1&2 on vlan 100 with:

 configure terminal
 interface range gigabitethernet 0/1 - 2
 switchport mode access
 switchport access vlan 100
 channel group 1 mode on
 end

Create lagg0 device with etherchannel dual port card with:

 ifconfig lagg create
 ifconfig em0 up
 ifconfig em1 up
 ifconfig lagg0 laggproto fec laggport em0 laggport em1 192.168.10.1

Configure PC with 
  ifconfig eth0 192.168.10.2

Place "unmanaged 1Gbit switch" between PC and some Cisco port on VLAN 100
and try ping.

The same problem occurs allso if using LACP on lagg0. Without using lagg and using only em0 works.


>Fix:
a) Replace "unmanaged 1Gbit switch" with some smart switch or unmanaged 100Mbit switch.

a1) PC connected directly to Cisco switch also works.

b) Use ng_fec device and configure it with:

 /usr/sbin/ngctl mkpeer fec dummy fec
 /usr/sbin/ngctl msg fec0: add_iface '"em0"'
 /usr/sbin/ngctl msg fec0: add_iface '"em1"'
 /usr/sbin/ngctl msg fec0: set_mode_mac
 ifconfig fec0 192.168.10.1

 This works with all switches. Not so fast as lagg though :(




>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705300821.l4U8LSP7081492>