[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。

[转帖]No Route to Host error and solution

上一篇:[备忘]需求说明书中的假定和约束,怎么写?
下一篇:[备忘]CentOS 开放端口,查看端口占用

添加日期:2013/7/24 22:05:35 快速返回   返回列表 阅读3789次
http://www.cyberciti.biz/tips/no-route-to-host-error-and-solution.html

No Route to Host error and solution

by NIXCRAFT on MAY 5, 2006 · 22 COMMENTS· LAST UPDATED OCTOBER 16, 2007
in DEBIAN LINUX, GENTOO LINUX, LINUX

I am getting error that read as No Route to Host. I am trying to ping my ISP gateway as well as DNS server but I am getting this error. How do I solve this problem?

This problem indicate networking conflicts or some sort of networking configuration problem.

Here are things to check:

a)Can you ping to your local router interface (such as 192.168.1.254)?

Make sure your card (eth0) is properly configured with correct IP address and router address. Use ifconfig command to configure IP address and route command to setup correct router address. If you prefer to use GUI tools:

redhat-config-network - Works on Red Hat and Fedora Linux/Cent OS.
network-admin - Debian and Other Linux distribution use this GUI too
Use above two GUI tools to setup correct IP address, DNS address and router address.

b) Make sure firewall is not blocking your access

iptables is default firewall on Linux. Run following command to see what iptables rules are setup:


# /sbin/iptables -L -n



You can temporary clear all iptables rules so that you can troubleshoot problem. If you are using Red Hat or Fedora Linux type command:


# /etc/init.d/iptables save
# /etc/init.d/iptables stop



If you are using other Linux distribution type following commands:


# iptables -F
# iptables -X
# iptables -t nat -F
# iptables -t nat -X
# iptables -t mangle -F
# iptables -t mangle -X



c) Finally make sure you are using a router and not a proxy server. Proxy servers are good for Internet browsing but not for other work such as ftp, sending ICMP request and so on.
====================================================================
http://serverfault.com/questions/363414/113-no-route-to-host-on-centos-6-2-64bits

(113) No route to host on CentOS 6.2 (64bits)


Maybe this is a silly question but since I'm not a sysadmin I could not find a solution for this problem:

I made a clean installation of CentOS 6.2 (64bits) and I didn't change any configuration after that, I started Apache (as root) with

/etc/init.d/httpd start
If I navigate to localhost I get a correct response from my server but if I try to navigate through my network IP (172.16.8.59) I get an error:

(113) No route to host
I google the error and everything points to the squid configuration as far as I read but not sure because I don't even have the squid service installed.

Thanks in advance!
------------------------------
If you have the default firewall rules enabled you will not be able to access Apache without some additional configuration. The simplest solution is to run the system-config-firewall tool and check the 'WWW (HTTP)` checkbox.

You can also disable the firewall temporarily by running:

service iptables stop


And you can disable the firewall permanently by follow the previous command with:

chkconfig iptables off

 

评论 COMMENTS
没有评论 No Comments.

添加评论 Add new comment.
昵称 Name:
评论内容 Comment:
验证码(不区分大小写)
Validation Code:
(not case sensitive)
看不清?点这里换一张!(Change it here!)
 
评论由管理员查看后才能显示。the comment will be showed after it is checked by admin.
CopyRight © 心缘地方 2005-2999. All Rights Reserved