树莓派—使用静态 IP 地址
|
1
2
|
cd /etc/networksudo nano interfaces |
把iface eth0 inet dhcp中的dhcp换成static也就是以下文本
|
1
2
3
4
|
iface eth0 inet staticaddress 192.168.1.10netmask 255.255.255.0gateway 192.168.1.1 |
最后重启一下就行了。
输入命令:sudo reboot

共有 0 条评论