David Coulson on 7 Jan 2013 10:04:25 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Raising the dead: proc filesystem |
Here is a really simple way: # ip ro get 8.8.8.8 8.8.8.8 via 10.250.52.1 dev bond0 src 10.250.52.164 cache mtu 1500 advmss 1460 hoplimit 64 Assuming 8.8.8.8 is not directly attached or has a more specific route, the IP following 'src' will be the IP address of the interface through which you route to your default gw. awk/sed/cut your way to only the IP. On Jan 7, 2013, at 12:56 PM, Sam Gleske wrote: Reference to an original thread "proc filesystem": |
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug