Raspiberry 设置静态IP记录

阅读更多

root 用户

修改:sudo nano /etc/dhcpcd.conf 文件,的 nohook 下面增加如下内容

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname

interface eth0
static ip_address=192.168.8.99/24
static routers=192.168.8.8
static domain_name_servers=192.168.8.8 8.8.8.8

^O,+X

保存,退出并重启 

sudo reboot

 

你可能感兴趣的:(Raspiberry 设置静态IP记录)