From owner-freebsd-net@FreeBSD.ORG Mon Aug 31 01:17:56 2009 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 CFCC0106566B for ; Mon, 31 Aug 2009 01:17:56 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id 97BE98FC0A for ; Mon, 31 Aug 2009 01:17:56 +0000 (UTC) Received: (qmail 75190 invoked from network); 31 Aug 2009 01:17:54 -0000 Received: from unknown (HELO ?192.168.0.2?) (spawk@69.123.45.64) by acm.poly.edu with AES256-SHA encrypted SMTP; 31 Aug 2009 01:17:54 -0000 Message-ID: <4A9B249D.1050104@acm.poly.edu> Date: Sun, 30 Aug 2009 21:17:17 -0400 From: Boris Kochergin User-Agent: Thunderbird 2.0.0.19 (X11/20090108) MIME-Version: 1.0 To: Sin References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: ath0 unable to DHCP as part of a bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2009 01:17:56 -0000 Sin wrote: > Hello, > > > I'm using FreeBSD 7-STABLE. I have 6 NICs as a bridged interface, one of which is a ath0 wireless NIC. I don't understand if this acting the way it should. If I try to dhclient on interfact ath0 I'll get the request no problems. But if I dhclient to bridge0 interface, it acts like there's no server - Even though its bridged. Also note if I connect a cable to any of the wired NICs, dhclient will then work on bridge0 interface. > > The setup is kinda complicated, but i'm hoping someone may have a different view on it. One thing that confused me is that the line in /etc/rc.conf ifconfig_ath0="WPA" - it does not matter if this line is before or after the bridge declaration. > > > Compiled into the kernel: > > > options NETGRAPH > options NETGRAPH_L2TP > options NETGRAPH_PPP > options NETGRAPH_PPPOE > options NETGRAPH_PPTPGRE > options NETGRAPH_MPPC_ENCRYPTION > > options IPFIREWALL > options IPFIREWALL_VERBOSE > options IPFIREWALL_VERBOSE_LIMIT > options IPFIREWALL_DEFAULT_TO_ACCEPT > > device if_bridge #Bridge interface > device gre #IP over IP tunneling > > > > > FreeBSD domainname 7.2-STABLE FreeBSD 7.2-STABLE #0: Sat Aug 29 05:39:09 EDT 2009 root@domainname:/tmp/CVS/src/sys/i386/compile/TESTROUTER i386 > > > test# kldstat > Id Refs Address Size Name > 1 3 0xc0400000 556810 kernel > 2 1 0xc0957000 6a49c acpi.ko > > > test# ifconfig -a > sk0: flags=8943 metric 0 mtu 1500 > options=8 > ether 00:0f:3d:88:18:31 > media: Ethernet autoselect (none) > status: no carrier > vr0: flags=8943 metric 0 mtu 1500 > options=2808 > ether 00:05:5d:75:1a:12 > media: Ethernet autoselect (none) > status: no carrier > vr1: flags=8943 metric 0 mtu 1500 > options=2808 > ether 00:05:5d:e9:61:79 > media: Ethernet autoselect (none) > status: no carrier > ath0: flags=8943 metric 0 mtu 1500 > ether 00:17:9a:4c:e7:83 > inet 192.168.0.251 netmask 0xffffff00 broadcast 192.168.0.255 > media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/48Mbps) > status: associated > ssid dts channel 2 (2417 Mhz 11g) bssid 00:17:9a:9e:f3:82 > authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit > txpower 31.5 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 > bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS burst > roaming MANUAL bintval 30 > sk1: flags=8943 metric 0 mtu 1500 > options=8 > ether 00:11:95:d7:25:e3 > media: Ethernet autoselect (none) > status: no carrier > sk2: flags=8943 metric 0 mtu 1500 > options=8 > ether 00:11:95:d7:25:ee > media: Ethernet autoselect (none) > status: no carrier > lo0: flags=8049 metric 0 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > bridge0: flags=8843 metric 0 mtu 1500 > ether 96:25:58:f9:dd:3d > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: vr1 flags=143 > ifmaxaddr 0 port 3 priority 128 path cost 55 > member: vr0 flags=143 > ifmaxaddr 0 port 2 priority 128 path cost 55 > member: sk2 flags=143 > ifmaxaddr 0 port 6 priority 128 path cost 55 > member: sk1 flags=143 > ifmaxaddr 0 port 5 priority 128 path cost 55 > member: sk0 flags=143 > ifmaxaddr 0 port 1 priority 128 path cost 55 > member: ath0 flags=143 > ifmaxaddr 0 port 4 priority 128 path cost 76923 > > > - 7.1-RELEASE upgrade to stable without mergemaster > - world and kenel built from this supfile: > > test# cat /tmp/CVS/supfile > *default tag=RELENG_7 > *default host=cvsup1.ca.FreeBSD.org > *default prefix=/tmp/CVS > *default base=/var/db > *default release=cvs delete use-rel-suffix compress > > src-all > > > > > example of the exact issue as found in the command line: > > test# dhclient bridge0 > DHCPDISCOVER on bridge0 to 255.255.255.255 port 67 interval 4 > DHCPDISCOVER on bridge0 to 255.255.255.255 port 67 interval 5 > DHCPDISCOVER on bridge0 to 255.255.255.255 port 67 interval 10 > DHCPDISCOVER on bridge0 to 255.255.255.255 port 67 interval 14 > DHCPDISCOVER on bridge0 to 255.255.255.255 port 67 interval 21 > DHCPDISCOVER on bridge0 to 255.255.255.255 port 67 interval 7 > No DHCPOFFERS received. > No working leases in persistent database - sleeping. > > test# dhclient ath0 > DHCPREQUEST on ath0 to 255.255.255.255 port 67 > DHCPACK from 192.168.0.1 > bound to 192.168.0.177 -- renewal in 43200 seconds. > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > I think you are hitting the limitation described at the bottom of the if_bridge(4) man page: Only wireless interfaces in hostap mode can be bridged due to the 802.11 framing format, bridging a wireless client is not supported yet. -Boris