码迷,mamicode.com
首页 > 其他好文 > 详细

ping: sendto: No route to host

时间:2017-04-16 23:59:39      阅读:361      评论:0      收藏:0      [点我收藏+]

标签:font   accept   home   设置   www   nbsp   dump   baidu   str   

root@tuhooo:/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

标签:font   accept   home   设置   www   nbsp   dump   baidu   str   

原文地址:http://www.cnblogs.com/tuhooo/p/6720715.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!