-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Richard Brook
authored
Jun 25, 2018
1 parent
b852bdc
commit 17b3b1d
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
Simple Implementation of Ping tool for Linux OS | ||
# Simple Implementation of Ping tool for Linux OS | ||
|
||
Linux ping命令用于检测主机。 | ||
|
||
执行ping指令会使用ICMP传输协议,发出要求回应的信息,若远端主机的网络功能没有问题,就会回应该信息,因而得知该主机运作正常。 | ||
语法 | ||
|
||
ping [-dfnqrRv][-c<完成次数>][-i<间隔秒数>][-I<网络界面>][-l<前置载入>][-p<范本样式>][-s<数据包大小>][-t<存活数值>][主机名称或IP地址] | ||
> ping [-dfnqrRv][-c<完成次数>][-i<间隔秒数>][-I<网络界面>][-l<前置载入>][-p<范本样式>][-s<数据包大小>][-t<存活数值>][主机名称或IP地址] | ||
参数说明: | ||
-c<完成次数> 设置完成要求回应的次数。 | ||
-f 极限检测。 | ||
-i<间隔秒数> 指定收发信息的间隔时间。 | ||
-n 只输出数值。 | ||
-p<范本样式> 设置填满数据包的范本样式。 | ||
-q 不显示指令执行过程,开头和结尾的相关信息除外。 | ||
-r 忽略普通的Routing Table,直接将数据包送到远端主机上。 | ||
-R 记录路由过程。 | ||
-s<数据包大小> 设置数据包的大小。 | ||
-t<存活数值> 设置存活数值TTL的大小。 | ||
-v 详细显示指令的执行过程。 | ||
**参数说明:** | ||
* -c<完成次数> 设置完成要求回应的次数。 | ||
* -f 极限检测。 | ||
* -i<间隔秒数> 指定收发信息的间隔时间。 | ||
* -n 只输出数值。 | ||
* -p<范本样式> 设置填满数据包的范本样式。 | ||
* -q 不显示指令执行过程,开头和结尾的相关信息除外。 | ||
* -r 忽略普通的Routing Table,直接将数据包送到远端主机上。 | ||
* -R 记录路由过程。 | ||
* -s<数据包大小> 设置数据包的大小。 | ||
* -t<存活数值> 设置存活数值TTL的大小。 | ||
* -v 详细显示指令的执行过程。 |