use ip route | awk '/default/ {print $5}' to determine default nic