From owner-freebsd-net@FreeBSD.ORG Fri Jul 26 08:41:19 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DFD3EA00; Fri, 26 Jul 2013 08:41:19 +0000 (UTC) (envelope-from boris.astardzhiev@gmail.com) Received: from mail-bk0-x235.google.com (mail-bk0-x235.google.com [IPv6:2a00:1450:4008:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 307062C95; Fri, 26 Jul 2013 08:41:19 +0000 (UTC) Received: by mail-bk0-f53.google.com with SMTP id e11so1013064bkh.40 for ; Fri, 26 Jul 2013 01:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PC2yBLD4sdxpXx3zpWvuw6oUQ/D95mDFZXguj+tUOhA=; b=EdKXSW287baKs12vg/zFSgUaNvdB9bc98pHOGNW7BPZ8CfyXzFX4awH0IUy5F29Rjm B7mmJYdSP1XKQWYkqbGOv2XjcRKiREKuaxl/B99hfI7JQYmllkjagAQBO/JCRfBsnJZt n+Fl2CB66z2xe97kwzw9hxdpreoFfV7rzrXr8zSQdbBPlIFfMmdMI2qR5px6NUV3FgHv tqbEuZeXy4FekPjj5RTKkxnaeGz3te9rrfjKbSxtLWjX/GkDJ0KwFrWExM1Nut1ag06a ET2HiLcJqyLm/Hki9CHIYpDFmVthMDfFskKsbJRzdQQ4Q4cy3a0oKtvE1bKLlzAskvAg PuWQ== MIME-Version: 1.0 X-Received: by 10.204.186.141 with SMTP id cs13mr7138105bkb.34.1374828077329; Fri, 26 Jul 2013 01:41:17 -0700 (PDT) Received: by 10.205.113.134 with HTTP; Fri, 26 Jul 2013 01:41:17 -0700 (PDT) In-Reply-To: <51F1202C.2050406@cyphy.net> References: <51F1202C.2050406@cyphy.net> Date: Fri, 26 Jul 2013 11:41:17 +0300 Message-ID: Subject: Re: How to create vlan (four NIC into one) using lagg From: Boris Astardzhiev To: Xu Zhe Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-net@freebsd.org, freebsd-questions@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 08:41:19 -0000 Hi Xu Zhe, If I were you I would first of all check cables. They might be the cause. Secondly, if cables are good, to me this report very much resembles a PR I reported a few weeks ago - http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/179926 Check its set and look at the patch I submitted. It's a pity there's no response to it. Greetings, Boris On Thu, Jul 25, 2013 at 3:55 PM, Xu Zhe wrote: > 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 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >