Firewall-SOSDG/bin/get_default_if

4 lines
92 B
Plaintext
Raw Permalink Normal View History

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