LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 09-16-2007, 05:43 PM   #1
phpones
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,

phpones

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

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

Original Poster
Rep: Reputation: 0
Quote:
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
 
  


Reply

Tags
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 03:02 PM
Accessing internet through 2 gateways? pnh73 Linux - Networking 1 10-29-2004 11:57 AM
All set up but no internet PeaceTank Linux - Wireless Networking 2 07-13-2004 09:16 PM
Howto set up 2 different gateways for 2 different nics kemplej Slackware 1 05-18-2004 12:53 PM
routes, default gateways, ip's internet connecting - Much Stress mudelf Linux - Networking 2 09-29-2003 07:13 PM


All times are GMT -5. The time now is 06:24 PM.

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