如何改变PING命令默认发送的数据包大小

来源:百度知道 编辑:UC知道 时间:2024/06/05 01:39:07

在ping后加-l 和你行为的包的大小,但其大小有一定限制
例如
ping 127.0.0.1 -l 6400

Pinging 127.0.0.1 with 6400 bytes of data:

Reply from 127.0.0.1: bytes=6400 time<1ms TTL=128
Reply from 127.0.0.1: bytes=6400 time<1ms TTL=128
Reply from 127.0.0.1: bytes=6400 time<1ms TTL=128
Reply from 127.0.0.1: bytes=6400 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

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] target_name

Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Re