Basic VRRP Configuration Example

Basic Configuration Example shows a basic VRRP configuration with a single virtual router. Routers R1 and R2 are both configured with one virtual router (VRID 1). Router R1 serves as the master because the VRRP router owns the IP address for this virtual router. Router R2 serves as the backup. The hosts are configured to use 172.111.1.1/16 as the default route.

The master advertise-interval is changed to 1.5 seconds for VRID 1.

If Router R1 should become unavailable, Router R2 would take over virtual router VRID 1 and its associated IP addresses. Packets sent to 172.111.1.1/16 would go to Router R2. When Router R1 comes up again, it would take over as master, and Router R2 would revert to backup.

Click to expand in new window
Basic Configuration Example
Click to expand in new window
Graphics/CR_sym_vrrp_config.png

Router R1 Configuration of VRRP Instance 1

System(rw)->configure
System(rw-config)->interface vlan 111
System(rw-config-intf-vlan.0.111)->ip address 172.111.1.1 255.255.255.0 primary
System(rw-config-intf-vlan.0.111)->vrrp create 1 v3-IPv4
System(rw-config-intf-vlan.0.111)->vrrp advertise-interval 1 centiseconds 150
System(rw-config-intf-vlan.0.111)->vrrp address 1 172.111.1.1
System(rw-config-intf-vlan.0.111)->vrrp enable 1
System(rw-config-intf-vlan.0.111)->no shutdown
System(rw-config-intf-vlan.0.111)->exit
System(rw-config)->show ip vrrp verbose
Interface: vlan.0.111
 VRID: 1
  Version: 3, State: Master
  Master IP Address : 172.111.1.1
  Primary IP Address: 172.111.1.1
  Virtual MAC Address: 00:00:5E:00:01:01
  Advertisement Interval:   1.50 seconds
  Operational Priority:   255,  Configured Priority: 100
  Accept: no ,  Preempt: yes,  Preempt time:   0 seconds
  Virtual IP Count:   1,  Critical IP Count:    0
  Virtual IP Addresses:
   172.111.1.1
  Critical IP Addresses:
   Interface                                   Critical Priority     State
System(rw-config)->

Router R2 Configuration of VRRP Instance 1

System(rw)->configure
System(rw-config)->interface vlan 111
System(rw-config-intf-vlan.0.111)->ip address 172.111.1.2 255.255.255.0 primary
System(rw-config-intf-vlan.0.111)->vrrp create 1 v3-IPv4
System(rw-config-intf-vlan.0.111)->vrrp address 1 172.111.1.1
System(rw-config-intf-vlan.0.111)->vrrp advertise-interval 1 centiseconds 150
System(rw-config-intf-vlan.0.111)->vrrp enable 1
System(rw-config-intf-vlan.0.111)->no shutdown
System(rw-config-intf-vlan.0.111)->exit
System(rw-config)->show ip vrrp verbose
Interface: vlan.0.111
 VRID: 1
  Version: 3, State: Backup
  Master IP Address : 172.111.1.1
  Primary IP Address: 172.111.1.2
  Virtual MAC Address: 00:00:6A:00:03:01
  Advertisement Interval:   1.50 seconds
  Operational Priority:   100,  Configured Priority: 100
  Accept: no ,  Preempt: yes,  Preempt time:   0 seconds
  Virtual IP Count:   1,  Critical IP Count:    0
  Virtual IP Addresses:
   172.111.1.1
  Critical IP Addresses:
   Interface                                   Critical Priority     State
System(rw-config)->

In this configuration, if an interface on VLAN 111 for Router R1 fails, the interface on Router R2 will take over for forwarding outside the local LAN segment.