Install WPA Supplicant

Follow the steps below to install WPA supplicant.
  1. Execute the following command to connect to the network configured in wpa_supplicant.conf:
    wpa_supplicant -Dnl80211 -i wlan0 -c wpa_supplicant.conf -d&
    Example Output
    Figure 1. Example Output
  2. After connect successfully, execute the following command to obtain the IP of wlan0 by using the udhcpc tool:
    udhcpc -i wlan0 
    Example Output
    Figure 2. Wlan0 IP