can I pick anyone's brains?

David Collier from_busybox_maillist at dexdyne.com
Thu Jan 27 08:52:00 UTC 2011


In article <memo.20110126011358.5476I at postmaster+dexdyne.com.cix.co.uk>,
from_busybox_maillist at dexdyne.com (David Collier) wrote:

> *From:* "David Collier" <from_busybox_maillist at dexdyne.com>
> *To:* busybox at busybox.net
> *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
 


More information about the busybox mailing list