江苏省吴江市双板桥路3号兴源网络

0512-63028342

ly@wjxy.net.cn

ping的通telnet虚拟机No route to host的解决方法

问题
知道虚拟机的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

“`

解决方案
把虚拟机中的防火墙清一下

“`

sudo iptables -F
————————————————
版权声明:本文为CSDN博主「幻想之渔」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/lmb1612977696/article/details/80623814

发表评论

邮箱地址不会被公开。 必填项已用*标注