Skip to main content

Connect to Wi-Fi on Raspberry Pi 4

The virtual Raspberry Pi 4 board by default connects to the AVH LAN over its Ethernet interface. You can also set up a connection over the emulated Wi-Fi interface, as demonstrated below.

  1. Create a Raspberry Pi 4 device (we use the "lite" stock firmware in this example) and log in using the default credentials (pi/raspberry). Quickstart for Raspberry Pi 4 explains this step in more details.

    Raspberry Pi login

  2. Open the Raspberry Pi configuration tool raspi-config.

    sudo raspi-config

    See raspi-config documentation to learn more about the configuration tool.

  3. Select System Options (menu item 1).

    Configure main screen

  4. Select Wireless LAN (menu item S1).

    Configure system options

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

    Set coutry

    Set coutry confirmation

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

    Set SSID

    Set passphrase

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

    Choose finish

  8. Do not reboot the machine.

    Decline to reboot

  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

    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

    Zero packet loss

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

    sudo ifconfig eth0 up