On Mon, 15 Aug 2005, mcr at xelerance.com wrote: > How about, instead: > > defaultinterface() { > phys=`netstat -nr | > awk '$1 == "0.0.0.0" && $3 == "0.0.0.0" { print $NF; exit }'` Can we use the 'ip' command instead? Officially, netstat is obsoleted on Linux. Paul