From owner-freebsd-questions@FreeBSD.ORG Mon Sep 29 16:40:58 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 C7323106569B for ; Mon, 29 Sep 2008 16:40:58 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.241]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3E18FC32 for ; Mon, 29 Sep 2008 16:40:58 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by hs-out-0708.google.com with SMTP id 54so535662hsz.11 for ; Mon, 29 Sep 2008 09:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :sender:to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=dBqYJIuU8UA4T00B/q/y1YruyeXm31w7im2YWPiXNoY=; b=tCLbpwqI/1Be2MCmp+MpnzOGMEFvYbOKK2Yp5PbHKOLa+k3KdcW5u0SdXnSlQ3/xFn 6yP1Ej7k0oKiukjPXgn0w1wQAz8/2ZrNAKkQGvrog7bJeXxjL7hWuudJWpNia1mEJbeV E2uLpOLFuJyla7LiQs/Gp06X+qIX+GTH/yWBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references:x-google-sender-auth; b=Asqf2k3+KK3qnzvZiAFROFTkF9uVkeh8aB8EVYGXnVbNwM3nUr9cY1mWphuCKKNtKt s8VsmnwOsC/4QdU6PdoZl0IEYBZp6ns5Nu3yrPWAyXeO5nZa+7E0xhS4GaFtyGC1dYZi 2lW3psV4oa8Cxn09oSIx8DnNjaIejuJHhklXM= Received: by 10.143.17.13 with SMTP id u13mr2308885wfi.18.1222706456960; Mon, 29 Sep 2008 09:40:56 -0700 (PDT) Received: by 10.142.44.17 with HTTP; Mon, 29 Sep 2008 09:40:56 -0700 (PDT) Message-ID: <539c60b90809290940v6921300er4ee357401266bd1@mail.gmail.com> Date: Mon, 29 Sep 2008 09:40:56 -0700 From: "Steve Franks" Sender: bahamasfranks@gmail.com To: "Nikos Vassiliadis" In-Reply-To: <200809291217.54790.nvass@teledomenet.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <539c60b90809271052q4acc58c0g8595eaf6f37f2287@mail.gmail.com> <200809291217.54790.nvass@teledomenet.gr> X-Google-Sender-Auth: 6690440c11464499 Cc: freebsd-questions@freebsd.org Subject: Re: can't add interfaces to bridge X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stevefranks@ieee.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 16:40:58 -0000 On Mon, Sep 29, 2008 at 2:17 AM, Nikos Vassiliadis wrote: > 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... > Just trying to string some old printers & the like off my rl0 and get them onto the local wifi net via ath0. ath0 is connected to an AP. Steve