From owner-freebsd-net@FreeBSD.ORG Sat Apr 15 01:23:52 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 448E516A402 for ; Sat, 15 Apr 2006 01:23:52 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A50A43D45 for ; Sat, 15 Apr 2006 01:23:51 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp222-116.lns2.adl4.internode.on.net [203.122.222.116]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id k3F1Ncqg093498 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 15 Apr 2006 10:53:43 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Fabian Keil Date: Sat, 15 Apr 2006 10:53:01 +0930 User-Agent: KMail/1.9.1 References: <200604142048.20189.doconnor@gsoft.com.au> <20060414140709.20c51ebc@localhost> In-Reply-To: <20060414140709.20c51ebc@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2383485.QTARSd2WX3"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200604151053.25089.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.56 on 203.31.81.10 Cc: freebsd-net@freebsd.org Subject: Re: How to use if_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: Sat, 15 Apr 2006 01:23:52 -0000 --nextPart2383485.QTARSd2WX3 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 14 April 2006 21:37, Fabian Keil wrote: > > killall devd [to stop it running dhclient] > > /etc/rc.d/netif stop ath0 > > ifconfig bridge0 create > > wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf > > ifconfig bridge0 create > > ifconfig bridge0 addm ath0 > > dhclient bridge0 > > What's the intention behind the last step > and why did you have to create bridge0 twice? Sorry I made a mistake transcribing my steps.. I only created it once :) I tried the wired interface on my laptop and it worked fine so I think=20 bridging confuses wpa_supplicant - I restarted wpa_supplicant in the=20 foreground and it gave me errors the moment I added it to the bridge. > If you didn't already, you have to set net.inet.ip.forwarding. Ahh OK. > Depending on your firewall setup you might have to disable > some of the net.link.bridge sysctls as well. I don't have any firewalls in the kernel for simplicity at this stage. Thanks for your help. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2383485.QTARSd2WX3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQBEQEsM5ZPcIHs/zowRAgOjAJ970GOcX12q80FbScXKuxRnvszu3QCePXpn NnVC5zHclo9jNkQygkOA9TI= =VR+5 -----END PGP SIGNATURE----- --nextPart2383485.QTARSd2WX3--