SSH连不上,文件也不能备份,整个一孤岛。
解决办法:
好在后台view console可以打开,编辑 /etc/network/interfaces
配置如下: (networking configuration 这个也可以在面板IPV4中找到)
vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 108.61.100.100
netmask 255.255.254.0
gateway 108.61.100.1
dns-nameservers 108.61.10.10
post-up ip route add 169.254.0.0/16 dev eth0
编辑完ESC无效,ctrl+c 退出 输入 :wq 保存成功
/etc/init.d/networking restart 提示 couldn't read interfaces file :21 option with empty value
经过检查是ipv6 netmask 没设置,果断把IPV6的配置都删了,反正没用。
再次保存,退出 ,restart .
再次看到了久违的SSH,只想对vultr说bye.
转载自 hostloc 原作者:phpsky
评论