树莓派—使用静态 IP 地址

1
2
cd /etc/network
sudo nano interfaces

把iface eth0 inet dhcp中的dhcp换成static也就是以下文本

1
2
3
4
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1

最后重启一下就行了。
输入命令:sudo reboot 

版权声明:
作者:admin
链接:http://www.bttme.com/archives/402.html
来源:bttme
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>