树莓派-树莓派设置静态IP和DNS 需要编辑/etc/dhcpcd.conf文件 1sudo nano /etc/dhcpcd.conf 修改如下 1234interface eth0static ip_address=192.168.1.177/24static routers=192.168.1.1static domain_name_servers=114.114.114.114 8.8.8.8 8.8.4.4 重启网络服务 12345# 重启所有网络接口sudo service networking restart#sudo ifconfig eth0 down && sudo ifconfig eth0 up 查看当前网络信息 1ifconfig -a #树莓派 #RaspberryPi 树莓派-树莓派设置静态IP和DNS https://dnacore.github.io/post/59a43f15-c49b-404a-80a2-0a04e3819dc7.html 作者 DNACore 发布于 2019年10月17日 更新于 2023年7月4日 许可协议 Linux-文件置空方法 上一篇 树莓派-树莓派替换清华源 下一篇 Please enable JavaScript to view the comments