#!/bin/bash ip route | awk '/^default/{print $3}' #netstat -rn | awk '/^0.0.0.0/{print $8}'