Cisco HSRP (like VRRP) – Redundant gateway router configuration

You’ve got two Cisco routers, and two links to a remote site. How do you make your hosts use the backup when needed? One method is HSRP.


HSRP stands for Hot Standby Router Protocol, and what it does is create a virtual IP address (which hosts will use as the gateway address). This virtual address is free to move between configured routers as needed.

Some background for this config:

Local Subnet: 192.168.2.0/24
Desired gateway address: 192.168.2.1

Both routers and their hosts must be on the same layer 2 network.

On Router A:
ip address 192.168.2.2 255.255.255.0
standby 1 ip 192.168.2.1
standby 1 preempt
standby 1 priority 110
standby 1 authentication myrouter
standby 1 track serial 0/0

The priority number determines which router will normally have the virtual IP address, higher numbers win.

The track statement tells the router to give up the virtual address if the serial 0/0 interface goes down.

Router B:
ip address 192.168.2.3 255.255.255.0
standby 1 ip 192.168.2.1
standby 1 preempt
standby 1 priority 100
standby 1 authentication myrouter
standby 1 track serial 0/1

That’s all there is to it! Router A will host the virtual IP address, and if the router or it’s serial port goes down, Router B will assume control of the virtual address, and traffic will flow over it’s serial link.

The Conversation

Follow the reactions below and share your own thoughts.

5 Responses to “Cisco HSRP (like VRRP) – Redundant gateway router configuration”

  1. December 31, 2008 at 8:17 am, x said:

    good, but not too details on the explanation

    Reply

  2. May 19, 2009 at 3:37 pm, arun said:

    VER GOOD AND USEFUL PA

    Reply

  3. July 06, 2009 at 8:16 pm, sudhakar said:

    what is diffence between HSRP and VRRP

    Reply

    • July 24, 2009 at 1:50 pm, Name said:

      hsrp is cisco proprietary and vrrp is not.

      Reply

  4. November 29, 2011 at 2:03 pm, Karwan said:

    this is CCNP Level, it is really cool to learn. I have studied it in New Horizon for training.

    Reply

Leave a Reply