码迷,mamicode.com
首页 > 其他好文 > 详细

如何强制使用某一大小的包去ping某个IP地址?

时间:2014-08-08 20:44:56      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:使用   os   io   strong   for   ar   amp   size   

测试MTU的时候用得到的, 命令如下:

ping -f -l 9000 10.110.68.40

ping命令的帮助输出如下:

C:\Users\administrator>ping /?

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            Ping the specified host until stopped.
                   To see statistics and continue - type Control-Break;
                   To stop - type Control-C.
    -a             Resolve addresses to hostnames.
    -n count       Number of echo requests to send.
    -l size        Send buffer size.
   -f             Set Don‘t Fragment flag in packet (IPv4-only).
    -i TTL         Time To Live.
    -v TOS         Type Of Service (IPv4-only. This setting has been 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 host-list (IPv4-only).
    -k host-list   Strict source route along 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).
    -S srcaddr     Source address to use.
    -4             Force using IPv4.
    -6             Force using IPv6.

如何强制使用某一大小的包去ping某个IP地址?,布布扣,bubuko.com

如何强制使用某一大小的包去ping某个IP地址?

标签:使用   os   io   strong   for   ar   amp   size   

原文地址:http://www.cnblogs.com/awpatp/p/3899816.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!