Ping to Determine MTU along a route

IP header at least 20 bytes
ICMP header 8 bytes
In Ethernet, the largest MTU is 1500, so we can at most try 1472.

Unix command

ping dest_ip -s 1472 -M do
-M: MTU discovery choice, valid choice: do (don't fragment bit will be 1), dont, want...

Change MTU

sudo ifconfig eth0 mtu 1500

你可能感兴趣的:(Ping to Determine MTU along a route)