I manipulated the Linux routing table with "route add" and "route del". Now, given IP, how can I find out (by typing some command) which gateway / device will it go through?
For example, if I run:
route add -net 192.57.66.0 netmask 255.255.255.0 dev eth0
Is there a command that can tell me if I am at 192.57.66.42, it will go through eth0?
routing
Chen xing
source share