show ip

$(ip route show | awk ‘/default/ {print $3}’)