Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

MTU: Difference between revisions

102 bytes added ,  13 November 2017
m
 
For example:
Linux
ping -c1 -M do -s 1472 81.187.81.187
 
On OSX (Apple):
ping -c1 -D -s 1472 81.187.81.187
 
Windows:
ping -n 1 -f -l 1472 81.187.81.187
 
^^ That's the ping command to remember. The rest of this section is a bit of info about that command.
==Explanation:==
 
'''-c1 / -n 1''' In these examples, we've only used a count of one ping using the -c option. or -n on Windows.
 
'''-M do / -f''' Means don't fragment the ping packet
'''-M do''' Use the path discovery options to ping. The option is -M. See the man page for all the options.
 
''' -s 1472 / -l 1472''' The option for payload size is -s, or -l on Windows. When setting size in ping, the size printed is the payload size - not the full packet size. '''The full packet size is''' <syntaxhighlight inline> payload (1472) + IP header (20) + ICMP header (8) </syntaxhighlight>, so this is 1500 in total!
 
Note: ping is slightly different on different operating systems, the above is a Debian machine.
autoreview, Bureaucrats, editor, Interface administrators, reviewer, Administrators
12,270

edits