该怎么解决no route to host
出现No route to host 的时候,有如下几种可能:
1、对方的域名确实不通
2、本机自己开了防火墙
3、本机的etc/hosts 里面没有配置本机的机器名和ip(可能性最大)
知道虚拟机的ip地址,而且可以ping的通:
[minbo@ares ~]$ ping 192.168.62.110
PING 192.168.62.110 (192.168.62.110) 56(84) bytes of data.
64 bytes from 192.168.62.110: icmp_seq=1 ttl=64 time=0.831 ms
64 bytes from 192.168.62.110: icmp_seq=2 ttl=64 time=0.769 ms
64 bytes from 192.168.62.110: icmp_seq=3 ttl=64 time=0.966 ms
64 bytes from 192.168.62.110: icmp_seq=4 ttl=64 time=0.829 ms
64 bytes from 192.168.62.110: icmp_seq=5 ttl=64 time=0.903 ms
64 bytes from 192.168.62.110: icmp_seq=6 ttl=64 time=0.886 ms
^C
--- 192.168.62.110 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5604ms
rtt min/avg/max/mdev = 0.769/0.864/0.966/0.062 ms
但是telnet连不通
telnet 192.168.62.110 7000
Trying 192.168.62.110...
telnet: connect to address 192.168.62.110: No route to host
## 解决方案
把虚拟机中的防火墙清一下
X 关闭
Copyright 2015-2022 科技讯版权所有 备案号:豫ICP备2021032478号-15 联系邮箱:897 18 09@qq.com