From owner-freebsd-questions@FreeBSD.ORG Thu Jul 25 12:55:23 2013 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DF68CF65 for ; Thu, 25 Jul 2013 12:55:23 +0000 (UTC) (envelope-from peterxu@cyphy.net) Received: from atl4mhfb04.myregisteredsite.com (atl4mhfb04.myregisteredsite.com [209.17.115.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 918E6274B for ; Thu, 25 Jul 2013 12:55:23 +0000 (UTC) Received: from atl4mhob11.myregisteredsite.com (atl4mhob11.myregisteredsite.com [209.17.115.49]) by atl4mhfb04.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id r6PCtM1O014470 for ; Thu, 25 Jul 2013 08:55:22 -0400 Received: from mailpod.hostingplatform.com ([10.30.71.204]) by atl4mhob11.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id r6PCtGRc009542 for ; Thu, 25 Jul 2013 08:55:16 -0400 Received: (qmail 17598 invoked by uid 0); 25 Jul 2013 12:55:16 -0000 X-TCPREMOTEIP: 27.154.58.234 X-Authenticated-UID: peterxu@cyphy.net Received: from unknown (HELO Peters-MacAir.local) (peterxu@cyphy.net@27.154.58.234) by 0 with ESMTPA; 25 Jul 2013 12:55:15 -0000 Message-ID: <51F1202C.2050406@cyphy.net> Date: Thu, 25 Jul 2013 20:55:08 +0800 From: Xu Zhe User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Subject: How to create vlan (four NIC into one) using lagg Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 12:55:23 -0000 Hi, all, I am trying to use lagg to bind four 1Gb NIC into 4Gb one. I was testing this using two machines running FreeBSD 8.2, each of the machine has four 1Gb ethernet card, and connected correspondingly, means: MACHINE1 MACHINE2 em0 <--------------------->em0 em1 <--------------------->em1 em2 <--------------------->em2 em3 <--------------------->em3 Then I created vlan called 'lagg0' on each machine using: ifconfig lagg0 create ifconfig lagg0 laggproto lacp laggport em0 laggport em1 laggport em2 laggport em3 ifconfig lagg0 1.1.1.1/24 ifconfig lagg0 up And do this on MACH2 too, only change IP from 1.1.1.1 to 1.1.1.2. But I cannot ping each other, since none of the link is both active: MACHINE1 # ifconfig lagg0 lagg0: flags=8843 metric 0 mtu 1500 options=219b ether 00:08:9b:d4:91:64 inet 1.1.1.1 netmask 0xffffff00 broadcast 1.1.1.255 media: Ethernet autoselect status: active laggproto lacp laggport: em3 flags=1c laggport: em2 flags=18 laggport: em1 flags=18 laggport: em0 flags=18 MACHINE2 # ifconfig lagg0 lagg0: flags=8843 metric 0 mtu 1500 options=219b ether 00:08:9b:d3:72:60 inet 1.1.1.2 netmask 0xffffff00 broadcast 1.1.1.255 media: Ethernet autoselect status: active laggproto lacp laggport: em3 flags=18 laggport: em2 flags=1c laggport: em1 flags=1c laggport: em0 flags=1c So, em3 is active on MACHINE1 but not active on MACH2, while em0-em2 are active on MACH2 but not on MACHI1. What might be the problem? Thanks! Peter