In article <memo.20110126011358.5476I@postmaster+dexdyne.com.cix.co.uk>,
[email protected] (David Collier) wrote:

> *From:* "David Collier" <[email protected]>
> *To:* [email protected]
> *Date:* Wed, 26 Jan 2011 01:13 +0000 (GMT Standard Time)
> 
> If I have an IP address... 10.12.15.7 or something, is there a 
> simple
> command I can issue from a script which will examine all the routing
> tables for me and return
> 
> "eth0"  "local"
> or 
> "eth1"  "gateway"
> or
> "tun0"  "gateway" 
> 
> or something similar?
> 
> TVM
> 
> David


I've been pointed to

  ip route get 10.0.0.42
  
which at first glance seems to do what I need perfectly.

D
 
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to