Example configuration

In VR 1, below, R1 is the owner and the current master router, and R2 is the (only) backup in the VR. If R1 becomes unavailable, VR 1 fails over to R2.

Example of a basic VRRP configuration
 

VLAN 10 IP

VR 1 IP

Status

Router 1

10.10.10.1

10.10.10.1

owner

Router 2

10.10.10.23

10.10.10.1

backup

VRRP configuration for Router 1 (R1) in Example of a basic VRRP configuration

switch(config)# router vrrp
switch(config)# vlan 10
switch(vlan-10)# vrrp vrid 1
switch(vlan-10-vrid-1)# owner
switch(vlan-10-vrid-1)# virtual-ip-address 10.10.10.1
switch(vlan-10-vrid-1)# enable

switch(vlan-10-vrid-1)# show vrrp vlan 10 vrid 1 config

 VRRP Virtual Router Configuration Information

  VLAN ID : 10
  Virtual Router ID : 1

  Administrative Status [Disabled] : Enabled
  Mode [Uninitialized] : owner
  Priority [100] :255
  Advertisement Interval [1] : 1
  Preempt Mode [True] : True
  Preempt Delay time [0] : 0
  Respond to Virtual IP Ping Requests [Yes] : Yes
  Version [2] : 2
  Null authentication compatibility [False] : False
  Primary IP Address : Lowest

  IP Address
  ----------------
  10.10.10.1

VRRP configuration for Router 2 (R2) in Example of a basic VRRP configuration

switch(config)# router vrrp
switch(config)# vlan 10
switch(vlan-10)# vrrp vrid 1
switch(vlan-10-vrid-1)# backup
switch(vlan-10-vrid-1)# virtual-ip-address 10.10.10.1
switch(vlan-10-vrid-1)# enable

switch(vlan-10-vrid-1)# show vrrp vlan 10 vrid 1 config

 VRRP Virtual Router Configuration Information

  VLAN ID : 10
  Virtual Router ID : 1

  Administrative Status [Disabled] : Enabled
  Mode [Uninitialized] : backup
  Priority [100] :100
  Advertisement Interval [1] : 1
  Preempt Mode [True] : True
  Preempt Delay time [0] : 0
  Respond to Virtual IP Ping Requests [Yes] : Yes
  Version [2] : 2
  Null authentication compatibility [False] : False
  Primary IP Address : Lowest

  IP Address
  ----------------
  10.10.10.1