Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have some problems connecting to my WiFi (WPA2, standard settings) using wpa_supplicant. My /etc/wpa_supplicant.conf is as follows:

network={
    ssid="MYWIFI"
    psk=********
}

then my /etc/network/interfaces

auto lo
iface lo inet loopback

After putting wpa_supplicant -D -i wlan0 -c /etc/wpa_supplicant.conf into the console I get a connection, it says:

Successfully initialized wpa_supplicant.

But there is no connection. How can I ge this to work?

share|improve this question

1 Answer 1

Looks like you're missing the wlan0 instance to /etc/network/interfaces:

auto wlan0
iface wlan0 inet dhcp
  wpa-conf /etc/wpa_supplicant.conf

For WPA2 I have a few more lines in the wpa configuration file:

network={
ssid="myssid"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="verrysecretpw"
}

I don't need to bring up the interface manually from the console, it just connects upon booting the system.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.