LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 network cards, 2 network connections - routing problem (http://www.linuxquestions.org/questions/linux-networking-3/2-network-cards-2-network-connections-routing-problem-149582/)

tvojvodi 02-23-2004 12:09 PM

2 network cards, 2 network connections - routing problem
 
Hi,

I'm having problem with 2 network cards, both connected to Internet. First is connected to LAN, which is connected to ADSL and I want to use it for accessing the Internet. The other one is connected to Internet directly to ISP and has a static IP address, but I don't want to use it for normal Internet 'communication' web, mail, etc. It is actually IPsec connection to another network.

But every time I access the Internet, everything goes trough that other card.

What should I do ?


Thnx

asalford 02-23-2004 12:43 PM

Do you unplug one connection and the other starts working?

If yes, rip was not design to dynamically route like that.

If no, need more info about your internal topology.

1. ipmasq?
2. ip address scheme?
a. public?
b. private?
c. nat/pat?
d. firewalling?

Rip 1 & 2 were not designed to dynamically route. You could build static routing tables to get it to work. Usually, what you are trying to achieve is worked out as BGP (border gateway protocol) in ingress or egress routers. your DSL and ISP should be unwilling to exchange BGP with you because of the damage that could be caused. another consideration is you don't want isp or dsl using you as a gateway.

Are you trying to achieve redundancy or packet management?

asalford 02-24-2004 01:18 PM

Did this help you get going?

asalford 02-24-2004 02:46 PM

Did this help you out?

Mathieu 02-24-2004 03:26 PM

First of all, which Linux distribution are you using ?

You will need to set up a default route.
In most Linux distribution, you can edit the /etc/sysconfig/network file and use one of the two options:[list=1]
GATEWAY=<value>, where <value> is the IP address of the network's gateway.
GATEWAYDEV=<value>, where <value> is the gateway device, such as eth0.[/list=1]

asalford: tvojvodi may have posted and then stepped away from his PC to do something else.


All times are GMT -5. The time now is 12:51 AM.