From owner-freebsd-net@FreeBSD.ORG Wed Mar 12 22:13:20 2008 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 269CB106566C for ; Wed, 12 Mar 2008 22:13:20 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 9D11F8FC22 for ; Wed, 12 Mar 2008 22:13:19 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from heff.fud.org.nz (localhost [127.0.0.1]) by heff.fud.org.nz (Postfix) with ESMTP id 93BCC83FD; Thu, 13 Mar 2008 11:13:17 +1300 (NZDT) Received: (from thompsa@localhost) by heff.fud.org.nz (8.14.2/8.14.2/Submit) id m2CMDFBe005296; Thu, 13 Mar 2008 11:13:15 +1300 (NZDT) (envelope-from thompsa@FreeBSD.org) X-Authentication-Warning: heff.fud.org.nz: thompsa set sender to thompsa@FreeBSD.org using -f Date: Thu, 13 Mar 2008 11:13:14 +1300 From: Andrew Thompson To: Sean Chittenden Message-ID: <20080312221314.GA4458@heff.fud.org.nz> References: <47D7C34E.8060805@zirakzigil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-net@FreeBSD.org, Giulio Ferro Subject: Re: VLAN trunking and fragmentation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2008 22:13:20 -0000 On Wed, Mar 12, 2008 at 12:38:06PM -0700, Sean Chittenden wrote: >> interface ethernet 1/g1 >> switchport mode trunk >> switchport trunk allowed vlan add 10 >> exit > > I think this is an issue with default VLAN membership. I have this config > running on *hundreds* of servers without issue. Since Dell should be a > cisco rip-off, on your switchport config, throw in (haven't tested this, on > dell's CLI): > > switchport trunk encapsulation dot1q > > then change your ifconfig foo to: > > cloned_interfaces="vlan10 vlan11" > ifconfig_re0="media 100baseTX mediaopt full-duplex" > ifconfig_vlan10="vlan 10 vlandev re0" > ifconfig_vlan10_alias0="inet 192.168.60.1 netmask 255.255.255.0" > ifconfig_vlan11="vlan 11 valndev re0" > ifconfig_vlan11_alias0="inet 192.168.100.1 netmask 255.255.255.0" > > FWIW, I think you'll find fewer gray hairs if you stick to the convention > of using a vlan device that has the same VLAN tag. You may be able to have > a default VLAN, but I consider it poor practice to rely on default VLAN > membership. Even nicer is using . autoconfig, the following is equivalent to above: cloned_interfaces="re0.10 re0.11" ifconfig_re0="media 100baseTX mediaopt full-duplex" ifconfig_re0.10="inet 192.168.60.1 netmask 255.255.255.0" ifconfig_re0.11="inet 192.168.100.1 netmask 255.255.255.0" Andrew