Date: Wed, 12 Mar 2008 17:42:53 -0500 From: Brooks Davis <brooks@freebsd.org> To: Andrew Thompson <thompsa@freebsd.org> Cc: freebsd-net@freebsd.org, Giulio Ferro <auryn@zirakzigil.org>, Sean Chittenden <sean@chittenden.org> Subject: Re: VLAN trunking and fragmentation Message-ID: <20080312224253.GB79445@lor.one-eyed-alien.net> In-Reply-To: <20080312221314.GA4458@heff.fud.org.nz> References: <47D7C34E.8060805@zirakzigil.org> <D8BE14C3-9897-4F19-A5AC-6770995423E5@chittenden.org> <20080312221314.GA4458@heff.fud.org.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 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 <interface>.<number> 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" 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFH2FxtXY6L6fI4GtQRAsELAJ9YtW6812JUYwSD7fjPJHtFB/ATjACfYyo7 LF4vuTwa/1n82S7nm6+nSmI= =g92q -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080312224253.GB79445>
