Grab default gateway of ppp0 Posted on July 7, 2019 by alfred OLDGW=`ip route show | grep ‘ppp0’ | sed -e ‘s/\([^ ]*\).*/\1/’ | tail -1`