VRRP Configuration on Cisco

vrrp-configuration

VRRP Configuration on Cisco

In this VRRP example, we will work on Cisco IOS and configure VRRP (Virtual Router Redundancy Protocol) on Cisco Routers.

Configuring VRRP is like configuring Cisco Proprietary protocol HSRP. There are only small command differences.

For our Cisco VRRP Example, we will use the below topology:


cisco-vrrp-example

Now, let’s configure VRRP on Cisco Routers and learn VRRP better.

IP Address Configuration

The first step is the IP address configuration on interfaces.

Switch A (config)# int fa0/1
Switch A (config-if)# no switchport
Switch A (config-if)# ip address 172.16.0.1 255.255.255.0
Switch A (config-if)# no shutdown
Switch B (config)# int fa0/1
Switch B (config-if)# no switchport
Switch B (config-if)# ip address 172.16.0.2 255.255.255.0
Switch B (config-if)# no shutdown

VRRP Process Creation with Virtual IP

VRRP process is created with the VRRP Group ID and the Virtual IP Address.Here, our VRRP Group ID is 1 and our Virtual IP address is 172.16.0.5.

Switch A (config-if)# vrrp 1 ip 172.16.0.5
Switch B (config-if)# vrrp 1 ip 172.16.0.5

VRRP Group Description

Like all descriptions, in VRRP, we can use description to give our VRRP group a memorable description.

Switch A (config-if)# vrrp 1 description Our-vrrp
Switch B (config-if)# vrrp 1 description Our-vrrp

VRRP Priority

For Master/Backup selection, VRRP priorities are configured. To manuplate VRRP selection and determine a Master manually, VRRP Priority values are important. The default one is 100 and the highest one is elected as VRRP Master.

Switch A (config-if)# vrrp 1 priority 200
Switch B (config-if)# vrrp 1 priority 100

It is not required to configure VRRP Priority for switch B, because it is the default value. Here, we write this command to show you only.

VRRP Authentication

To configure VRRP authentication, we will use the below command on switches. Our password is CISCO.

Switch A (config-if)# vrrp 1 authentication CISCO 
Switch A (config-if)# vrrp 1 authentication CISCO 

As you can see, VRRP and HSRP configuration is very similar. Only HSRP “standby” word is leaving us. Instead, for VRRP, “vrrp” is coming.

VRRP Preemption

The Preempt mechanims is enabled on VRRP by default. To disable it, we can use “no vrrp preempt” command.

VRRP Verification

To verify the VRRP configuration we can use “show vrrp” and “show vrrp brief all” VRRP verification commands.

Switch A # show vrrp

Ethernet1/0 - Group 1  
  State is Master  
  Virtual IP address is 172.16.0.5
  Virtual MAC address is 0000.5e00.0101
  Advertisement interval is 1.000 sec
  Preemption is enabled
   min delay is 0.000 sec
  Priority is 120 
   Track object 1 state Down decrement 15
  Master Router is 172.16.0.1(local), priority is 120
  Master Advertisement interval is 1.000 sec
  Master Down interval is 3.531 sec

Disabling VRRP

To disable VRRP, we can use “no vrrp 1 enable” command.

VRRP (Virtual Router Redundancy Protocol)

Other First Hop Redundancy Protocols (FHRPs) Lessons

First Hop Redundancy Protocols (FHRPs) – Overview
First Hop Redundancy Protocols (FHRPs) – HSRP
First Hop Redundancy Protocols (FHRPs) – HSRP Configuration on Cisco
First Hop Redundancy Protocols (FHRPs) – VRRP
First Hop Redundancy Protocols (FHRPs) – VRRP Configuration on Cisco
First Hop Redundancy Protocols (FHRPs) – GLBP
First Hop Redundancy Protocols (FHRPs) – GLBP Configuration on Cisco

Leave a Reply