wlan0 (WPA2) doesn't work when configured manually
Posted
by
71GA
on Ask Ubuntu
See other posts from Ask Ubuntu
or by 71GA
Published on 2012-09-12T15:14:28Z
Indexed on
2012/09/12
15:50 UTC
Read the original article
Hit count: 247
networking
|interface
I have been trying to reconfigure my eth0 and wlan0 interfaces by editing /etc/network/interfaces
file as folows:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.11
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
dns-nameservers 193.2.1.66
auto wlan0
iface wlan0 inet static
address 192.168.1.10
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
dns-nameservers 193.2.1.66
wpa-driver wext
wpa-ssid lausi
wpa-ap-scan 2
wpa-proto RSN
wpa-pairwise CCMP
wpa-group CCMP
wpa-key-mgmt WPA-PSK
wpa-psk 8952a447c860d13847ba1cabd15314ba9caf2fb207f19598f90c43fcd43c0d97
But my wireless doesnt work when i use command /etc/init.d/networking restart
and when i do this i get an error:
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces...
RTNETLINK answers: File exists
Failed to bring up eth0.
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
RTNETLINK answers: File exists
Failed to bring up wlan0.
Although it clearly states that my eth0 interface couldn't be brought to life it is working! But i cant say this for the wlan0 interface which doesn't even work if i unplug internet cable and again use command /etc/init.d/networking restart
. This seems weird to me...
When i use ìfconfig -a
command i get an output which confirms that wlan0 isnt working and eth0 is.
ziga@ziga-cq56:/etc/network$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 60:eb:69:6f:5f:69
inet addr:192.168.1.11 Bcast:192.168.1.13 Mask:255.255.255.0
inet6 addr: fe80::62eb:69ff:fe6f:5f69/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6764 errors:0 dropped:0 overruns:0 frame:0
TX packets:6641 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5932190 (5.9 MB) TX bytes:1331846 (1.3 MB)
Interrupt:42 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1759 errors:0 dropped:0 overruns:0 frame:0
TX packets:1759 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:107772 (107.7 KB) TX bytes:107772 (107.7 KB)
wlan0 Link encap:Ethernet HWaddr 70:f3:95:e7:57:cc
inet addr:192.168.1.10 Bcast:192.168.1.12 Mask:255.255.255.0
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
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
How can i make my wlan0 interface work? It had been working previously with network manager and wicd...
© Ask Ubuntu or respective owner