wpa_supplicant
Goal: Allow to connect to a wireless network with Linux CLI
Stop NetworkManager service when using wpa_supplicant!
Connect to WPA Enterprise
Example of a wpa_supplicant configuration file for WPA Enterprise
1. Create a configuration file
radius.conf
Single quote ' in the config file won't be parse correctly
2. Connect to the wireless interface
3. Ask for an IP address for the interface connected to WPA Enterprise network
The image below shows that the wlan1 interface now has the IP 172.18.0.181. The IP address of the WiFi router is 172.18.0.1.
4. Make sure that the gateway is propely set using route
route
Connect to WPA/WPA2-PSK
Follow the same steps than for WPA-Enterprise, but use the following config file:
wpa_supplicant.conf
We can now request an IP address with dhclient
as shown in the section above.
Last updated