所以我按照以下步骤获取静态 IP 并失去连接
sudo -s
nano /etc/network/interfaces
已更改
auto lo
iface lo inet loopback
与上述相同
auto eth-d
iface eth0 inet static
address etc
然后重置网络
答案1
您的文件配置错误,请尝试以下操作:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address xxx.xxx.xxx.xxx(enter your ip here)
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx(enter gateway ip here,usually the address of the router)
DNS xxx.xxx.xxx.xxx
然后: