Skip to content

Instantly share code, notes, and snippets.

@jkullick
Last active January 12, 2017 14:56
Show Gist options
  • Save jkullick/2c360c7c56776cefb8aa1bbc3dae322e to your computer and use it in GitHub Desktop.
Save jkullick/2c360c7c56776cefb8aa1bbc3dae322e to your computer and use it in GitHub Desktop.
Check MTU with Ping / Manual Path MTU Discovery
# Linux
ping -M do -s 1500 -c 1 $HOST

# macOS
ping -c 1 -D -s 1500 $HOST

# Windows
ping -n 1 -l 1500 -f $HOST

Decrease MTU on error (Message too long) to get the correct value.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment