This is more of a personal note. This is how to find out the MTU using ping. Mine turns out to be 1472.

  • -c 1 sets the number of echoes to 1
  • -s 1472 sets the data size to 1472 bytes
  • -M do enables the do-not-fragment flag (DF)

[code lang=“dos”]kahwee@kahwee-desktop:~$ ping -c 1 -s 1472 -M do 192.168.1.1

PING 192.168.1.1 (192.168.1.1) 1472(1500) bytes of data.

1480 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.92 ms

— 192.168.1.1 ping statistics —

1 packets transmitted, 1 received, 0% packet loss, time 0ms

rtt min/avg/max/mdev = 1.9261.9261.9260.000 ms[/code]

comments powered by Disqus