MTU: Difference between revisions
Appearance
Content deleted Content added
| Line 73: | Line 73: | ||
For example: |
For example: |
||
Linux |
|||
ping -c1 -M do -s 1472 81.187.81.187 |
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. |
^^ That's the ping command to remember. The rest of this section is a bit of info about that command. |
||
| Line 98: | Line 105: | ||
==Explanation:== |
==Explanation:== |
||
'''-c1''' In these examples, we've only used a count of one ping using the -c option |
'''-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''' The option for payload size is -s. 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! |
''' -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. |
Note: ping is slightly different on different operating systems, the above is a Debian machine. |
||