From owner-freebsd-net@FreeBSD.ORG Fri Feb 29 06:04:00 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 25F761065670 for ; Fri, 29 Feb 2008 06:04:00 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx1.freebsd.org (Postfix) with ESMTP id E430C8FC1B for ; Fri, 29 Feb 2008 06:03:59 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so3752122wfa.7 for ; Thu, 28 Feb 2008 22:03:59 -0800 (PST) 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:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=ZGqrt6LAB0lnr1c5078DhhhZQxGHA1AZVx6y2lB7PmE=; b=cCtXVadfTmewKi1HGW0IHYYXmOd62HVUY2SgXA9JxQi7Z0Nlj2B3xSBTJdSOulPN1Yq+uc/etJ1HvH/7e1T0U4tSXaHB4oG5GNjIOJGAAL7pa0od6M3yanOwFoqddPaLQiwHJAx4DWQYnRAvyEDnYdJNuKLvylgwN4evLEazxpc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=i1AcGMpnNs9fAJl8QrDdvLIcP2T6yHJl3mH6jJVVcwbBk9Y4iIJQa29+eV8JRGBikmUlBjkEEZU1lEnEYF6QqMTd+jcgRumpYigJ8JWZUCUvm+Xn0r7VV7HXzIN7BIUkw2rJGgcCBFNOZX8XKeHLUCq445BURQasvQJbIbcvu2s= Received: by 10.142.128.6 with SMTP id a6mr6853722wfd.138.1204265039532; Thu, 28 Feb 2008 22:03:59 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id 30sm18991914wff.11.2008.02.28.22.03.56 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Feb 2008 22:03:58 -0800 (PST) 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 m1T63rJC061897 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 29 Feb 2008 15:03:53 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m1T63rVg061896 for freebsd-net@freebsd.org; Fri, 29 Feb 2008 15:03:53 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Fri, 29 Feb 2008 15:03:53 +0900 From: Pyun YongHyeon To: freebsd-net@freebsd.org Message-ID: <20080229060353.GC60623@cdnetworks.co.kr> References: <20080225091712.GM88015@hal.rescomp.berkeley.edu> <20080226074355.GD47750@cdnetworks.co.kr> <20080228023840.GR58253@hal.rescomp.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080228023840.GR58253@hal.rescomp.berkeley.edu> User-Agent: Mutt/1.4.2.1i Subject: Re: vlan issues with 7.0-RC3 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: Fri, 29 Feb 2008 06:04:00 -0000 On Wed, Feb 27, 2008 at 06:38:40PM -0800, Christopher Cowart wrote: > On Tue, Feb 26, 2008 at 04:43:55PM +0900, Pyun YongHyeon wrote: > >On Mon, Feb 25, 2008 at 01:17:12AM -0800, Christopher Cowart wrote: > >> Hello, > >> > >> I have a mac mini running 7.0-RC3, which I'm trying to turn it into a > >> router. I have a Linksys SRW2008 "fully managed" (via an IE only web > >> interface, ick) switch. > >> > >> Switch: > >> Port 1 - Trunk vlans 10,60,98 - FreeBSD Box > >> Port 7 - Access vlan 98 - Existing LAN (192.168.1.0/24) > >> > >> OpenWRT (192.168.1.1): > >> WRT54G box on the Existing LAN > >> > >> FreeBSD Box: > >> ifconfig msk0 up > >> ifconfig vlan98 create vlan 98 vlandev msk0 inet 192.168.1.67/24 > >> > >> With this configuration, I can ping hosts on the other lan segment (Port > >> 7). Arp and icmp seem to be quite happy. Unfortunately, I'm not having > >> any luck with tcp and udp. Any attempt to ssh to OpenWRT or dig > >> @OpenWRT hangs indefinitely. If I do a tcpdump, I see the SYN or A? > >> leaving and absolutely no response returning. If I run a tcpdump on > >> OpenWRT, I see no incoming traffic. > >> > >> When I try to connect *to* the FreeBSD box from the other lan segment, I > >> continue to have problems. tcpdump shows the SYNs arriving via vlan98 > >> and the FreeBSD box responding with SYN-ACK. OpenWRT receives the SYNACK. > >> > >> I disabled ipfw just to be sure (sysctl -w net.inet.ip.fw.enable=0), but > >> it had no effect on the problem. If I connect the FreeBSD box to a vlan > >> 98 access port and assign the address to msk0, my connectivity problems > >> go away. This leads me to believe that the firewall on OpenWRT is not > >> the problem and the problem is related to vlans. > >> > >> Thinking it was a problem with the not-so-cheap Linksys POS (bitterness > >> about the IE web interface again), I plugged my MacBook (running > >> Leopard, not FreeBSD) into the trunk port. Running the ifconfig commands > >> above (s/msk0/en0/), I got up and running without any problems. This > >> causes me to suspect the FreeBSD box. > >> > >> Does anyone have any idea what's going on here? Any suggestions for > >> further troubleshooting? > >> > > > > Try disabling hardware features one by one in msk(4) and see how > > it goes. > > o Disable TSO. > > o Disable Tx checksum offload. > > o Disable VLAN hardware tagging. > > Works great after `sudo ifconfig msk0 -txcsum'. > > Is this a known bug, or should I file a PR? Let me know if there are any > other details I can provide to help somebody squash it. > Would you capture broken TCP/UDP frames with tcpdump on receiving side and show it to me? -- Regards, Pyun YongHyeon