Monday, March 18, 2013

IPv6 MTU discovery

Thanks to it looks like it's easy to discover the IPv6 MTU (Maximum Transmission Unit):

$ ping6 -c1 -M do -s 10000  | grep mtu | awk '{ print $NF }' 


So the IPv6 MTU to is 1500.

From another system, the MTU is 1480:

$ ping6 -c1 -M do -s 10000  | grep mtu | awk '{ print $NF }'


Easy, isn't it?

For old-skool IPv4, the output of ping is a bit different, so the awk parsing is a bit different:

$ ping -c1 -M do -s 10000 | grep mtu | awk '{ print $NF }' | sed -e s/\)//




Rafał Fitt said...

try tracepath6

Quirinius said...

I already tried tracepath6. Result

And endless list with "no reply" and finally:

Too many hops: pmtu 1480
Resume: pmtu 1480

Is that as expected? And is it realiable?