刚克隆的虚拟机,ping 某个IP地址不通,但是ping www.baidu.com是通的!!
[[email protected] ~]# ping 172.16.1.31 PING 172.16.1.31 (172.16.1.31) 56(84)bytes of data. From 172.16.1.8 icmp_seq=1 Destination Host Unreachable From 172.16.1.8 icmp_seq=2 Destination Host Unreachable From 172.16.1.8 icmp_seq=3 Destination Host Unreachable ^C --- 172.16.1.31 ping statistics --- 5 packets transmitted, 0 received, +3errors, 100% packet loss, time 4925ms pipe 3 [[email protected] ~]# ping www.baidu.com PING www.baidu.com (119.75.218.70)56(84) bytes of data. 64 bytes from 119.75.218.70: icmp_seq=1ttl=128 time=5.45 ms 64 bytes from 119.75.218.70: icmp_seq=2ttl=128 time=4.84 ms
可能原因:
新建或克隆虚拟机时,网卡设置问题,第二块网卡设置了虚拟IP,但是虚拟IP没有和其他主机在同一个虚拟网络内,所以也有可能无法ping通内网:
时间: 2024-10-25 01:03:59