help debug bwn(4) wireless

Robert Bonomi bonomi at mail.r-bonomi.com
Sat May 5 18:31:17 UTC 2012


: Anton Shterenlikht <mexas at bristol.ac.uk> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>     options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
>     ether 00:1a:4b:89:4b:4e
>     inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255 
>     nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>     media: Ethernet autoselect (100baseTX <full-duplex>)
>     status: active
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
>     options=3<RXCSUM,TXCSUM>
>     inet6 ::1 prefixlen 128 
>     inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 
>     inet 127.0.0.1 netmask 0xff000000 
>     nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> bwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
>     ether 00:c0:49:58:00:fe
>     nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>     media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
>     status: associated
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>     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.  <wry grin>

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.




More information about the freebsd-questions mailing list