LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Keepalived and Zebra

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Keepalived and Zebra
From: Nick Burrett <nick@xxxxxxxx>
Date: Fri, 13 Feb 2004 10:21:37 +0000


mtawafig wrote:
Hi
Anyone with a pointer on a setup for a failover router using zebra and
keepalived .
Any help is appretiated

This is quite straightforward. You use keepalived to create a virtual gateway between interfaces on two different routers.

Zebra on router1:
   interface eth0
      ip address 10.0.0.2/24

Zebra on router2
   interface eth0
      ip address 10.0.0.3/24

If you're using OSPF then have the following on both routers:

    router ospf
       network 10.0.0.0/24

Then configure keepalived with something similar to:

   vrrp_instance {
     state MASTER
     interface eth0
     garp_master_delay 5
     virtual_router_id 1
     advert_int 2
     priority 150
     virtual_ipaddress {
        10.0.0.1/24
     }
   }

On router2, use BACKUP and 100 for state and priority.

The default gateway on any servers on this subnet should be set to 10.0.0.1.

I have yet to find a copy of keepalived that successfully delt with MASTER-MASTER arbitration though.

Hope that helps,


Nick.


--
Nick Burrett
Network Engineer, Designer Servers Ltd.   http://www.dsvr.co.uk

<Prev in Thread] Current Thread [Next in Thread>