ping: sendto: No route to host

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ping: sendto: No route to host相关的知识,希望对你有一定的参考价值。

[email protected]:/home/ # ping www.baidu.com
PING www.a.shifen.com (61.135.169.125): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host

 

解决办法

emacs /etc/rc.conf

 

hostname="tuhooo"
ifconfig_em0="inet 192.168.31.130 netmask 255.255.255.0"
ifconfig_em0_ipv6="inet6 accept_rtadv"
 defaultrouter="192.168.31.2" # 设置默认网关                                         
sshd_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable                      
dumpdev="AUTO"
 
ntpdate_enable="YES"

ntpdate_program="ntpdate"
ntpdate_flags="0.cn.pool.ntp.org"

mysql_enable="YES"

以上是关于ping: sendto: No route to host的主要内容,如果未能解决你的问题,请参考以下文章

使用wifi ssh: connect to host hadoop000 port 22: No route to host

启动hadoop出现ssh: connect to host master port 22: No route to host

Failed connect to 192.168.213.129:8080; No route to host

'Linux下用iperf测试网络时出现unable to connect to server: No route to host'

ios10 no route to host

linux网络编程 no route to host 解决方案