LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   outgoing connections (https://www.linuxquestions.org/questions/linux-networking-3/outgoing-connections-57720/)

DonMiner 05-01-2003 06:45 PM

outgoing connections
 
i have 4 ethernet cards installed... the setup:
eth0: direct connection to internet
eth1: my roomate's private network
eth2: my other roomate's private network
eth3: my private network

people can connect to me normally, but i would like to connect to my roomate's computer that is on one of the other private networks....
for example, if i wanted to SCP something i would do

scp don@192.168.0.5:/stuff /home/don/stuff/
the problem is that it will use the eth0 device (by default i'm guessing)... how do i specify which device to use?
Is there a temporary way to do this? something like eth1:don@192.168.0.5 or something? or does it have to be permanent?

DonMiner 05-01-2003 06:46 PM

im using rh9

GAVollink 05-02-2003 09:51 AM

Post your output for netstat -rn (your Kernel's routing table) as well as the specific sub-net set-ups for each Ethernet card. That will tell me so much more.

Normally, you should be able to set up the routing table correctly, and any traffic going to 192.168.0.xxx would automatically run through the network card that has an IP address on the 192.168.0.xxx subnet.


All times are GMT -5. The time now is 08:28 PM.