Skip to content

New article: "X8 - Manually connect to WiFi" [HC-1525] #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
title: "Connect X8 to Wi-Fi using nmcli"
---

Learn how to connect and configure a Wi-Fi connection for Portenta X8 using `nmcli` (Network Manager tool).

> [!TIP]
> Portenta X8 features an [Out-of-the-box experience](https://docs.arduino.cc/tutorials/portenta-x8/user-manual/#out-of-the-box-experience) that helps you set up a Wi-Fi connection.

---

## Open the Android Debug Bridge shell

Before starting, open the [Android Debug Bridge shell](https://support.arduino.cc/hc/en-us/articles/14013004356124-Access-the-Linux-command-line-shell-on-Portenta-X8)

## View Wi-Fi Access points

To see a list of the Wi-Fi access points available, you can use the following command.

```
nmcli dev wifi list
```

## Create a new Wi-Fi connection profile

### Add Wi-Fi Connection Profile

Use the `nmcli con add` command to add a new Wi-Fi connection profile.

```
nmcli con add con-name [connection-name] ifname wlp61s0 type wifi ssid [ssid]
```

Replace [connection-name] with the prefered connection name and [ssid] with the name of the Wi-Fi.

### Modify Wi-Fi Connection Profile

Use the `nmcli con modify` command to change various settings of the network connection. For example, to rename an existing connection, use the following command.

```
nmcli con modify [old-connection-name] connection.id [new-connection-name]
```

Replace [old-connection-name] with the current name of the connection and [new-connection-name] with the new prefered name.

## Connect to a network

Once you've set up a connection profile, you can easily connect to the Wi-Fi using the following command.

```
nmcli con up [connection-name]
```

Replace [connection-name] with the name of the connection profile you created earlier.

If the board successfully connects to Wi-Fi, [The Status LED should be green](https://docs.arduino.cc/tutorials/portenta-x8/user-manual/#first-use-of-your-portenta-x8).

---

For further details, please refer to the [documentation](https://developer-old.gnome.org/NetworkManager/stable/nmcli.html).