raspberry pi bookworm setting static ip

sudo vim /etc/network/interfaces.d/eth0

allow-hotplug eth0
iface eth0 inet static
address 192.168.0.NNN/24
#network 10.0.0.0
netmask 255.255.255.0
gateway 192.168.0.1

 

source: https://forums.raspberrypi.com/viewtopic.php?t=366025

 

you can also try this command

sudo nmtui

to manually set a static ip, though I don't recommend.

 

posted @ 2024-08-23 00:41  profesor  阅读(18)  评论(0编辑  收藏  举报