ping (助于确定TCP/IP网络IP地址以及网络相关问题并帮助解决问题)

秃噜豆儿 发表于 2020-06-23 18:32
浏览次数:
在手机上阅读

该命令助于确定TCP/IP网络IP地址以及网络相关问题并帮助解决问题。

查看英文版

目录

1 ping 运行系统环境

2 ping 语法

3 ping 例子

ping 运行系统环境

Windows 95

Windows 98

Windows xp

Windows vista

Windows 2000

Windows 7

Windows 8

Windows 10

Windows NT

Windows ME

ping 语法

Windows Vista,7和8语法
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] 
[[-j host-list] | [-k host-list]] [-w timeout] [-R] [-S srcaddr] [-4] [-6 target_name

选项:

-t ping指定的主机,直到停止。

To see statistics and continue - Type Control-Break; To stop - press Ctrl+C.

要查看统计信息并继续-键入Control-Break;要停止-按Ctrl + C。

-a 将地址解析为主机名。
-n 计算要发送的回显请求的数量。
-l size 发送缓冲区大小。
-f 在数据包中设置“不分段”标志(仅IPv4)。
-i TTL存在时间。
-v TOS服务类型(仅IPv4。不建议使用此设置,它对IP标头中的服务类型字段没有影响)。
-r count 记录计数跳的路由(仅IPv4)。
-s count 计数跳的时间戳(仅IPv4)。
-j host-list 主机列表上的源路由松散(仅IPv4)。
-k host-list 沿主机列表的严格源路由(仅IPv4)。
-w timeout 等待每个答复的超时时间(以毫秒为单位)。
-R 使用路由标头也可以测试反向路由(仅IPv6)。
根据RFC 5095,不赞成使用此路由标头。如果使用此标头,则某些系统可能会丢弃回显请求。
-S srcaddr 要使用的源地址。
-4 强制使用IPv4。
-6 强制使用IPv6。
Windows XP和更低的语法
ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] 
[[-j host-list] | [-k host-list]] [-w timeout] destination-list

选项:

-t ping指定的主机,直到停止。

To see statistics and continue - Type Control-Break; To stop - press Ctrl+C.

要查看统计信息并继续-键入Control-Break;要停止-按Ctrl + C。

-a 将地址解析为主机名。
-n count 要发送的回显请求数。
-l size 发送缓冲区大小。
-f 在数据包中设置“不分段”标志。
-i TTL 存在时间。
-v TOS 服务类型。
-r count   记录计数跳数的路由。
-s count 计数跳的时间戳。
-j host-list 主机列表中的源路由松散。
-k host-list 沿主机列表的严格源路由。
-w timeout 等待每个答复的超时时间(以毫秒为单位)。
Windows Vista, 7, and 8 syntax
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] 
[[-j host-list] | [-k host-list]] [-w timeout] [-R] [-S srcaddr] [-4] [-6 target_name

Options:

-t Pings the specified host until stopped.
To see statistics and continue - Type Control-Break; To stop - press Ctrl+C.
-a Resolve addresses to hostnames.
-n Count number of echo requests to send.
-l size Send a buffer size.
-f Set a don't fragment flag in the packet (IPv4-only).
-i TTL time to live.
-v TOS type of service (IPv4-only. This setting is deprecated and has no effect on the type of service field in the IP header).
-r count Record route for count hops (IPv4-only).
-s count Timestamp for count hops (IPv4-only).
-j host-list Loose source route along the host-list (IPv4-only).
-k host-list Strict source route along the host-list (IPv4-only).
-w timeout Timeout in milliseconds to wait for each reply.
-R Use routing header to test reverse route also (IPv6-only).
Per RFC 5095 the use of this routing header is deprecated. Some systems may drop echo requests if  this header is used.
-S srcaddr Source address to use.
-4 Force using IPv4.
-6 Force using IPv6.
Windows XP and lower syntax
ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] 
[[-j host-list] | [-k host-list]] [-w timeout] destination-list

Options:

-t Pings the specified host until stopped.
To see statistics and continue - Type Control-Break; To stop - press Ctrl+C.
-a Resolves addresses to hostnames.
-n count Number of echo requests to send.
-l size Send a buffer size.
-f Set don't fragment flag in the packet.
-i TTL Time to live.
-v TOS Type of service.
-r count   Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.

查看英文版

查看中文版

ping 例子

ping localhost

对localhost进行 Ping操作,这有助于确定计算机是否可以发送信息并从自身接收信息。

ping localhost

Pings the localhost, which helps determine if the computer can send information out and receive the information back from itself.

上面的命令不会通过网络发送信息,但是可以指示卡是否可以响应。

The command above does not send information over the network, but can indicate if the card can respond.

查看英文版

查看中文版

其他命令行

path | pathping | pause | popd | power | print | prompt | pushd |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条