From owner-freebsd-net@FreeBSD.ORG Mon Aug 31 01:05:10 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 894B31065676 for ; Mon, 31 Aug 2009 01:05:10 +0000 (UTC) (envelope-from sinister@gmail.com) Received: from mail-gx0-f227.google.com (mail-gx0-f227.google.com [209.85.217.227]) by mx1.freebsd.org (Postfix) with ESMTP id 39F748FC0A for ; Mon, 31 Aug 2009 01:05:09 +0000 (UTC) Received: by gxk27 with SMTP id 27so4740843gxk.12 for ; Sun, 30 Aug 2009 18:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:subject :date:mime-version:content-type:x-priority:x-msmail-priority :x-mailer:x-mimeole; bh=RUBYx1HxMKzyNee206nmuLOPYrh4GTYydm2tSijb8/Y=; b=a4tikBbQWnHBRmGYeji6wgo7dwN+0/5U8wLF4QvXwIES1xQz8SQQjEDHe5r+TJRoKT +M5gh+I7UdPp3Y20xoWjRMAHGh2s48dgKls+2fGCkpKx3IO8epAEMenrgRt86FzWYcCk A4VP9xEkW0G2aDKHi2ayNK8KlJfT3BzoPfpAQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:mime-version:content-type :x-priority:x-msmail-priority:x-mailer:x-mimeole; b=Uvz3lktyJLzeisD10Xyp3B0lYllgYlIEbE76yhLk6SbMMUQaZgwInjpQUhYusGQG/8 RaxU0jSBNRQgLrvvlfkUSq3+M7nVJnn4hAyrRgaWcx+YeJSVvyQE6Atlf9Nqvk9K2t1i oD2IPw4Uvt7Yr7UisTqRJ7yZcX4Rez8Xhi+IE= Received: by 10.90.127.20 with SMTP id z20mr3502554agc.118.1251679083901; Sun, 30 Aug 2009 17:38:03 -0700 (PDT) Received: from dts (markofthebeast.ca [216.8.139.47]) by mx.google.com with ESMTPS id 34sm3079484agc.31.2009.08.30.17.38.01 (version=SSLv3 cipher=RC4-MD5); Sun, 30 Aug 2009 17:38:02 -0700 (PDT) Message-ID: From: Sin To: Date: Sun, 30 Aug 2009 20:38:13 -0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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:05:10 -0000 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=3D"WPA" - it does not matter if this line is = before or after the bridge declaration.=20 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=3D8943 metric = 0 mtu 1500 options=3D8 ether 00:0f:3d:88:18:31 media: Ethernet autoselect (none) status: no carrier vr0: flags=3D8943 metric = 0 mtu 1500 options=3D2808 ether 00:05:5d:75:1a:12 media: Ethernet autoselect (none) status: no carrier vr1: flags=3D8943 metric = 0 mtu 1500 options=3D2808 ether 00:05:5d:e9:61:79 media: Ethernet autoselect (none) status: no carrier ath0: flags=3D8943 = 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=3D8943 metric = 0 mtu 1500 options=3D8 ether 00:11:95:d7:25:e3 media: Ethernet autoselect (none) status: no carrier sk2: flags=3D8943 metric = 0 mtu 1500 options=3D8 ether 00:11:95:d7:25:ee media: Ethernet autoselect (none) status: no carrier lo0: flags=3D8049 metric 0 mtu 16384 inet 127.0.0.1 netmask 0xff000000 bridge0: flags=3D8843 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=3D143 ifmaxaddr 0 port 3 priority 128 path cost 55 member: vr0 flags=3D143 ifmaxaddr 0 port 2 priority 128 path cost 55 member: sk2 flags=3D143 ifmaxaddr 0 port 6 priority 128 path cost 55 member: sk1 flags=3D143 ifmaxaddr 0 port 5 priority 128 path cost 55 member: sk0 flags=3D143 ifmaxaddr 0 port 1 priority 128 path cost 55 member: ath0 flags=3D143 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=3DRELENG_7 *default host=3Dcvsup1.ca.FreeBSD.org *default prefix=3D/tmp/CVS *default base=3D/var/db *default release=3Dcvs 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.