Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 Gateways for 2 interfaces

Reply
Thread Tools Display Modes

2 Gateways for 2 interfaces

 
 
eole
Guest
Posts: n/a

 
      07-17-2003, 09:39 AM
hi
i have a machine with two interfaces eth0 and eth1, and i need to
setup a different gateway for each one, so that gateway0 is used when
the connection is through eth0 and gateway1 for eth1.
does anybody knows how can i do this .
ThAnX FoR HeLp
 
Reply With Quote
 
 
 
 
/dev/rob0
Guest
Posts: n/a

 
      07-17-2003, 03:28 PM
In article <(E-Mail Removed)> , eole wrote:
> does anybody knows how can i do this .


No I don't, but I can point you in the right direction. See the Advanced
Routing HOWTO and the iproute2 package.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
Derek Doyle
Guest
Posts: n/a

 
      01-08-2004, 06:54 PM

Hello,

To send traffic out different gateways on different interfaces, you will
need iptables and Static Alternative Routes and Dead Gateway Detection
as provided by Julian Anastasov's Routes patches. You may read about
them at

http://www.netfilter.org
http://www.ssi.bg/~ja/#routes

For a full step-by-step HOWTO on patching the Linux kernel with this
patch, and information about a web application to manage the iptables
configuration, visit

http://www.skyPipes.com
or
http://skypipes.sourceforge.net

Thanks.


eole wrote:

> hi
> i have a machine with two interfaces eth0 and eth1, and i need to
> setup a different gateway for each one, so that gateway0 is used when
> the connection is through eth0 and gateway1 for eth1.
> does anybody knows how can i do this .
> ThAnX FoR HeLp


--
Derek Doyle, VP/CIO
http://www.skyBuilders.com
77 Huron Avenue
Cambridge, MA 02138-6707
617 876-5675


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 interfaces, 2 gateways, no internet Simon GUEROUT Linux Networking 10 02-12-2009 01:26 PM
SMS Gateways Linker3000 Broadband 6 08-10-2007 08:34 AM
One NIC two gateways IF possible? Joe Windows Networking 6 04-17-2007 06:30 PM
TCP/IP Multiple gateways (different gateways) Windows (NT, 98, 2000, 2003, XP) goonmunster Windows Networking 1 02-26-2007 08:39 AM
TCP/IP Multiple gateways (different gateways) Windows (NT, 98, 2000, 2003, XP) goonmunster Windows Networking 1 02-26-2007 08:39 AM



1 2 3 4 5 6 7 8 9 10 11