I've recently started working with Ubuntu Server 10.04, but I'm having a problem while connecting to WEP-encrypted Wifi.
I've tried the following:
sudo ifconfig wlan0 down
sudo dhclient -r wlan0
sudo ifconfig wlan0 up
sudo iwconfig wlan0 essid "<essid>"
sudo iwconfig wlan0 key <hex key>
Then, I tried to connect to the Wifi by running sudo dhclient wlan0
, however, I keep getting the same error- No DHCPOFFERS received.
Am I doing this the right way, or is there something I'm forgetting?
sudo ifconfig
yields:
wlan0 Link encap: Ethernet HWAaddr 00:1f:1f:3b:3c:3e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
X bytes:0 (0.0B) TX Bytes:0 (0.0B)
While sudo iwconfig
yields:
wlan0 IEEE 802.11bg ESSID:"GlobalNetwork"
Mode:Managed Access Point: Not-Associated Tx-Power:8 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:my-hex-key
Power Management:off
I'm trying to connect with a Ralink RT2561 that shows up with lshw -C network
.
Any help you can give me is much appreciated, what am I doing wrong?