From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 17:13:24 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FAA816A4CE; Thu, 12 Feb 2004 17:13:24 -0800 (PST) Received: from delivery.infowest.com (delivery.infowest.com [204.17.177.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0229D43D1F; Thu, 12 Feb 2004 17:13:24 -0800 (PST) (envelope-from agifford@infowest.com) Received: from infowest.com (unknown [208.186.104.163]) by delivery.infowest.com (Postfix) with ESMTP id 36129EAA346; Thu, 12 Feb 2004 18:13:23 -0700 (MST) Message-ID: <402C247B.4060009@infowest.com> Date: Thu, 12 Feb 2004 18:12:27 -0700 From: "Aaron D. Gifford" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: undisclosed-recipients: ; References: <20040212105656.30C99620E@eq.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 13 Feb 2004 06:03:06 -0800 Subject: Unsolved: 5.2 Bridging issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2004 01:13:24 -0000 I originally wrote: >> I've got a bridge(4) issue on a BSD 5.2.1 box. The bridging box has >> three ethernet interfaces, two bridged together in a single cluster, >> and one connected to the internet. The box acts as a bridge for the >> two network segments, and as a router to the Internet (it's the >> default gateway). The problem is, only one of the bridged segments >> can communicate with the BSD box directly (and thus the Internet), >> even though the two segments can talk to each other just fine. And Bjorn Eikeland responded: > Try sysctl net.inet.ip.check_interface=0 - sounds like the same problem > i had with my > bridge a while back. > > good luck! > > Bjorn I then replied that his Bjorn's explanation worked. Well, I feel like an idiot now, but it turns out it didn't work after all. I just had plugged in my test machine into the wrong ethernet port, so of course things worked. Quick recap of my set-up: FreeBSD box with 3 interfaces, two bridged, the other connects to the Internet. The interfaces are as follows: em0 10.10.10.1/24 Bridged with rl1 rl0 10.20.20.2/24 Not bridged, connects to rest of net rl1 NO IP ADDRESS Bridged with em0 so hosts on this segment are on the same 10.10.10.0/24 subnet All hosts on 10.10.10.0/24 use 10.10.10.1 as the default gateway. The FreeBSD box in question acts as a router and bridge, routing stuff to an upstream router (call it 10.20.20.1). Some sysctl settings: --------------------- net.link.ether.bridge.enable: 1 net.link.ether.bridge.config: em0:1,rl1:1 net.link.ether.bridge_ipfw: 0 net.inet.ip.check_interface: 0 net.inet.ip.forwarding=1 Routing Table: -------------- Internet: Destination Gateway Flags Refs Use Netif default 10.20.20.1 UGS 0 193583 rl0 10/24 link#3 UC 0 0 em0 127.0.0.1 127.0.0.1 UH 0 2300 lo0 10.20.20.0/24 link#1 UC 0 0 rl0 10.20.20.1 01:23:45:67:89:ab UHLW 1 0 rl0 ifconfig sample: ---------------- rl0: flags=8843 mtu 1500 options=8 inet 10.20.20.2 netmask 0xfffffff0 broadcast 10.20.20.255 ether 0f:1e:2d:3c:4b:3a media: Ethernet autoselect (100baseTX ) status: active rl1: flags=8943 mtu 1500 options=8 ether 00:11:aa:bb:22:cc media: Ethernet autoselect (100baseTX ) status: active em0: flags=8943 mtu 1500 options=3 inet 10.10.10.1 netmask 0xffffff00 broadcast 10.10.10.255 ether ab:cd:ef:98:76:54 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 PROBLEM RECAP: -------------- Traffic between em0 and rl1 is bridged just fine, EXCEPT for traffic TO/FROM the FreeBSD host itself TO any hosts on rl1 (the interface without the IP address). So 10.10.10.100 on rl1 can talk with 10.10.10.50 on em0, ARP traffic as well as IP traffic. But the BSD host will never get ARP or IP traffic to/from 10.10.10.100 on rl1. The BSD host can talk just fine to 10.10.10.50 on em0. Anyone else have any ideas? The system's running FreeBSD 5.2.1-RC2. Thanks again in advance! Aaron out.