Static IP Configuration on Raspbian (Bookworm)
Setting a static IP address on Raspbian Bookworm ensures your Raspberry Pi always uses the same IP, making it easier to access remotely.
1. Open the NetworkManager Configuration
sudo nmcli connection show
2. Modify the Connection to Set a Static IP
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! 🌐
0 件のコメント:
コメントを投稿