Helper with wifi configuration on Raspberry

less than 1 minute read

Configure using NetworkManager

Show available wifi:

nmcli dev wifi

Connect to a wifi

sudo nmcli dev wifi con "WifiSSID" password "mypassword" name "Name of Connection"

Edit connection :

sudo nmcli c edit "myconnection"
> set ipv4.method manual
> set ipv4.addr 192.168.43.5/24 192.168.43.7/24 192.168.43.55/24
> set ipv4.gateway 192.168.43.1
> set connection.autoconnect yes
> save persistent
> quit

Setup static ip in terminal NOT using NetworkManager

Append to the file

sudo nano /etc/network/interface
>> auto wlan0
>> iface wlan0 inet static
>> address 192.168.43.5
>> netmask 255.255.255.0
>> gateway 192.168.43.1
>> wpa-ssid myconnection
>> wpa-psk <HEX_CODE>

Leave a Comment