From owner-freebsd-hackers@FreeBSD.ORG Thu May 15 00:48:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F52F37B401 for ; Thu, 15 May 2003 00:48:07 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E639F43F3F for ; Thu, 15 May 2003 00:48:05 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h4F7m3X5123259; Thu, 15 May 2003 11:48:03 +0400 (MSD) Date: Thu, 15 May 2003 11:48:03 +0400 (MSD) From: Maxim Konovalov To: Marco Wertejuk In-Reply-To: <20030514184845.GA7573@maeko> Message-ID: <20030515114239.Y95792@news1.macomnet.ru> References: <20030514184845.GA7573@maeko> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: vlan/bridging broken in 4.8-release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 07:48:07 -0000 Hi, On 20:48+0200, May 14, 2003, Marco Wertejuk wrote: > Hello, > > I'm trying to get bridging working on vlans, and it seems as > if packet destined for the other side of the bridge > don't get forwarded from the vlan-if to the phys-if and > vice versa. > > An example: there are two hosts (foo[10.1.2.1/24], > bar[10.1.2.2/24]) and the bridge doh. All 4.8-RELEASE. > > foo is crosslinked to doh's fxp1, bar is on a hp procurve > switch in vlan 11. doh uses fxp0 to the switch and has > vlans enabled, see ifconfig on doh: > > fxp0: flags=8943 mtu 1500 > ether 00:d0:b7:9a:1a:0e > media: Ethernet autoselect (100baseTX ) > status: active > fxp1: flags=8943 mtu 1500 > ether 00:d0:b7:9a:1a:0f > media: Ethernet autoselect (100baseTX ) > status: active > vlan0: flags=8843 mtu 1500 > ether 00:d0:b7:9a:1a:0e > media: Ethernet autoselect (100baseTX ) > status: active > vlan: 11 parent interface: fxp0 > > Bridging is enabled between vlan0 and fxp1. > > Now, when bar tries to ping foo (traffic goes > from vlan0 to fxp1) this happens on doh: > (tcpdump -tni fxp0): > 802.1Q vlan#11 P0 arp who-has 10.1.2.1 tell 10.1.2.2 > 802.1Q vlan#11 P0 arp reply 10.1.2.1 is-at 0:d0:b7:b:1e:92 > 802.1Q vlan#11 P0 10.1.2.2 > 10.1.2.1: icmp: echo request > (tcpdump -tni vlan0): > arp who-has 10.1.2.1 tell 10.1.2.2 > arp reply 10.1.2.1 is-at 0:d0:b7:b:1e:92 > > The icmp echo request is not passed to the vlan-if > because it's not to a broadcast packet and so it is > not bridged. > > Is there a trick to get this working or do you need > more debug info? I am trying to solve some bugs in bridging code in -current. I believe we have the same bugs in -stable as well. First of all, do not use bridge.ko, use 'options BRIDGE' in your kernel config file instead. Second, try to play with net.inet.ip.check_interface sysctl. HTH -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org