你能利用ping命令和ping命令的选项测出一个以太网的MTU吗?

2024-12-18 12:59:58
推荐回答(1个)
回答1:

1.参考:http://hi.baidu.com/eagoo/blog/item/e622f1cd2a452d580eb345ca.html

例:D:\Documents and Settings\Wind>ping -l 1478 -f 202.101.103.55

Pinging 202.101.103.55 with 1478 bytes of data:

Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.

Ping statistics for 202.101.103.55:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

D:\Documents and Settings\Wind>ping -l 1001 -f 202.101.103.55

Pinging 202.101.103.55 with 1001 bytes of data:

Reply from 202.101.103.55: bytes=1001 time=212ms TTL=238
Reply from 202.101.103.55: bytes=1001 time=195ms TTL=238
Reply from 202.101.103.55: bytes=1001 time=198ms TTL=238
Reply from 202.101.103.55: bytes=1001 time=199ms TTL=238

2。172.16.0.0 255.255.252.0
172.16.4.0 255.255.252.0
172.16.8.0 255.255.252.0
…… ……
172.16.252.0 255.255.252.0

每个子网1024台主机,最多64个子网,当然你可以只用到一半。