Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 09-16-2007, 04:43 PM   #1
LQ Newbie
Registered: Jan 2005
Location: Brazil
Distribution: Suse 9.2 Pro
Posts: 4

Rep: Reputation: 0
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,


PS: Sorry for the bad English
Old 09-16-2007, 05:53 PM   #2
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 76
Did you already look at this?
Old 09-17-2007, 10:53 AM   #3
LQ Newbie
Registered: Jan 2005
Location: Brazil
Distribution: Suse 9.2 Pro
Posts: 4

Original Poster
Rep: Reputation: 0
Originally Posted by osor View Post
Did you already look at this?
Now I did. I could manage the problem. Very good guide, thank you osor.

Topic closed


gateway, internet, route, suse

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
Internet connection sharing and gateways andrewjjones Linux - Networking 29 10-29-2004 02:02 PM
Accessing internet through 2 gateways? pnh73 Linux - Networking 1 10-29-2004 10:57 AM
All set up but no internet PeaceTank Linux - Wireless Networking 2 07-13-2004 08:16 PM
Howto set up 2 different gateways for 2 different nics kemplej Slackware 1 05-18-2004 11:53 AM
routes, default gateways, ip's internet connecting - Much Stress mudelf Linux - Networking 2 09-29-2003 06:13 PM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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

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