From owner-freebsd-net@FreeBSD.ORG Thu Mar 13 03:30:38 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 5EAEE1065672 for ; Thu, 13 Mar 2008 03:30:38 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.178]) by mx1.freebsd.org (Postfix) with ESMTP id 1F89E8FC2A for ; Thu, 13 Mar 2008 03:30:38 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so1833526ele.12 for ; Wed, 12 Mar 2008 20:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=H2MHRYygwsA7YoNSKudRYogN7KZIwW6whwWxPhIc00A=; b=OqVMfyTwu9g7OWC5DFgvirbMSgzBQavNtzZ/G6ITHPYDMKAlJtzCLmflT0yz5kWcUpzkSQRJ0pjK1FdmX8stBlsv9ow7EvB/HxoHxzvtvbqO32nFAuFGy/O/c2FBxn3TejHgl7CdbyUaIyA0+vU3anM6tiU90Ow/AOlpet7IVh8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=g7J1PhkBdR6Ao4uW2XhLLAwV9nHXGEjr48gOvynsw+9fjl6ZCbV4AbmnaemxXjGSXM31ZqJXtLW0cfnBAcxkxntLzdjMqvUOpOZwzQbOp9TyTFvjRbmpc06sGRviLVW2INF6okWZk58QDWp31nkmiap8i/cSjA7DtXilvhjHbA4= Received: by 10.150.203.8 with SMTP id a8mr5044559ybg.146.1205379037338; Wed, 12 Mar 2008 20:30:37 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id 45sm17618673wri.8.2008.03.12.20.30.34 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Mar 2008 20:30:36 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m2D3UUCv017742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Mar 2008 12:30:30 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m2D3UTYH017741; Thu, 13 Mar 2008 12:30:29 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 13 Mar 2008 12:30:29 +0900 From: Pyun YongHyeon To: Giulio Ferro Message-ID: <20080313033029.GF16972@cdnetworks.co.kr> References: <47D7C34E.8060805@zirakzigil.org> <47D817D2.9010306@errno.com> <47D8499A.5070605@zirakzigil.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47D8499A.5070605@zirakzigil.org> User-Agent: Mutt/1.4.2.1i Cc: Andrew Thompson , freebsd-net@freebsd.org Subject: Re: VLAN trunking and fragmentation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2008 03:30:38 -0000 On Wed, Mar 12, 2008 at 10:22:34PM +0100, Giulio Ferro wrote: > Sam Leffler wrote: > >You failed to provide the output of ifconfig on your running system. > >Be sure any checksum offload is disabled (should be by the bridge). > > > > Sam > My bad. > > I switched off checksum offload in /etc/rc.conf like this: > ifconfig_re0="inet 192.168.60.1 netmask 255.255.255.0 -rxcsum -txcsum" > (same thing on the other machine) > > Now my ifconfig on PC #1 is : > ----------------------------------------- > # ifconfig re0 > re0: flags=8843 metric 0 mtu 1500 > options=98 > ether 00:14:c1:40:c2:e8 > inet 192.168.60.1 netmask 0xffffff00 broadcast 192.168.60.255 > media: Ethernet autoselect (1000baseTX ) > status: active > > # ifconfig vlan0 > vlan0: flags=8843 metric 0 mtu 1500 > ether 00:14:c1:40:c2:e8 > inet 192.168.100.1 netmask 0xffffff00 broadcast 192.168.100.255 > media: Ethernet autoselect (1000baseTX ) > status: active > vlan: 10 parent interface: re0 > ----------------------------------------- > > on PC #2 : > ----------------------------------------- > # ifconfig re0 > re0: flags=8843 metric 0 mtu 1500 > options=98 > ether 00:15:8a:00:48:80 > inet 192.168.60.2 netmask 0xffffff00 broadcast 192.168.60.255 > media: Ethernet autoselect (1000baseTX ) > status: active > > # ifconfig vlan0 > vlan0: flags=8843 metric 0 mtu 1500 > ether 00:15:8a:00:48:80 > inet 192.168.100.2 netmask 0xffffff00 broadcast 192.168.100.255 > media: Ethernet autoselect (1000baseTX ) > status: active > vlan: 10 parent interface: re0 > ----------------------------------------- > > > > Any packet greater than 1472 which gets fragmented doesn't pass through: > command : ping -c 1 -s 1473 192.168.100.2 > > on the sending machine: > ----------------------------------------- > # tcpdump -i re0 -n -vvv not tcp and not stp > > 23:11:07.649600 IP (tos 0x0, ttl 64, id 399, offset 0, flags [+], proto > ICMP (1), length 1500) 192.168.100.1 > 192.168.100.2: ICMP echo request, > id 19972, seq 0, length 1480 > 23:11:07.649605 IP (tos 0x0, ttl 64, id 399, offset 1480, flags [none], > proto ICMP (1), length 21) 192.168.100.1 > 192.168.100.2: icmp > ----------------------------------------- > > > Whereas on the receiving machine I don't get any packet. > To rule out other possible issues, would you try the following files on your box? http://people.freebsd.org/~yongari/re/if_re.c http://people.freebsd.org/~yongari/re/if_rereg.h -- Regards, Pyun YongHyeon