LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   3 network cards and 2 default gateways (https://www.linuxquestions.org/questions/linux-networking-3/3-network-cards-and-2-default-gateways-244242/)

Oderus 10-18-2004 12:50 PM

3 network cards and 2 default gateways
 
I have what I consider a unique setup which I need help with.

I have a Dual Pentium Pro 200 mhz Compaq Proliant 2500 server with 3 NIC's.
I want my eth0 and eth1 to pull seperate IP addresses and have eth2 used as DHCP.
Currently it is setup like this and DNS forwarding works well but browsing does not.
when I ping my Shaw IP from my laptop, it works. When I ping the gateway, it doesn't.
I do have IP forwarding enabled and I think I know the problem..

Problem is that I have 2 default gateway's on the server and I know I should only have one.

root@cerveza:/etc# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 eth2
68.146.92.0 * 255.255.252.0 U 0 0 0 eth0
68.146.92.0 * 255.255.252.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default 68.146.92.1 0.0.0.0 UG 0 0 0 eth1
default 68.146.92.1 0.0.0.0 UG 0 0 0 eth0
root@cerveza:/etc#

Is there a way to have a virtual gateway to include both gateways?
Thanks in advance cause I know this forum kicks ass and someone will know the answer. =)

Oderus 10-19-2004 03:38 PM

Well it seems that either no one knows the answer or I'm asking the wrong people.
I got more replies from a similar post in dist-slackware than I did in networking, how unfortunate.

chort 10-20-2004 03:04 AM

Hi there. As was pointed out by a few people in your second thread, starting multiple threads for the same issue is against the site rules and not good Netiquette.

It looks like you have two IPs on the same subnet applied to two different NICs that are both on the same switch, which is not going to work. You will need an interface bonding driver in order for this to be allowed. There have been several posts on this same topic on this forum recently, so I'm sure you could get a lot of information by simply searching the Networking forum (use the "Search this Forum" feature near the bottom right corner of the page) for terms like "interface bonding", "two internet gateways", etc...


All times are GMT -5. The time now is 09:19 PM.