NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dhclient not working, wireless?
Hi,
let me give some more information.
When I run on the wired ethernet "wm0", netstat shows:
Destination Gateway Flags Refs Use Mtu Interface
default 192.168.1.254 UGS - - - wm0
127/8 localhost UGRS - - 33192 lo0
localhost localhost UH - - 33192 lo0
192.168.1/24 link#1 UC - - - wm0
192.168.1.254 00:a0:c5:44:07:5b UHLc - - - wm0
On 09/09/13 00:40, Riccardo Mottola wrote:
to change interface from cable to wireless, I do run:
sudo route delete default
sudo route delete 192.168.1.0
sudo ifconfig wm0 down
after executing this, my routing table is "clean":
Destination Gateway Flags Refs Use Mtu
Interface
127/8 localhost UGRS - - 33192 lo0
localhost localhost UH - - 33192 lo0
sudo ifconfig iwi0 ssid xxxxxxxxxx
sudo ifconfig iwi0 nwkey yyyyyyyyyyyyyy
sudo dhclient -v iwi0
This shows:
DHCPREQUEST on iwi0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.254
bound to 192.168.1.154 -- renewal in 116736 seconds
I can assume thus that the wireless card is working and communicated to
the router and got an address, I'd say it is not a hardware problem, right?
I can ping 192.168.1.254, but
grid$ ping www.netbsd.org
ping: Cannot resolve "www.netbsd.org" (Host name lookup failure)
However netstat:
Destination Gateway Flags Refs Use Mtu
Interface
default 192.168.1.254 UGS - - -L wm0
127/8 localhost UGRS - - 33192L lo0
localhost localhost UH - - 33192L lo0
192.168.1/24 link#2 UC - - -L iwi0
192.168.1.154 localhost UGHS - - 33192L lo0
192.168.1.254 link#2 UHLc - - -L iwi0
Why is the default route on wm0? I did run dhclient on iwi0!
Or is there another problem?
Riccardo
Home |
Main Index |
Thread Index |
Old Index