Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 May 2012 17:31:45 +0100
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        Ian Smith <smithi@nimnet.asn.au>
Cc:        Anton Shterenlikht <mexas@bristol.ac.uk>, freebsd-questions@freebsd.org, freebsd-mobile@freebsd.org
Subject:   Re: help debug bwn(4) wireless
Message-ID:  <20120505163145.GC33675@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <20120505163154.O78676@sola.nimnet.asn.au>
References:  <20120504200307.GA30426@mech-cluster241.men.bris.ac.uk> <20120505163154.O78676@sola.nimnet.asn.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 05, 2012 at 04:38:18PM +1000, Ian Smith wrote:
> On Fri, 4 May 2012 21:03:07 +0100, Anton Shterenlikht wrote:
> [..]
>  > 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
>  > 
>  > I run wpa_supplicant:
>  > 
>  > # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf 
>  > Trying to associate with 00:18:39:e6:46:b6 (SSID='lagartixa' freq=2462 MHz)
>  > Associated with 00:18:39:e6:46:b6
>  > WPA: Key negotiation completed with 00:18:39:e6:46:b6 [PTK=CCMP GTK=CCMP]
>  > CTRL-EVENT-CONNECTED - Connection to 00:18:39:e6:46:b6 completed (auth) [id=0 id_str=]
>  > 
>  > I got issued the ip address by my wireless router.
>  > 
>  > I see the card on the router:
>  > 
>  > DHCP Active IP Table 	  	 
>  > DHCP Server IP Address:   192.168.1.1 	
>  > Client Host Name 	IP Address 	MAC Address 		Expires 	
>  > 			192.168.1.104 	00:c0:49:58:00:fe 	23:58:54 	
>  > 
>  > I get /etc/resolve.conf set up automatically
>  > (through the wired connection):
>  > 
>  > % cat /etc/resolv.conf
>  > # Generated by resolvconf
>  > search cable.virginmedia.net
>  > nameserver 194.168.4.100
>  > nameserver 194.168.8.100
>  > 
>  > 
>  > But I just can't get the wireless connection,
>  > even to the router:
>  > 
>  > % ping 192.168.1.1
>  > PING 192.168.1.1 (192.168.1.1): 56 data bytes
>  > ping: sendto: No route to host
>  > ping: sendto: No route to host
>  > ^C
> 
> What sayeth 'netstat -finet -rn' ?

# netstat -finet -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.1.1        UGS         0     1437   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


I've these lines in /etc/rc.conf:

defaultrouter="192.168.1.1"
ifconfig_bge0="DHCP"
ifconfig_wlan0="DHCP"

Does this look right?

Many thanks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120505163145.GC33675>