admin管理员组文章数量:1635678
现象:
不管是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
版权声明:本文标题:VMware centos7 Destination Host Unreachable 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1729213847a1190186.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论