No Wi-Fi after system reboot

Posted by ILya on Ask Ubuntu See other posts from Ask Ubuntu or by ILya
Published on 2011-06-25T22:59:14Z Indexed on 2011/06/26 0:30 UTC
Read the original article Hit count: 644

Filed under:
|
|

Something strange is happening... I've installed a Wi-Fi card into my Ubuntu Server 11.04 machine.

To configure it I do the following:

sudo vi /etc/network/interfaces

add:

iface wlan0 inet dhcp
wpa-driver wext
wpa-ssid "Sweet Home"
wpa-ap-scan 1
wpa-proto WPA
wpa-pairwise TKIP
wpa-group TKIP
wpa-key-mgmt WPA-PSK
wpa-psk <A KEY>
auto wlan0

then:

$ sudo /etc/init.d/networking restart
 * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
 * Reconfiguring network interfaces...                                                                        ssh stop/waiting
ssh start/running, process 1522
ssh stop/waiting
ssh start/running, process 1590

And my machine successfully gets an ip to my wireless adapter.

But after reboot it doesn't get any ip in wireless network. To fix it I run /etc/init.d/networking restart again and all is fine again - it gets an ip.

I understand that I simply should add it to my startup scripts to make it work properly, but maybe there is a better way to configure it?

© Ask Ubuntu or respective owner

Related posts about 11.04

Related posts about server