如何Ping Google?

谷歌是一家跨国科技公司,为互联网用户、公司、个人甚至当地企业提供许多不同的服务。谷歌的大部分服务都是通过互联网提供的。google.com域提供名为google Search的google核心服务和其他作为子域的服务。在本教程中,我们将研究如何ping Google及其域、子域和服务。

null

在Windows中Ping google.com

Google.com是Google的主域名,很多服务都是通过Google.com提供的。ping是发送请求或数据包以获得响应的过程。如果远程系统启动并正确响应请求,ping将成功。

所有主要的Windows操作系统如windows7、windows8、windows10、windowsserver都提供ping命令。这个ping命令也可以用来ping google.com,如下所示。

> ping google.com

输出如下。ping命令将发送4个ping数据包并显示响应或输出。

Pinging google.com [172.217.18.110] with 32 bytes of data:Reply from 172.217.18.110: bytes=32 time=45ms TTL=128Reply from 172.217.18.110: bytes=32 time=45ms TTL=128Reply from 172.217.18.110: bytes=32 time=45ms TTL=128Reply from 172.217.18.110: bytes=32 time=45ms TTL=128Ping statistics for 172.217.18.110:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 45ms, Maximum = 45ms, Average = 45ms
图片[1]-如何Ping Google?-yiteyi-C++库
在Windows中Ping google.com

IPv6是取代IPv4的下一代IP协议。谷歌提供ipv6.Google.com域,该域仅在ipv6地址上提供服务。在Windows中,ping命令可用于ping测试ipv6.google.com域以进行ipv6 ping测试。

> ping ipv6.google.com

ping到ipv6.google.com将返回以下结果和统计信息。我们可以看到ipv6.google.com域是通过2a00:1450:8003::93 ipv6地址提供服务的。

Pinging ipv6.l.google.com [2a00:1450:8003::93] with 32 bytes of data:Reply from 2a00:1450:8003::93: time=31msReply from 2a00:1450:8003::93: time=29msReply from 2a00:1450:8003::93: time=30msReply from 2a00:1450:8003::93: time=32msPing statistics for 2a00:1450:8003::93:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 29ms, Maximum = 32ms, Average = 30ms

在Linux中Ping google.com(Ubuntu、Mint、Kali)

流行的Linux发行版如Ubuntu、Mint、Debian、Kali、CentOS、RHEL、SUSE提供了ping命令。ping命令可用于ping google.com。Linux-ping命令与Windows-ping有点不同,在Windows-ping中,Linux-ping将连续工作,但Windows-ping只发送4个请求。

$ ping google.com

输出如下。

PING google.com (172.217.18.110) 56(84) bytes of data.64 bytes from fra16s42-in-f14.1e100.net (172.217.18.110): icmp_seq=1 ttl=128 time=45.8 ms64 bytes from fra16s42-in-f14.1e100.net (172.217.18.110): icmp_seq=2 ttl=128 time=45.6 ms64 bytes from fra16s42-in-f14.1e100.net (172.217.18.110): icmp_seq=3 ttl=128 time=45.5 ms64 bytes from fra16s42-in-f14.1e100.net (172.217.18.110): icmp_seq=4 ttl=128 time=45.6 ms64 bytes from fra16s42-in-f14.1e100.net (172.217.18.110): icmp_seq=5 ttl=128 time=45.8 ms64 bytes from fra16s42-in-f14.1e100.net (172.217.18.110): icmp_seq=6 ttl=128 time=45.7 ms
图片[2]-如何Ping Google?-yiteyi-C++库
在Linux中Ping google.com(Ubuntu、Mint、Kali)

linux操作系统为IPv6提供ping6。或者,可以使用带有-6选项的ping命令来ping带有IPv6地址的Google。

$ ping6 ipv6.google.com

以下输出将从googleipv6返回。

PING6(56=40+8+8 bytes) 2001:db8:100:603e:e554:e63:3494 --> 2a00:1450:8003::6916 bytes from 2a00:1450:8003::69, icmp_seq=0 hlim=55 time=30.915 ms16 bytes from 2a00:1450:8003::69, icmp_seq=1 hlim=55 time=31.042 ms16 bytes from 2a00:1450:8003::69, icmp_seq=2 hlim=55 time=31.695 ms--- ipv6.l.google.com ping6 statistics ---3 packets transmitted, 3 packets received, 0.0% packet lossround-trip min/avg/max/std-dev = 30.915/31.217/31.695/0.342 ms

在MacOSX中Ping google.com

MacOSX操作系统还通过命令行提供ping google.com功能,并通过网络实用程序提供ping命令和GUI。对于命令行,使用以下命令ping google.com

$ ping google.com

对于GUI,我们将使用 网络实用程序 “转到”选项卡 . 然后我们将导航到 Ping选项卡 我们将看到一个屏幕,提供ping的网络地址。指定ping计数,但也可以选择连续ping。要启动ping测试,请单击 Ping按钮 .

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享