From owner-freebsd-questions@FreeBSD.ORG Sat May 5 18:31:17 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C547D106566B for ; Sat, 5 May 2012 18:31:17 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 73A058FC08 for ; Sat, 5 May 2012 18:31:17 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id q45IW06Q055670; Sat, 5 May 2012 13:32:00 -0500 (CDT) Date: Sat, 5 May 2012 13:32:00 -0500 (CDT) From: Robert Bonomi Message-Id: <201205051832.q45IW06Q055670@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <20120505162448.GA33675@mech-cluster241.men.bris.ac.uk> Cc: mexas@bristol.ac.uk Subject: Re: help debug bwn(4) wireless 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: Sat, 05 May 2012 18:31:17 -0000 : Anton Shterenlikht wrote: > On Fri, May 04, 2012 at 04:56:33PM -0500, Robert Bonomi wrote: > > > > It looks like you're missing a route. > > > > I suspect you've got a wired ethernet port, that is being conigured > > with a default address. and the default route points -there-. > > > > Please show the output of 'ifconfig -a', and 'netstat -nr'. > > # ifconfig -a > bge0: flags=8843 metric 0 mtu 1500 > options=8009b > ether 00:1a:4b:89:4b:4e > inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255 > nd6 options=29 > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=8049 metric 0 mtu 16384 > options=3 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=21 > bwn0: flags=8843 metric 0 mtu 2290 > ether 00:c0:49:58:00:fe > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > wlan0: flags=8843 metric 0 mtu 1500 > ether 00:c0:49:58:00:fe > inet 192.168.1.104 netmask 0xffffff00 broadcast 192.168.1.255 > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g > status: associated > ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6 > country US authmode WPA2/802.11i privacy ON deftxkey UNDEF > AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan > bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS > wme roaming MANUAL > > > > # netstat -nr > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 192.168.1.1 UGS 0 624 bge0 > 127.0.0.1 link#8 UH 0 0 lo0 > 192.168.1.0/24 link#1 U 0 0 bge0 > 192.168.1.101 link#1 UHS 0 0 lo0 > 192.168.1.104 link#10 UHS 0 0 lo0 > BINGO! You are using *both* a hard-wired connection (bge0) and a wireless (wan0) one. You have configured _both_ adresses on the *same* LAN netblock (192.168.1.0/255). This is a big 'no-no'. Different enterfaces o difereent LANs _have_ to be in different netblocks. As you can see from the 'routing table' *everything* is routed over 'bge0', the _wired_ connection. I don't knoe enough about your neteork 'architecture' to guess what you're -trying- to do, but you'r doing it wrong. At a -minimum-, you need to: 1) use different networks/subnets for the wired network (where 'bge0' is connected) and the wireless network (accessed through 'wlan0'). Tell the wireless access point to hand out DHCP addresses from the netblock 192.168.2.0/24, for example. 2) make sure that the configuration for 'bge0' does -not- set up that interface as the 'default' route. 3) ADD configurationn info to use 'wlan0' as the 'default' route. If you're tryinng to use this computer to 'share' the wireless connection with other machines on the wired network, you will need to enable 'gateway'/'forwarding'/'routing' on this box, to pass packets between the interfaces.