From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 15:03:18 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72C5C16A468 for ; Tue, 21 Aug 2007 15:03:18 +0000 (UTC) (envelope-from shteryana@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id EA00913C465 for ; Tue, 21 Aug 2007 15:03:17 +0000 (UTC) (envelope-from shteryana@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so2738459pyb for ; Tue, 21 Aug 2007 08:03:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=aeW4DfltjbDuZBWzlc2LhzPEuvgWht0QWl89Rlac3yNKK8CFWaJCbIaes6dFRFAnd6rSBITSDv39BgXJ12eIdKdfSp1e+t8t9RgeJ3TZYIh81qADBsQXXKNNn1B5ANDyfISiTAWi3DjDaPQiEQRsNqNyIdvUccQo4e+I+a+ZFhs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qt3EMSjYBpJDdroI88CoGTSAPjap43eXGmQQo/+BlbTJDfcsWlFaMJanUeP5n+NeWGxBDHqcWm14oDCQBM6EraH8XqDipciw1uui5/OyoK2HocG6HYzpzJ83dNI8dkNEKCbxlO+fTTDs+ebZm8Lq3D2AP87957SFgNwHq3pReZ0= Received: by 10.114.136.1 with SMTP id j1mr1196389wad.1187706866903; Tue, 21 Aug 2007 07:34:26 -0700 (PDT) Received: by 10.114.58.6 with HTTP; Tue, 21 Aug 2007 07:34:26 -0700 (PDT) Message-ID: <61b573980708210734x7023782fk9532bfa31c5879f6@mail.gmail.com> Date: Tue, 21 Aug 2007 17:34:26 +0300 From: "Shteryana Shopova" Sender: shteryana@gmail.com To: "Tom Judge" In-Reply-To: <46CAD1AF.4080002@tomjudge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070821113922.B40614@mignon.ki.iif.hu> <46CAC308.7070509@tomjudge.com> <46CACCA5.3050608@uni-paderborn.de> <46CAD1AF.4080002@tomjudge.com> X-Google-Sender-Auth: 33a947eb51943eee Cc: freebsd-hackers@freebsd.org, Mohacsi Janos , Arne Schwabe Subject: Re: vlan taggging on etherchannel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syrinx@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 15:03:18 -0000 On 8/21/07, Tom Judge wrote: > Arne Schwabe wrote: > > Tom Judge schrieb: > >> Mohacsi Janos wrote: > >>> Dear All, > >>> What is the recommended way to configure vlan interfaces on > >>> etherchannel bonded interfaces in a failure mode. I found, that > >>> etherchannel is supported by ng_fec(4) (but not exactly what I want) > >>> and also found that there two? way of configuring vlans: vlan(4) and > >>> ng_vlan(4). But I did not found any description or configuration > >>> snippet to configure both preferentially via /etc/rc.conf neither in > >>> FreeBSD 6.x-stable, neither in FreeBSD-7.0-current. What I want to > >>> achieve: > >>> > >>> [switch1]-----GE---bge0----\ /----vlan100 > >>> }=={-----vlan101 > >>> [switch2]-----FE---bge1----/ \----vlan102 > >>> \---vlan103 > >>> > >>> > >>> I would like to prefer all the vlans via bge0 with GE towards > >>> switch1. And use only bge1 in case of switch1 or bge0 link failure. > >>> > >>> I could use bond on Linux for this purpose. How to achieve similar > >>> setup? > >>> > >> > >> You may want to take a look at if_lagg, it supports EtherChannel (AKA > >> fec), LACP and failover modes (Which is what you would need). It is > >> available in RELENG_6 and Current. > > If the switches don't support LACP/Fec over two devices use bridge_stp > > to simulate a switche and let spanning-tree do the failover. > > > > Arne > > Spanning tree may not select the GigE connection as the primary > connection and use the FastE connection instead. if_lagg with That is not correct in the default case - STP caluculates the pathcost for a link based on its speed. Also one can always force a better priority for a link using ifconfig(8) on FreeBSD. I'd recommend reading http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-bridging.html to start with. Also freebsd-net@ might be a better place for asking networking related questions. :) cheers, Shteryana