From owner-freebsd-stable@FreeBSD.ORG Sun Sep 13 16:33:53 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CB7D106566B for ; Sun, 13 Sep 2009 16:33:53 +0000 (UTC) (envelope-from louisk@cryptomonkeys.org) Received: from nes.txt.com (nes.txt.com [192.160.132.20]) by mx1.freebsd.org (Postfix) with ESMTP id EEDF58FC1F for ; Sun, 13 Sep 2009 16:33:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nes.txt.com (Postfix) with ESMTP id B20537CA; Sun, 13 Sep 2009 09:20:20 -0700 (PDT) Received: from nes.txt.com ([127.0.0.1]) by localhost (nes.txt.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 97090-09; Sun, 13 Sep 2009 09:20:18 -0700 (PDT) Received: from lk-mbp.local (unknown [75.142.19.238]) (Authenticated sender: louisk@cryptomonkeys.org) by nes.txt.com (Postfix) with ESMTPSA id 0874B7C9; Sun, 13 Sep 2009 09:20:02 -0700 (PDT) Received: from practivate.adobe.com by lk-mbp.local (PGP Universal service); Sun, 13 Sep 2009 09:22:51 -0700 X-PGP-Universal: processed; by lk-mbp.local on Sun, 13 Sep 2009 09:22:51 -0700 Mime-Version: 1.0 (Apple Message framework v1076) From: Louis Kowolowski In-Reply-To: <4AAC3343.5030806@ksu.ru> Date: Sun, 13 Sep 2009 09:22:31 -0700 Message-Id: <9DAD6CD5-0BD7-4B06-8FA7-D0159419FEAE@cryptomonkeys.org> References: <4AAC140F.2070203@stillbilde.net> <4AAC3343.5030806@ksu.ru> To: Marat N.Afanasyev X-Mailer: Apple Mail (2.1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: Question regarding vlans and lagg X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2009 16:33:53 -0000 On Sep 12, 2009, at 4:48 PM, Marat N.Afanasyev wrote: > * PGP - S/MIME Signed by an unverified key: September 12, 2009 > 4:48:19 PM > > Svein Skogen (listmail account) wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> Can the vlan "vlandev" be a lagg port of multiple physical interfaces >> (for redundancy)? >> //Svein > > i think that you should try the following: > > 1. join two ports on switch to trunk, say vport1 > 2. assign allowed vlans to this vport1 > 3. create lagg0 on freebsd > 4. create vlan interfaces on freebsd using vlandev lagg0 > > and i suppose it just should work ;) > You're looking for something along these lines: cloned_interfaces="lagg0 vlan0 vlan1" ifconfig_em0="up" ifconfig_em1="up" ifconfig_lagg0="laggproto failover laggport em0 laggport em1 up" ifconfig_vlan0="vlan 2 vlandev lagg0 up" ifconfig_vlan1="vlan 3 vlandev lagg0 up" ifconfig_vlan0_alias0="inet 192.168.1.41/24" ifconfig_vlan1_alias1="inet 172.16.0.20/24" This will give you failover for your lagg(8) interface, I believe you can also use something like etherchannel. -- Louis Kowolowski louisk@cryptomonkeys.org Cryptomonkeys: http://www.cryptomonkeys.org/~louisk Making life more interesting for people since 1977