【已解决】求助,ECS重启后eth0跟eth1IP均变为内网IP,无法远程连接
Re求助,ECS重启后eth0跟eth1IP均变为内网IP,无法远程连接
原因已查明,NetworkManager 跟 network 冲突导致 /etc/resolv.conf清空,关闭
NetworkManager 即可修复
dvlcis:/root> chkconfig --list NetworkManager
NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off
dvlcis:/root> chkconfig --level 123456 NetworkManager off
dvlcis:/root> chkconfig --list NetworkManager
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off
dvlcis:/root> vi /etc/resolv.conf
search google.com
nameserver 8.8.8.8
dvlcis:/root> ping www.baidu.com
PING www.a.shifen.com (61.135.169.105) 56(84) bytes of data.
64 bytes from 61.135.169.105: icmp_seq=1 ttl=53 time=27.9 ms
64 bytes from 61.135.169.105: icmp_seq=2 ttl=53 time=32.2 ms
^C
--- www.a.shifen.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1688ms
rtt min/avg/max/mdev = 27.978/30.134/32.291/2.163 ms
dvlcis:/root>
赞0
踩0