Skip to content

Instantly share code, notes, and snippets.

@JustinAzoff
Created December 5, 2013 17:25
Show Gist options
  • Select an option

  • Save JustinAzoff/7809637 to your computer and use it in GitHub Desktop.

Select an option

Save JustinAzoff/7809637 to your computer and use it in GitHub Desktop.
Test for MTU/fragmentation issues
#!/bin/bash
IP=$1
for x in `seq 1200 20 1700`;
do echo -n "$x "
ping -W 1 -M do -s $(($x-28)) $IP -c 1 > /dev/null && echo WORKED || echo failed
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment