From owner-freebsd-questions@FreeBSD.ORG Thu Feb 17 21:30:50 2005 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 C55FB16A4CE for ; Thu, 17 Feb 2005 21:30:50 +0000 (GMT) Received: from mail.wtnord.net (mail.wtnord.net [81.8.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8076243D58 for ; Thu, 17 Feb 2005 21:30:49 +0000 (GMT) (envelope-from doktorn@sub.nu) Received: from studsboll.realworld.nu ([212.214.143.231]) by mail.wtnord.net (WebTech Nord) with ESMTP (SSL) id MUN74718 for ; Thu, 17 Feb 2005 22:30:54 +0100 Received: from studsboll.realworld.nu (localhost.realworld.nu [IPv6:::1]) by studsboll.realworld.nu (8.13.1/8.13.1) with SMTP id j1HLUlZn002286 for ; Thu, 17 Feb 2005 22:30:47 +0100 (CET) (envelope-from doktorn@sub.nu) Date: Thu, 17 Feb 2005 22:30:47 +0100 From: Rickard =?ISO-8859-1?Q?Borgm=E4ster?= To: freebsd-questions@freebsd.org Message-Id: <20050217223047.0d1a9661.doktorn@sub.nu> X-Mailer: Sylpheed version 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Bridge problem and replies with bad MAC Adress [5.3R] 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: Thu, 17 Feb 2005 21:30:51 -0000 Hi, I'm trying to set up a bridge on FBSD 5.3-RELEASE with Generic kernel. I want to bridge re0 and xl0, so I've done this: sysctl net.link.ether.bridge.config="re0,xl0" sysctl net.link.ether.bridge.enable=1 re0 has IP adress set while xl0 do not. Both of these interfaces has Windows XP computers with DHCP enabled. DHCP is served by FreeBSD host, and works just fine for both segments. Connectivity between segments is also fine. Ping from a host on xl0 segment to re0 segment, and vice versa, is successful. However, while host on re0 segment can communicate with FreeBSD host, hosts on xl0 segment cannot. Interface setup: re0: flags=8943 mtu 1500 options=1b inet6 fe80::209:5bff:fee1:219%re0 prefixlen 64 scopeid 0x1 inet 10.0.8.46 netmask 0xfffffff0 broadcast 10.0.8.47 ether 00:09:5b:e1:02:19 media: Ethernet autoselect (1000baseTX ) status: active xl0: flags=8943 mtu 1500 options=9 inet6 fe80::201:2ff:fefa:8431%xl0 prefixlen 64 scopeid 0x2 ether 00:01:02:fa:84:31 media: Ethernet autoselect (100baseTX ) status: active Test host (flugan) on xl0 segment with IP 10.0.8.34 (MAC 00:06:5b:d4:bc:6d) pings FreeBSD host: # tcpdump -eni xl0 23:00:04.356411 00:06:5b:d4:bc:6d > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: arp who-has 10.0.8.46 tell 10.0.8.34 23:00:04.356457 00:01:02:fa:84:31 > 00:06:5b:d4:bc:6d, ethertype ARP (0x0806), length 42: arp reply 10.0.8.46 is-at 00:01:02:fa:84:31 23:00:04.356675 00:06:5b:d4:bc:6d > 00:01:02:fa:84:31, ethertype IPv4 (0x0800), length 74: IP 10.0.8.34 > 10.0.8.46: icmp 40: echo request seq 12800 23:00:04.356727 00:09:5b:e1:02:19 > 00:06:5b:d4:bc:6d, ethertype IPv4 (0x0800), length 74: IP 10.0.8.46 > 10.0.8.34: icmp 40: echo reply seq 12800 23:00:09.428029 00:06:5b:d4:bc:6d > 00:01:02:fa:84:31, ethertype IPv4 (0x0800), length 74: IP 10.0.8.34 > 10.0.8.46: icmp 40: echo request seq 13056 23:00:09.428089 00:09:5b:e1:02:19 > 00:06:5b:d4:bc:6d, ethertype IPv4 (0x0800), length 74: IP 10.0.8.46 > 10.0.8.34: icmp 40: echo reply seq 13056 # arp -a wintendo.realworld.kanin (10.0.8.33) at 00:0f:b5:06:67:1f on re0 [ethernet] flugan.realworld.kanin (10.0.8.34) at 00:06:5b:d4:bc:6d on re0 [ethernet] studsboll.realworld.kanin (10.0.8.46) at 00:09:5b:e1:02:19 on re0 permanent [ethernet] I think this is the problem. When flugan (actually connected on xl0 segment) requests MAC address for 10.0.8.46 (FreeBSD interface re0), FreeBSD host replies with the MAC address for the xl0 interface. Altough, when flugan pings FreeBSD host, using the MAC address just received, FreeBSD host replies using MAC adress of re0 (far side). I guess the result of this is that the Windows Workstation on xl0 segment thinks the packet is garbage and discards it. Maybe. Maybe I've missed something important in my configuration? If this is a kernel or bridge.ko bug I guess you would know about it already. Please advice, Thanks. -- Rickard .--. .--. .----------------------------------------. | | | | .-. | Rickard Borgmäster | | | | |/ / | doktorn@sub.nu | .-^ | .--. | < | http://doktorn.sub.nu/ | ( o | ( () ) | |\ \ `----------------------------------------' `-----' `--' `--' `--'