[afnog] Multiple Gateways on a Server

A B Richard richard at nistechltd.com
Tue Sep 25 11:30:46 UTC 2007


 Hi Bruce,
 What you want is quite possible and it works. what you need is to setup
policy based routing on the server. The document in this url will be of
great assistance to you.
http://www.policyrouting.org/PolicyRoutingBook/ONLINE/CH05.web.html

 Cheers
 Richard



> Fabian,
>
> Sorry about this... but you assuming that I have a second nic on all
> my servers in the server farm? Please see Mark's post on this thread I
> think its a more elegant solution for my problem.
>
> best regards,
>
> Bruce.
>
> On 9/25/07, Fabian <fabian at udsm.ac.tz> wrote:
>> Bruce...
>>
>> If I got you right in your first message....it's JUST OK with this.
>>
>>
>> What do you mean by complications?! I think it will easy work and ensure
>> maximum availability....'cause doing that is having alternative routes
>> (failover routes) to your servers which is healthy!
>>
>> I think you need to give this job to your network guys.....i'm telling
>> you
>> something I have implemented in my network on our mail exchangers.
>>
>> Just add the lines...sit back and relax...
>>
>>
>> Add these commands in the /etc/rc.local file
>> route add -net a.b.c.0 netmask 255.255.255.0 default gw a.b.c.1
>> route add -net d.e.f.0 netmask 255.255.255.0 default gw d.e.f.1
>>
>>
>>  note:
>>  1. a.b.c.0 should network ID for one network block
>>  2. d.e.f.0 should network ID for another network block
>>  3. 255.255.255.0 is netmask for each network block, here I have assumed
>> each
>> network block has 255.255.255.0 netmask.
>>
>>
>> Arbogast.I.Fabian,
>> Senior Network Engineer,
>> University Computing Centre,
>> P.O Box 35062,
>> Dar Es Salaam.
>> Phone:+255-22-241-0641
>> Fax:    +255-22-241-0690
>> Cell:    +255-78-447-8387
>> -----Original Message-----
>> From: afnog-bounces at afnog.org [mailto:afnog-bounces at afnog.org] On Behalf
>> Of
>> Bruce Zamaere
>> Sent: Monday, September 24, 2007 7:52 PM
>> To: afnog at afnog.org
>> Subject: Re: [afnog] Multiple Gateways on a Server
>>
>> Fabian,
>>
>> I considered this... but as this is a 'server farm' I didn't think it
>> was appropriate. It would simply complicate matters and increase
>> headaches for the admins. I also want both routers on the same block
>> and I'm not sure if this suggestion would allow that.
>>
>>
>>
>> On 9/24/07, Fabian <fabian at udsm.ac.tz> wrote:
>> > Pretty Possible Bruce,
>> >
>> > You need to have two interfaces in that linux box.....
>> >
>> > One interface give it an IP from one router (network block)....like
>> wise
>> the
>> > other interface give it an IP from the second router (second network
>> block).
>> >
>> >
>> > Add these commands  in the /etc/rc.local file
>> >  route add -net a.b.c.0 netmask 255.255.255.0 default gw a.b.c.1
>> >  route add -net d.e.f.0 netmask 255.255.255.0 default gw d.e.f.1
>> >
>> >
>> > note:
>> > 1. a.b.c.0 should network ID for one network block
>> > 2. d.e.f.0 should network ID for another network block
>> > 3. 255.255.255.0 is netmask for each network block, here I have
>> assumed
>> each
>> > network block has 255.255.255.0 netmask.
>> >
>> > Try it out,
>> >
>> > Arbogast.I.Fabian,
>> > Senior Network Engineer,
>> > University Computing Centre,
>> > P.O Box 35062,
>> > Dar Es Salaam.
>> > Phone:+255-22-241-0641
>> > Fax:    +255-22-241-0690
>> > Cell:    +255-78-447-8387
>> > -----Original Message-----
>> > From: afnog-bounces at afnog.org [mailto:afnog-bounces at afnog.org] On
>> Behalf
>> Of
>> > Bruce Zamaere
>> > Sent: Monday, September 24, 2007 6:14 PM
>> > To: afnog at afnog.org
>> > Subject: [afnog] Multiple Gateways on a Server
>> >
>> > Now this may sound a bit foolish but I'm really curious if this can
>> work.
>> >
>> >
>> >                                      +-------------+
>> >                                      |    R0          |
>> >                                      +-------------+
>> >                                               |
>> >       +----------------------------------------------------------
>> >        |
>> >          |
>> >        |
>> >          |
>> > +-------------+
>> > +-------------+
>> > |    R1          |
>> > |    R2          |
>> > +-------------+
>> > +-------------+
>> >        |
>> >           |
>> >        |
>> >           |
>> >
>> |---------------------------------------------------------------------------
>> > -|
>> >                                               |
>> >                                               |
>> >                                          +-----+
>> >                                          |        |
>> >                                          | ----  |
>> >                                          | ----  |
>> >                                          | ----  |
>> >                                          |        |
>> >                                          +-----+
>> >                                          Server
>> >
>> >
>> > Hope the ascii drawing looks alright. Simply put. I have a server farm
>> > that is on a lan with two routers. I want to be able to configure the
>> > servers to use both routers. Load balancing or load sharing isn't
>> > really a concern here. Is it possible to have two default gateways for
>> > these servers? Servers are running Linux... routers are all Cisco.
>> >
>> > regards,
>> >
>> > Bruce.
>> >
>> > _______________________________________________
>> > afnog mailing list
>> > http://afnog.org/mailman/listinfo/afnog
>> >
>> >
>>
>> _______________________________________________
>> afnog mailing list
>> http://afnog.org/mailman/listinfo/afnog
>>
>>
>
> _______________________________________________
> afnog mailing list
> http://afnog.org/mailman/listinfo/afnog
>


-- 
 Regards

 A B Richard
 NIS Technologies Ltd.
 2348051357129




More information about the afnog mailing list