ping google.com 或 8.8.8.8 失败 [英] ping google.com or 8.8.8.8 fails

查看:32
本文介绍了ping google.com 或 8.8.8.8 失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Cent OS 6.4,它在官方实验室中.

I am using Cent OS 6.4 and it is in a official lab.

ping google.com 给出以下输出并挂起:

ping google.com gives the below output and hangs:

[root@LAB1 ~]# ping google.com
PING google.com (74.125.236.195) 56(84) 字节数据.

[root@LAB1 ~]# ping google.com
PING google.com (74.125.236.195) 56(84) bytes of data.

ping 8.8.8.8 也产生相同的结果.我可以从浏览器(Mozilla)访问互联网.网络设置或配置有问题吗?

ping 8.8.8.8 also yields the same result. I am able to access internet from browser(Mozilla). Is there a problem with the network settings or configuration?

以下是 traceroute - n 8.8.8.8 的输出[root@LAB1 ~]# traceroute -n 8.8.8.8跟踪路由到 8.8.8.8 (8.8.8.8),最大 30 跳,60 字节数据包
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 *^Z

Below is the output from traceroute - n 8.8.8.8 [root@LAB1 ~]# traceroute -n 8.8.8.8 traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 *^Z

如果有帮助,下面是 route -n 的输出

Below is the output from route -n if it helps

[root@LAB1 ~]# route -n
内核IP路由表
目标网关 Genmask 标志 Metric Ref 使用 Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

[root@LAB1 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

由于我是网络新手,我无法确定问题所在.非常感谢这里的任何帮助...

As I am new to networking, I am not able to identify the issue. Any help here is much appreciated...

编辑 :我尝试上述ping的主要原因是解决无法解析镜像站点的yum update命令...

Edit : The main reason for me to try the above ping is to resolve an yum update command that fails to resolve the mirror sites...

推荐答案


ICMP 不允许通过您访问 Internet 后的防火墙/路由器传出.

ICMP is'nt allowed outgoing through the firewall / router behind you are accessing Internet.

这个

[root@LAB1 ~]# ping google.com
PING google.com (74.125.236.195) 56(84) bytes of data.

而且您可以浏览网页这一事实意味着您正在解析 google.com(DNS 协议)

And the fact you can browse the web means you are resolving google.com (DNS protocol)

traceroute 使用 ICMP 两个.

traceroute use ICMP two.

这篇关于ping google.com 或 8.8.8.8 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆