[TriLUG] Choosing the right pipe

Jeremy Portzer jeremyp at pobox.com
Mon Oct 28 15:48:03 EST 2002


On Mon, 2002-10-28 at 15:41, Jeff Bollinger wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Say I've got two different NICs, each connecting to a different network.
> ~ If I want to SSH into network A (a private network) how do I tell SSH
> to run through eth0 (or the first NIC)?

Well, you can't ssh to a *network* -- you ssh to a host (computer). 
Based on the IP address of the destination computer, the kernel routing
tables will pick the appropriate "pipe".  (If there's more than one
possible route to a destination, things become much more complex.)

Type "route" at a shell prompt to see where the kernel is routing things
now.  If things appear to be configured wrong, you'll need to check the
IP address, subnet mask, and other settings for each NIC.  

--Jeremy




More information about the TriLUG mailing list