admin管理员组

文章数量:1635682

现象:
不管是ping网关还是外网都出现了

[root@rocketmqOS ~]# ping 192.168.23.2
PING 192.168.23.2 (192.168.23.2) 56(84) bytes of data.
From 192.168.23.163 icmp_seq=1 Destination Host Unreachable
From 192.168.23.163 icmp_seq=2 Destination Host Unreachable
From 192.168.23.163 icmp_seq=3 Destination Host Unreachable

解决方案:
vmware导航栏-编辑-虚拟网络编辑器
检查网关


可知网关配置为192.168.23.2,起始和结束IP地址分别从128开始到254

1.关闭虚拟机
2.属性设置改为自定义

3.重启服务器
4.检查配置是否正确
vim /etc/sysconfig/network-scripts/ifcfg-ens33


ip要在dhcp范围内,网关和子网掩码配置正确
若有问题则修改改配置保存并重启网络
service network restart
再次ping

[root@rocketmqOS ~]# ping 192.168.23.2
PING 192.168.23.2 (192.168.23.2) 56(84) bytes of data.
64 bytes from 192.168.23.2: icmp_seq=1 ttl=128 time=0.122 ms
64 bytes from 192.168.23.2: icmp_seq=2 ttl=128 time=0.164 ms
64 bytes from 192.168.23.2: icmp_seq=3 ttl=128 time=0.101 ms
64 bytes from 192.168.23.2: icmp_seq=4 ttl=128 time=0.544 ms
[root@rocketmqOS ~]# ping www.baidu
PING www.a.shifen (111.206.208.133) 56(84) bytes of data.
64 bytes from 111.206.208.133 (111.206.208.133): icmp_seq=1 ttl=128 time=4.79 ms
64 bytes from 111.206.208.133 (111.206.208.133): icmp_seq=2 ttl=128 time=4.78 ms

完成

本文标签: VMwaredestinationUnreachableHost