LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-05-2005, 08:17 PM   #1
fabiolpi
LQ Newbie
 
Registered: Jul 2005
Location: Brasil
Distribution: CentOS
Posts: 2

Rep: Reputation: 0
two default route - help me


Hi

How do I add two default route with two different gateways on different interfaces with different priorities:

CentOS release 4.1 (Final)

eth0 192.168.0.1 Intranet
eth1 192.168.1.1 internet router for internal QMail
eth2 192.168.2.1 internet adsl for Proxy

for the eth1 the gateway must be 192.168.1.254
for the eth2 the gateway must be 192.168.2.254

proxy and navigation must use adsl (192.168.2.254)

and

my email server only the router (192.168.1.254)

my firewall itīs ok...

I need help....

thanks

Fabio Leonardo Jung
from Brasil
 
Old 07-05-2005, 10:43 PM   #2
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
You can't use 2 default route. It's a non-sense, "default route" mean "send it there when you don't know where else to send". You can (and should) only have ONE default route.

However, if you want to do some "special" routing, like to send all trafic related to a certain service to a certain gateway, you could use iptables to force routing. This is probably what you need.

You could also use some routing daemon (routed, gated, etc...) and routing protocol (RIP, OSPF, PIM, ...). I never worked with all this, but if I remember my network courses rigt, you could use this to setup some "different cost" path on your system. I have no clue how useful this would be for you. And keep in mind all what I said about it is quite outdated.
 
Old 07-06-2005, 06:35 AM   #3
fabiolpi
LQ Newbie
 
Registered: Jul 2005
Location: Brasil
Distribution: CentOS
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up

very very thanks, it was everything that I needed to know...

now... go to iproute2...
 
  


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
Not getting a default route wswartz Linux - Networking 4 10-27-2005 11:25 AM
c++ default route bassdemon Programming 1 02-06-2005 10:29 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
How to change default Route? suncloud Linux - Networking 2 11-21-2003 05:17 AM
Route dialup modem packets back through dialup instead of default route cable modem jogress Linux - Networking 1 10-21-2003 03:48 PM


All times are GMT -5. The time now is 08:22 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