PING:
send ICMP ECHO_REQUEST to network hosts
opion: -[AbDqR] [-c count] [] [-i interval] [-I interface] [-w deadline ] [-W timeout]
introduction:
A: 跟随rrt而调整下发送一次请求的时间。
b: 允许广播
D: 打印时间戳(gettimeofday)
q: quiet模式,不打印应答
R: 打印到达目的主机的路由,有的不支持。
c count: 发送数目。若同时有w选项,等待c个应答或超时。
i interval: 发送间隔。
I interface: 指定接口
w deadline: 设置总的发送时长。
W timeout: 等待应答的时间,与c选项共用,制定发送最后一个请求后的等待时间。
TRACEROUTE:
print the route path to the destination host
option: -[46ITFn] [-f first_ttl] [-g gateway] [-m max_ttl] [-p port] [-w waittime]
4(6):
I; 使用ICMP协议
T: 使用TCP协议
U: 使用UDP协议
F: 不分片,即使IP设置了分片
n: 显示数字IP,非主机名
f first_ttl: 第一个ttl大小,默认1
g gateway: 设置网关
m max_ttl: 设置最大ttl
p port: 设置端口
w waittime: 设置等待应答时间,默认5s