The output of /sbin/route contains the default network interface:

route | grep "^default" | awk '{print $8}'

Attachments: