Network Configuration
This guide covers three common tools for managing wireless network connections on Arch Linux.
Tool Comparison
Section titled “Tool Comparison”| Tool | Interface | Best For |
|---|---|---|
| NetworkManager | nmcli | Desktops, laptops, “just works” experience |
| ConnMan | connmanctl | Minimal resource footprint |
| IWD | iwctl | Arch installation, simple dedicated wireless |
NetworkManager
Section titled “NetworkManager”The most popular and feature-rich option for network management.
Enable the Service
Section titled “Enable the Service”sudo systemctl enable --now NetworkManager.serviceOptionally disable the wait-online service (speeds up boot):
sudo systemctl disable NetworkManager-wait-online.serviceConnect to Wi-Fi
Section titled “Connect to Wi-Fi”# List network devicesnmcli device
# Scan for networksnmcli device wifi list
# Connect (will prompt for password)nmcli dev wifi connect "Your-SSID" --askManage Saved Connections
Section titled “Manage Saved Connections”| Action | Command |
|---|---|
| Show saved | nmcli connection show |
| Connect | nmcli connection up "SSID" |
| Disconnect | nmcli connection down "SSID" |
| Delete | nmcli connection delete "SSID" |
ConnMan
Section titled “ConnMan”A lightweight and fast network manager.
Enable the Service
Section titled “Enable the Service”sudo systemctl enable --now connman.serviceConnect to Wi-Fi
Section titled “Connect to Wi-Fi”Enter the interactive shell:
connmanctlThen run these commands:
connmanctl> enable wificonnmanctl> scan wificonnmanctl> services# Note the long service_id stringconnmanctl> agent onconnmanctl> connect wifi_xxxxx_managed_psk# Enter password when promptedconnmanctl> quitVerify Connection
Section titled “Verify Connection”ping -c 3 archlinux.orgIWD (iNet Wireless Daemon)
Section titled “IWD (iNet Wireless Daemon)”Modern, lightweight wireless daemon - recommended for Arch installation.
Enter Interactive Mode
Section titled “Enter Interactive Mode”iwctlConnect to Wi-Fi
Section titled “Connect to Wi-Fi”[iwd]# device list[iwd]# station wlan0 scan[iwd]# station wlan0 get-networks[iwd]# station wlan0 connect "Your-SSID"# Enter passphrase when prompted[iwd]# exitQuick One-Liner
Section titled “Quick One-Liner”iwctl --passphrase "your-password" station wlan0 connect "Your-SSID"