LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-23-2004, 12:09 PM   #1
tvojvodi
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Rep: Reputation: 0
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
 
Old 02-23-2004, 12:43 PM   #2
asalford
Member
 
Registered: Nov 2003
Location: NC, USA
Distribution: unbuntu breazy
Posts: 140

Rep: Reputation: 15
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?
 
Old 02-24-2004, 01:18 PM   #3
asalford
Member
 
Registered: Nov 2003
Location: NC, USA
Distribution: unbuntu breazy
Posts: 140

Rep: Reputation: 15
Did this help you get going?
 
Old 02-24-2004, 02:46 PM   #4
asalford
Member
 
Registered: Nov 2003
Location: NC, USA
Distribution: unbuntu breazy
Posts: 140

Rep: Reputation: 15
Did this help you out?
 
Old 02-24-2004, 03:26 PM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 08:52 PM
Two network cards = network problem filch Linux - Networking 3 01-04-2005 02:06 AM
Need help routing traffic on 2 network cards dan6767 Linux - Networking 13 11-19-2004 09:40 AM
Routing Problem with two network cards a.tangemann Linux - Networking 0 02-23-2004 04:07 AM
ip routing table. getting network cards working hamish Linux - Networking 2 11-30-2003 05:58 PM


All times are GMT -5. The time now is 06:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration