求助:如何在MacOS中使用Ping命令进行指定封包大小测试网络MTU数值?
求助:如何在MacOS中使用Ping命令进行指定封包大小测试网络MTU数值?
例如:目标IP为202.99.96.68
不可分割的数据包大小为1460
在Windows系统中命令为:
ping -l 1460 -f 202.99.96.68
但在MacOS中却不是,请求给予帮助!谢谢。
希望最好给出MacOS中关于ping命令的所有参数使用方法说明,谢谢。
以下是关于MacOS的ping命令帮助信息,但看不懂。希望得到好心人的帮助。
ping: option requires an argument -- h
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize]
[-g sweepminsize] [-h sweepincrsize] [-i wait]
[-l preload] [-M mask | time] [-m ttl] [-p pattern]
[-S src_addr] [-s packetsize] [-t timeout][-W waittime]
[-z tos] host
ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait]
[-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr]
[-s packetsize] [-T ttl] [-t timeout] [-W waittime]
[-z tos] mcast-group
Apple specific options (to be specified before mcast-group or host like all options)
-b boundif # bind the socket to the interface
-k traffic_class # set traffic class socket option
-K net_service_type # set traffic class socket options
-apple-connect # call connect(2) in the socket
-apple-time # display current time
MacBook Pro 15″, macOS 11.3