diff --git a/mtu_discover.sh b/mtu_discover.sh index 58d3944..25f9870 100755 --- a/mtu_discover.sh +++ b/mtu_discover.sh @@ -9,6 +9,8 @@ then HOST=$1 fi +ping $HOST -c 5 || exit 2 + for (( i=1472; i>100; i-- )) do ping $HOST -M do -s $i -O -c 1 -W 0.3 && break