NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

dhclient not working, wireless?



Hi,

I had to change laptop, the previous one broke down. I bought a used one and transferred the HD. I had a working setup, with both wired and wireless.

The new laptop came with an intel 2200 wireless card. I got a lot of "unknown authentication state 1" errors. I thus replaced it with the network card I was already using (still an intel 2200 but apparently slightly different revision) and my previous setup did run.

Now, my wired ethernet with static ip works, just ith the old ifconfig file (renamed from bge0 to wm0 according to the new interface name). Fine.

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
sudo ifconfig iwi0 ssid xxxxxxxxxx
sudo ifconfig iwi0 nwkey yyyyyyyyyyyyyy
sudo dhclient -v iwi0

Which is a script which sued to work. everything looks fine, I get an IP address, which, I suppose, means that the wireless card authenticated to the WEP network and works. Howver, I can't ping any host, not even the router, getting the message that the netowrk is down


netstat -r shows: in the IPv4, iwi0 doesn't even show! what's going on?

Internet:
Destination Gateway Flags Refs Use Mtu Interface
127/8              localhost          UGRS        -        -  33192 lo0
localhost          localhost          UH          -        -  33192 lo0
192.168.1/24       link#1             UC          -        -      - wm0
192.168.1.154      link#1             UHLc        -        -      - wm0
192.168.1.156      localhost          UGHS        -        -  33192 lo0
192.168.1.254      link#1             UHLc        -        -      - wm0

Internet6:
Destination Gateway Flags Refs Use Mtu Interface
::/104             localhost          UGRS        -        -      - lo0
::/96              localhost          UGRS        -        -      - lo0
localhost          localhost          UH          -        -  33192 lo0
::127.0.0.0/104    localhost          UGRS        -        -      - lo0
::224.0.0.0/100    localhost          UGRS        -        -      - lo0
::255.0.0.0/104    localhost          UGRS        -        -      - lo0
::ffff:0.0.0.0/96  localhost          UGRS        -        -      - lo0
2001:db8::/32      localhost          UGRS        -        -      - lo0
2002::/24          localhost          UGRS        -        -      - lo0
2002:7f00::/24     localhost          UGRS        -        -      - lo0
2002:e000::/20     localhost          UGRS        -        -      - lo0
2002:ff00::/24     localhost          UGRS        -        -      - lo0
fe80::/10          localhost          UGRS        -        -      - lo0
fe80::%wm0/64      link#1             UC          -        -      - wm0
fe80::210:c6ff:fed 00:10:c6:de:5d:a8  UHL         -        -      - lo0
fe80::%iwi0/64     link#2             UC          -        -      - iwi0
fe80::215:ff:fe38: 00:15:00:38:b1:9e  UHL         -        -      - lo0
fe80::%lo0/64      fe80::1%lo0        U           -        -      - lo0
fe80::1%lo0        link#3             UHL         -        -      - lo0
ff01:1::/32        link#1             UC          -        -      - wm0
ff01:2::/32        link#2             UC          -        -      - iwi0
ff01:3::/32        localhost          UC          -        -      - lo0
ff02::%wm0/32      link#1             UC          -        -      - wm0
ff02::%iwi0/32     link#2             UC          -        -      - iwi0
ff02::%lo0/32      localhost          UC          -        -      - lo0

This is clearly a problem. I then tried to run "dhclient -v wm0", that is thewiredinterface and I get an IP address, but still the newtork doesn't work. However, the static IP config doesn't work. What's goingon? dhclient notworking? what puzzles me is that from the install wise, using the same HD, the installation is a "known good" one.

Riccardo


Home | Main Index | Thread Index | Old Index