第七八章 ping&traceroyte

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值