All Collections
Features
Connect to Wi-Fi on the Raspberry Pi 4
Connect to Wi-Fi on the Raspberry Pi 4

Learn how to set up the virtual board's wlan0 interface.

avhsupport avatar
Written by avhsupport
Updated over a week ago

The virtual Raspberry Pi 4 board connects by default over the ethernet interface.

To set up a connection over Wi-Fi, perform the following:

  1. Create a Raspberry Pi 4 device with the "lite" firmware version and log in using the default credentials (pi/raspberry).

  2. Open the configuration tool.

    sudo raspi-config

  3. Select System Options (menu item 1)

  4. Select Wireless LAN (menu item S1).

  5. Set the country. In our example, we will use the United States. (Type "u" to quickly navigate the menu.)

  6. Set the SSID to Arm and the passphrase to password.

  7. At the main configuration screen, choose Finish. (Push the right arrow on your keyboard twice.)

  8. Do not reboot the machine.

  9. Verify that the wlan0 interface shows a valid IPv4 address that does not start with 169. Please note: the IPv6 address for this interface is a local-link auto address and not a real IPv6 address.

    ip addr show wlan0

  10. Test the Wi-Fi connection to the internet by turning off the ethernet interface and trying to ping a public domain. Look for a result of 0% packet loss.

    sudo ifconfig eth0 down
    ping -c5 aws.com

  11. After the test, you can bring the ethernet interface back up.

    sudo ifconfig eth0 up
Did this answer your question?