Last active
January 18, 2023 11:55
-
-
Save prafiles/52b3d9bd29418945a5950d5ac62a1348 to your computer and use it in GitHub Desktop.
Script to ascertain MTU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
size=1272 | |
while ping -s $size -c1 -M do 8.8.8.8 >&/dev/null; do | |
((size+=4)) | |
done | |
echo "Max MTU size: $((size-4+28))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment