ping
                秃噜豆儿 发表于 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语法  
	
		
Windows XP和更低的语法  
	
		
                        
                        
                                                                    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。 | 
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 | 等待每个答复的超时时间(以毫秒为单位)。 | 
查看英文版
ping 例子
ping localhost
对localhost进行 Ping操作,这有助于确定计算机是否可以发送信息并从自身接收信息。
上面的命令不会通过网络发送信息,但是可以指示卡是否可以响应。
查看英文版