From owner-freebsd-net@FreeBSD.ORG Wed Mar 12 22:34:05 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 F29E5106566C for ; Wed, 12 Mar 2008 22:34:04 +0000 (UTC) (envelope-from sean@chittenden.org) Received: from davie.textdrive.com (davie.textdrive.com [207.7.108.101]) by mx1.freebsd.org (Postfix) with ESMTP id D69668FC1F for ; Wed, 12 Mar 2008 22:34:04 +0000 (UTC) (envelope-from sean@chittenden.org) Received: from [192.168.255.187] (60.ten-net.org [71.6.14.60]) by davie.textdrive.com (Postfix) with ESMTP id 1CDEBC2F0E; Wed, 12 Mar 2008 22:34:03 +0000 (GMT) Message-Id: From: Sean Chittenden To: Andrew Thompson In-Reply-To: <20080312221314.GA4458@heff.fud.org.nz> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 12 Mar 2008 15:34:00 -0700 References: <47D7C34E.8060805@zirakzigil.org> <20080312221314.GA4458@heff.fud.org.nz> X-Mailer: Apple Mail (2.919.2) 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:34:05 -0000 >>>> 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 don't think it's where the problem lies, otherwise even a simple >> ping >> wouldn't work. The problem here explicitly arises when packets are >> fragmented... > > fragmentation? > I think, you use ethernet links, all have 1500byte max packet size, > you have 1500byte packet size also comfigured at the vlan interface, > so.. > why do you think anything should start fragmenting? > (and tagged vlan frames are bigger than 1500byte at the "raw" > ethernet link). > > check for maximum mtu that can travel over the link. > (ping -s 1472 for 1500byte packet) It's the MTU size, not the fragmentation or VLAN membership. The use of a default VLAN can cause problems potentially because the size of each frame can vary and, IMHO, is the cause of the problem. By default VLAN membership, I don't mean to suggest you've got your port tagged in the wrong VLAN. Switch all traffic to 802.1q tagged and you should see everything work. Use of VLANs reduces the MTU size automatically, but cycling between the two? Likely a no-go and the source of your problems. > 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" *boggles* That's hawt! 'ya learn something new every day, thanks! :~] -sc -- Sean Chittenden sean@chittenden.org http://sean.chittenden.org/