Wireless

How to Connect to a WPA or WP2(RSN) network

  • Here are the various types (modes):
  • Check device status. Up or Down. ip link show wlan0 -- should show that the device is down -- i.e. UP is NOT seen between the parenthesis
  • Bring the device Up. ip link set wlan0 up -- requires root access.
  • Check device status. ip link show wlan0 -- you should now see that the device is UP -- i.e. UP is seen between the parenthesis
  • Check the connection status. iw wlan0 link -- which should report that you are NOT connected to a network
  • Scan available Wi-Fi networks. iw wlan0 scan -- note the SSID (network ID) and security protocol (WPA2 or RSN)
  • wpa_passphrase <SSID> >>/etc/wpa_supplicant.conf. Press ENTER and enter the network password followed by ENTER. This requires root access.
  • wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_suppllicant.conf. -B to run in the background (omit this for debugging). -D for the wireless driver. wext is a generic driver.
  • Check the connection status. iw wlan0 link -- which should report that you are now connected to a network
  • Obtain IP address via DHCP. chclient wlan0
  • Test external connectivity. ping www.google.com

    Hostapd