LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   How do I set two Internet Gateways? (https://www.linuxquestions.org/questions/suse-opensuse-60/how-do-i-set-two-internet-gateways-585145/)

phpones 09-16-2007 04:43 PM

How do I set two Internet Gateways?
 
Suse does't let me set 2 default gateways...

Hello guys,

I'm facing a annoying problem. I have the following configuration:

eth2 -> Static, connected to a router (dlink) who's connected to an adsl modem
eth1 -> Static, connected directly to the internet (over a frame relay)
eth0 -> Not configured, but will be for an internal LAN

So, I need eth2 and eth1 to be connected to the internet, because I'll serve ftp, http, etc on the eth1 (which I have a static address)... But I need that the normal transfers (like downloads, web surfing, etc) goes thru eth2.
In future, I'll use the eth2 connection to serve internet to the LAN users aswell.

So, what I want is that each interface (eth1 and eth2) keeps their own Internet connection. But I can't set 2 default gateways in Suse... I tried on Yast, ifroute-ethx, route config file... Only one of the 2 gateways is active, usually the eth2 one, killing my eth1 connection, because the eth1 IP can't go thru dlink router (which is the gateway of eth2)...

On debian is easy to configure that... All I have to do is edit /etc/network/interfaces and set a gateway for each interface.

On Suse I tried:
- add the 2 gateways in /etc/sysconfig/network/rutes , but only one works...
- create 2 ifroute-ethx files in /etc/sysconfig/network , but only one works...
- Add the 2 gateways on Yast routing configuration and guess what... only one works

What I should do?
(BTW, I'm using Suse Linux Enterprise Server 10 SP1)

Thanks in advance,

phpones

PS: Sorry for the bad English

osor 09-16-2007 05:53 PM

Did you already look at this?

phpones 09-17-2007 10:53 AM

Quote:

Originally Posted by osor (Post 2894033)
Did you already look at this?

Now I did. I could manage the problem. Very good guide, thank you osor.

Topic closed


All times are GMT -5. The time now is 02:51 PM.