From owner-freebsd-net@FreeBSD.ORG Wed Mar 12 23:11:39 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 0CB461065672; Wed, 12 Mar 2008 23:11:39 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (grnl-static-02-0046.dsl.iowatelecom.net [69.66.56.110]) by mx1.freebsd.org (Postfix) with ESMTP id 945378FC18; Wed, 12 Mar 2008 23:11:38 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.1/8.13.8) with ESMTP id m2CMgs2A079750; Wed, 12 Mar 2008 17:42:54 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m2CMgrd1079749; Wed, 12 Mar 2008 17:42:53 -0500 (CDT) (envelope-from brooks) Date: Wed, 12 Mar 2008 17:42:53 -0500 From: Brooks Davis To: Andrew Thompson Message-ID: <20080312224253.GB79445@lor.one-eyed-alien.net> References: <47D7C34E.8060805@zirakzigil.org> <20080312221314.GA4458@heff.fud.org.nz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2JFBq9zoW8cOFH7v" Content-Disposition: inline In-Reply-To: <20080312221314.GA4458@heff.fud.org.nz> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Wed, 12 Mar 2008 17:42:54 -0500 (CDT) Cc: freebsd-net@freebsd.org, Giulio Ferro , Sean Chittenden 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 23:11:39 -0000 --2JFBq9zoW8cOFH7v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 13, 2008 at 11:13:14AM +1300, Andrew Thompson wrote: > 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 con= fig=20 > > running on *hundreds* of servers without issue. Since Dell should be a= =20 > > cisco rip-off, on your switchport config, throw in (haven't tested this= , on=20 > > dell's CLI): > > > > switchport trunk encapsulation dot1q > > > > then change your ifconfig foo to: > > > > cloned_interfaces=3D"vlan10 vlan11" > > ifconfig_re0=3D"media 100baseTX mediaopt full-duplex" > > ifconfig_vlan10=3D"vlan 10 vlandev re0" > > ifconfig_vlan10_alias0=3D"inet 192.168.60.1 netmask 255.255.255.0" > > ifconfig_vlan11=3D"vlan 11 valndev re0" > > ifconfig_vlan11_alias0=3D"inet 192.168.100.1 netmask 255.255.255.0" > > > > FWIW, I think you'll find fewer gray hairs if you stick to the conventi= on=20 > > of using a vlan device that has the same VLAN tag. You may be able to = have=20 > > a default VLAN, but I consider it poor practice to rely on default VLAN= =20 > > membership. >=20 > Even nicer is using . autoconfig, the following is > equivalent to above: >=20 > cloned_interfaces=3D"re0.10 re0.11" > ifconfig_re0=3D"media 100baseTX mediaopt full-duplex" > ifconfig_re0.10=3D"inet 192.168.60.1 netmask 255.255.255.0" > ifconfig_re0.11=3D"inet 192.168.100.1 netmask 255.255.255.0" One small nit. The '.' isn't valid in variable names so the ifconfig_re0.xx lines need to turn into ifconfig_re0_xx (we compress ./-+ to _). -- Brooks --2JFBq9zoW8cOFH7v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFH2FxtXY6L6fI4GtQRAsELAJ9YtW6812JUYwSD7fjPJHtFB/ATjACfYyo7 LF4vuTwa/1n82S7nm6+nSmI= =g92q -----END PGP SIGNATURE----- --2JFBq9zoW8cOFH7v--