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

查看:1397
本文介绍了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
traceroute to 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

从路由-n如果它有帮助

Below is the output from route -n if it helps

[root @ LAB1〜]#route -n

内核IP路由表

目标网关基因掩码标志度量标准使用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更新命令无法解析镜像网站...

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不允许在您访问互联网后通过防火墙/路由器传出。

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 >

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天全站免登陆