From owner-freebsd-bugs@FreeBSD.ORG Wed May 30 08:30:02 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 597BF16A46C for ; Wed, 30 May 2007 08:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 30EF813C4B7 for ; Wed, 30 May 2007 08:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4U8U2kG009651 for ; Wed, 30 May 2007 08:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4U8U27Q009650; Wed, 30 May 2007 08:30:02 GMT (envelope-from gnats) Resent-Date: Wed, 30 May 2007 08:30:02 GMT Resent-Message-Id: <200705300830.l4U8U27Q009650@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Leon Kos Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3826216A41F for ; Wed, 30 May 2007 08:21:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 0DC3813C448 for ; Wed, 30 May 2007 08:21:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4U8LSc5081493 for ; Wed, 30 May 2007 08:21:28 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4U8LSP7081492; Wed, 30 May 2007 08:21:28 GMT (envelope-from nobody) Message-Id: <200705300821.l4U8LSP7081492@www.freebsd.org> Date: Wed, 30 May 2007 08:21:28 GMT From: Leon Kos To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/113150: lagg interface fails to work with some unmanaged switches X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2007 08:30:02 -0000 >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: