0

I've got the Ethernet port working but can't get the wireless card to work on DHCP. I need to have the know how to add in wireless networks into a file that will connect to them when available. Here are my

/etc/network/interfaces

auto wlp3s0
iface wlp3s0 inet dhcp
wpa-driver iwlwifi 
#wpa-roam /etc/wpa_supplicant.conf
wpa-conf /etc/wpa_supplicant.conf
wireless-rate 54M
pre-up wpa_supplicant -Bw -Diwlwifi -iwlp3s0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

and my /etc/wpa_supplicant.conf files:

ctrl_interface=/var/run//wpa_supplicant

network={
    ssid="myNet"
    scan_ssid=1
    proto=WPA RSN
    key_mgmt=WPA-PSK
    pair wise=CCMP TKIP
    group=CCMP TKIP
    #psk="###"
    psk=########################
}

I feel like there is something simple I'm missing/overlooking.

EDIT I get errors such as "Destination Host Unreachable" when I ping 8.8.8.8

EDIT I can't get the wireless card state to come UP. Here is an error log:

Starting /sbin/wpa_supplicant...
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpa_supplicant exited with return code 1
Failed to bring up wlp3s0.

1 Answers1

0

This is not a complete answer but this problem is found here:

https://ubuntuforums.org/showthread.php?t=2325768

And the error with wpa_supplicant was never fixed to allow wireless profiles to be saved and used. So for a user to readily connect wirelessly using DHCP they must do this every time:

sudo iwlist wlp3s0 scanning | egrep 'Cell |Encryption|Quality|Last beacon|ESSID'

Found here How do I scan for Wireless Access Points?

Then set your /etc/network/interfaces file as such:

auto wlp3s0
iface wlp3s0 inet dhcp 
wpa-ssid YOUR_ESSID
wpa-psk YOUR_PASSWORD

Get your hex generated password using this command if you need to use the wpa_supplicant.conf file for whatever reason:

sudo wpa_passphrase YOUR_ESSID YOUR_PASSWORD

You can find the name and state of your network interfaces using this command:

ip link show

Which will tell you the name of wlp3s0 or wlan0 or whatever yours is. But as for actually using wpa_supplicant.conf and keeping track of what wireless networks you use, maybe someone can answer that.