From owner-freebsd-questions@FreeBSD.ORG Mon Sep 29 09:30:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B7B81065696 for ; Mon, 29 Sep 2008 09:30:27 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from smtp.teledomenet.gr (smtp.teledomenet.gr [213.142.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id 38E1E8FC2D for ; Mon, 29 Sep 2008 09:30:27 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: by smtp.teledomenet.gr (Postfix, from userid 58) id 38D80142066; Mon, 29 Sep 2008 12:14:48 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on smtp.teledomenet.gr X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 Received: from iris.teledomenet.local (unknown [192.168.1.71]) by smtp.teledomenet.gr (Postfix) with ESMTP id 2821714203A; Mon, 29 Sep 2008 12:14:45 +0300 (EEST) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org, stevefranks@ieee.org Date: Mon, 29 Sep 2008 12:17:54 +0300 User-Agent: KMail/1.9.7 References: <539c60b90809271052q4acc58c0g8595eaf6f37f2287@mail.gmail.com> In-Reply-To: <539c60b90809271052q4acc58c0g8595eaf6f37f2287@mail.gmail.com> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809291217.54790.nvass@teledomenet.gr> Cc: Subject: Re: can't add interfaces to bridge X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 09:30:27 -0000 On Saturday 27 September 2008 20:52:43 Steve Franks wrote: > I'm getting the following error - ifconfig: BRDGADD ath0: Invalid > argument > > Given the following commands (which work for my tap interface with > qemu on 7.1, but apparently not with two regular network cards on > 6.3): > > sudo kldload if_bridge > sudo ifconfig ath0 down > sudo ifconfig rl0 down > sudo ifconfig bridge0 destroy > sudo ifconfig bridge0 create > sudo ifconfig bridge0 addm ath0 > sudo ifconfig bridge0 addm rl0 > sudo ifconfig bridge0 up > sudo ifconfig ath0 up > sudo ifconfig rl0 up > sudo dhclient bridge0 > ifconfig > > I get the following output: > > [steve@aire /usr/home/steve]$ bridge > kldload: can't load if_bridge: File exists > net.link.tap.user_open: 1 -> 1 > net.link.tap.devfs_cloning: 1 -> 1 > net.link.tap.up_on_open: 1 -> 1 I don't see any sysctl related commands in the script above. ? > ifconfig: BRDGADD ath0: Invalid argument > ifconfig: BRDGADD rl0: Invalid argument > DHCPDISCOVER on bridge0 to 255.255.255.255 port 67 interval 8 > ath0: flags=8843 mtu 1500 > inet 192.168.2.69 netmask 0xffffff00 broadcast 192.168.2.255 > ether 00:13:f7:4a:0f:a8 > media: IEEE 802.11 Wireless Ethernet autoselect (DS/1Mbps) > status: no carrier > ssid "" channel 3 > authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit txpowmax 39 > bmiss 7 protmode CTS burst bintval 100 > rl0: flags=8843 mtu 1500 > options=8 > inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 > ether 00:01:6c:16:44:6f > media: Ethernet autoselect (none) > status: no carrier > plip0: flags=108810 mtu 1500 > lo0: flags=8049 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > bridge0: flags=8802 mtu 1500 > ether ea:57:36:3c:28:0c > priority 32768 hellotime 2 fwddelay 15 maxage 20 > [steve@aire /usr/home/steve]$ (I think that) Your wireless card doesn't seem to be in AP mode and if_bridge can only bridge 802.11 interfaces in AP mode with ethernet inter- faces. Two things though: 1) I am not sure if it complains about it as it does above ifconfig: BRDGADD ath0: Invalid argument 2) I do not undestand why it complains about rl0. What are you trying to achieve? Maybe there is some other way... Nikos