title: How to look up in Linux IP routing table?
body: <p>I've been manipulating the Linux routing table by "route add" and "route del". Now  given an IP, how can I know (by typing some command) which gateway/device will it go through?</p>
  
  <p>For example, if I have run:</p>
  
  <pre><code>route add -net 192.57.66.0 netmask 255.255.255.0 dev eth0
  </code></pre>
  
  <p>Is there a command that can tell me if I visit 192.57.66.42, it will go through eth0?</p>