Configuring VRRP requires that you first configure an IP interface over which you can configure VRRP and any VRID instances in which you want the VRRP routers to participate.The following sections contain information for configuring the IP interface for VRRP, any VRID instances for the VRRP routers, and steps for creating a basic VRRP configuration.
Before you configure VRRP, you must configure an IP interface and assign a primary IP address and subnet mask. When the IP address belongs to the owner of the VRID, you must associate the IP address with the VRID that you create.
To configure the IP interface for VRRP:
- host1(config)#interface fastEthernet 4/0
- host1(config-if)#ip address 194.50.1.42 255.255.255.0
![]() |
Note: We recommend that you complete all IP address configurations before you configure VRRP. If for any reason the IP address information changes after you configure VRRP, you must revise the associated IP addresses configured on the related VRRP entries. If you specify auto addresses in the ip vrrp virtual-address command along with using priority 255, you must disable and reenable the VRRP entry to update the association list. |
A master or backup router running the VRRP protocol can participate in one or more VRID instances. You can create a VRID instance in several ways:
- host1(config-if)#ip vrrp 198
- host1(config-if)#ip vrrp 198 priority 255
- host1(config-if)#ip vrrp 25 enable
- host1(config-if)#ip vrrp 175 authentication-type
none
- host1(config-if)#ip vrrp 16 preempt
- host1(config-if)#ip vrrp 198 enable
- host1(config-if)#ip vrrp 16 enable
- host1(config-if)#ip vrrp 175 enable
Before you configure VRRP, we recommend that you review the configuration examples in the earlier section How VRRP Works.
To configure VRRP parameters:
- host1(config-if)#ip vrrp 25
- host1(config-if)#ip vrrp 25 advertise-interval
50
This step is mandatory to configure priority for the owner VRID (255). This step is optional to configure priority for a backup VRID (1–254). The default value is 100.
- host1(config-if)#ip vrrp 25 priority 255
- host1(config-if)#ip vrrp 22 priority 254
- host1(config-if)#ip vrrp 22 accept-data
- host1(config-if)#ip vrrp 10 preempt
- host1(config-if)#ip vrrp 25 virtual-address
194.2.1.63
- host1(config-if)#ip vrrp 25 authentication-type
none
- host1(config-if)#ip vrrp 25 authentication-key
dublin
- host1(config-if)#ip vrrp 25 enable
ip vrrp
- host1(config-if)#ip vrrp 25
ip vrrp accept-data
![]() |
Note: When using this attribute and also restricting incoming packets to ICMP only, you must use policy filters to accept only ICMP packets with the virtual address as the destination address. |
- host1(config-if)#ip vrrp 22 accept-data
ip vrrp advertise-interval
- host1(config-if)#ip vrrp 25 advertise-interval
50
ip vrrp authentication-key
- host1(config-if)#ip vrrp 25 authentication-key
dublin
ip vrrp authentication-type
- host1(config-if)#ip vrrp 175 authentication-type
none
ip vrrp enable
- host1(config-if)#ip vrrp 175 enable
ip vrrp preempt
- host1(config-if)#ip vrrp 10 preempt
ip vrrp priority
- host1(config-if)#ip vrrp 25 priority 255
ip vrrp virtual-address
- host1(config-if)#ip vrrp 25 virtual-address
194.2.1.63