Skip to content

Static IP Configuration on Raspberry Pi OS

Setting a static IP address on Raspberry Pi OS Bookworm ensures your Raspberry Pi always uses the same IP, simplifying remote access.

1. Open the NetworkManager Configuration

sudo nmcli connection show

2. Modify the Connection to Set a Static IP

1
2
3
4
sudo nmcli connection modify "Wired connection 1" ipv4.addresses 192.168.1.100/24
sudo nmcli connection modify "Wired connection 1" ipv4.gateway 192.168.1.1
sudo nmcli connection modify "Wired connection 1" ipv4.dns "8.8.8.8 8.8.4.4"
sudo nmcli connection modify "Wired connection 1" ipv4.method manual
Replace 192.168.1.100 with your desired IP, and adjust the gateway and DNS settings as needed.

3. Save and Apply the Configuration

sudo nmcli connection up "Wired connection 1"

4. Verify the Static IP

ip addr show eth0
Check that the IP address matches your static configuration.

Your Raspberry Pi is now set with a static IP address using NetworkManager! 🌐