Configuring wireless on command line using wpa_supplicant in Trisquel (Debian based)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Configuring wireless on command line using wpa_supplicant in Trisquel (Debian based)
I have been attempting to configure wireless manually from the command line on my Thinkpad 400, but have been unable to get a connection. I am using Trisquel 8.0 which I believe is based on Debian:
$ uname -a
Linux technoethical-t400s-b9d0 4.19.0-gnu #1 SMP Mon Oct 22 06:05:01 PDT 2018 x86_64 x86_64 x86_64 GNU/Linux
After doing this the syslog seem to indicate theat the conneciton is continually being deauthenticated. And at this point running dhclient does not get any responses.
I have a machine with fedora on it where I do a similar set of commands (different driver - use-D ext) and it connects fine.
If I use NetworkManager (which came enabled when I got the system) it also connects fine, though for some reason I have to reboot after powerup for it to work.
I have attached files with output from journalctl (syslog.txt) and the debug output from wpa_supplicant (wpaop.txt). Also output from journalctl for NetworkManager (jcnetman.log) when that is successfully running.
Other Notes:
1./
ifconfig gives me the following:
wlp2s0 Link encap:Ethernet HWaddr c0:cb:38:61:98:59
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2460 errors:0 dropped:0 overruns:0 frame:0
TX packets:1046 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:421705 (421.7 KB) TX bytes:162400 (162.4 KB)
wlp2s0:avahi Link encap:Ethernet HWaddr c0:cb:38:61:98:59
inet addr:169.254.7.124 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Not sure where wlp2s0:avahi comes from - I do not see this on my fedora machine or when I use NetworkManager to bring it up, only the interface with the locally configured ipaddress received from the router.
When the interface is working after rebooting with NetworkManager enabled ifconfig shows:
wlp2s0 Link encap:Ethernet HWaddr c0:cb:38:61:98:59
inet addr:192.168.2.26 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: 2002:5201:e7e1:1234:2e5d:3fc9:79d5:2799/64 Scope:Global
inet6 addr: fe80::d195:9bc6:b6d:ad17/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7586 (7.5 KB) TX bytes:9256 (9.2 KB)
2./
$ rfkill list
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
Has anyone any idea why I am seeing the deauthentication ?
Does anyone know what the wlp2s0:avahi interface is ? - It seems to have a random (external?) ip addess assigned.
hen the interface is working after rebooting with NetworkManager enabled ifcoinfi shows:
wlp2s0 Link encap:Ethernet HWaddr c0:cb:38:61:98:59
inet addr:192.168.2.26 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: 2002:5201:e7e1:1234:2e5d:3fc9:79d5:2799/64 Scope:Global
inet6 addr: fe80::d195:9bc6:b6d:ad17/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7586 (7.5 KB) TX bytes:9256 (9.2 KB)
2./
$ rfkill list
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
Has anyone any idea why I am seeing the deauthentication ?
Does anyone know what the wlp2s0:avahi interface is ? - It seems to have a random (external?) ip addess assigned.
When the interface is working after rebooting with NetworkManager enabled ifcoinfi shows:
wlp2s0 Link encap:Ethernet HWaddr c0:cb:38:61:98:59
inet addr:192.168.2.26 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: 2002:5201:e7e1:1234:2e5d:3fc9:79d5:2799/64 Scope:Global
inet6 addr: fe80::d195:9bc6:b6d:ad17/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7586 (7.5 KB) TX bytes:9256 (9.2 KB)
2./
$ rfkill list
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
Can anyone see/is able to guess what might be wrong with the configuration ?
Has anyone any idea why I am seeing the deauthentication ?
Does anyone know how I can get information from NetworkManager - config files, logs etc. to see if I can tell what it is doing differently ? Is there a means of getting a list of the commands it uses to connect (not sure what it uses - nmcli ?)
Does anyone know what the wlp2s0:avahi interface is and why it is generated ? - It seems to have a random (external?) ip addess assigned.
Distribution: Ubuntu based stuff for the most part
Posts: 1,179
Rep:
wpa-supplicant from the command line is a pain. It has been a few years since I had to figure it out. I still have the script in my ~/bin but it was copied over from a few laptops ago.
A glance at wicd-cli suggests much more flexibility and control and looks like it could help with troubleshooting.
I will try to give that a go, so thank you for the suggestion.
My general issue is that I am currently finding it very difficult to debug wireless issues when something goes wrong (I initially came to this because when I try to change to using another router the wireless connections no longer work).
I do not know how to trace the point of failure due to a combination of a lack of understanding how wireless configuration, initialisation and connection works and lack of knowledge of tools you can use to debug.
Does anyone know of any other resources which may help me understand how to understand and troubleshoot wireless ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.