Skip to content
English
  • There are no suggestions because the search field is empty.

Raspberry Pi: Wi-Fi Profile Configuration Setup

How to Configure Wi-Fi Profile for Raspberry Pi

1. Hardware Preparation

Before configuring the software, ensure the Raspberry Pi's MAC address is 
whitelisted on the network gateway if required.

Note: Run the command “ifconfig” to retrieve the Wifi or ethernet mac address

2. Create the Network Profile
Choose the appropriate command based on the target network's security 
requirements. Replace ExampleSSID and ExamplePassword with the actual 
credentials.

Open Network (Requires no password/Mac filtering): 
sudo nmcli connection add \
 type wifi \
 con-name "chep" \
 ifname wlan0 \
 ssid "BXB-IoT" \
 wifi-sec.key-mgmt none \
 wifi.hidden yes \
 connection.autoconnect yes

Run this after to check if the wifi profile has been created: 
nmcli connection show

Secure Network (WPA2/WPA3):

sudo nmcli connection add \
 type wifi \
 con-name "Example-Secure-Profile" \
 ifname wlan0 \
 ssid "ExampleSSID" \
 wifi-sec.key-mgmt wpa-psk \
 802-11-wireless-security.psk "ExamplePassword" \
 connection.autoconnect yes

Activating The Profile: 
You can manually activate it using the below command: 
sudo nmcli connection up "Example-Profile-Name"

 

Automatic Range Connect: 
If you’d like the raspberry pi player to automatically connect to the network 
once in range, please run the following command: 


sudo nmcli connection modify "Target-Profile-Name" 
connection.autoconnect-priority 100