![]() |
First Hop Redundancy Protocols Configuration Guide, Cisco IOS XE Release 3S
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
VRRPv3 Protocol Support
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contents
VRRPv3 Protocol SupportLast Updated: December 2, 2012
Virtual Router Redundancy Protocol (VRRP) enables a group of routers to form a single virtual router to provide redundancy. The LAN clients can then be configured with the virtual router as their default gateway. The virtual router, representing a group of routers, is also known as a VRRP group. The VRRP version 3 (v3) Protocol Support feature provides the capability to support IPv4 and IPv6 addresses while VRRP version 2 (v2) only supports IPv4 addresses. This module explains concepts related to VRRPv3 and describes how to create and customize a VRRP group in a network. Benefits of using VRRPv3 Protocol Support include the following:
Finding Feature InformationYour software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Restrictions for VRRPv3 Protocol Support
Information About VRRPv3 Protocol SupportVRRPv3 BenefitsRedundancyVRRP enables you to configure multiple routers as the default gateway router, which reduces the possibility of a single point of failure in a network. Load SharingYou can configure VRRP in such a way that traffic to and from LAN clients can be shared by multiple routers, thereby sharing the traffic load more equitably between available routers. Multiple Virtual RoutersVRRP supports up to 255 virtual routers (VRRP groups) on a router physical interface, subject to restrictions in scaling. Multiple virtual router support enables you to implement redundancy and load sharing in your LAN topology. In scaled environments, VRRS Pathways should be used in combination with VRRP control groups. Multiple IP Addresses The virtual router can manage multiple IP addresses, including secondary IP addresses. Therefore, if you have multiple subnets configured on an Ethernet interface, you can configure VRRP on each subnet.
Advertisement ProtocolVRRP uses a dedicated Internet Assigned Numbers Authority (IANA) standard multicast address for VRRP advertisements. For IPv4, the multicast address is 224.0.0.18. For IPv6, the multicast address is FF02:0:0:0:0:0:0:12. This addressing scheme minimizes the number of routers that must service the multicasts and allows test equipment to accurately identify VRRP packets on a segment. The IANA has assigned VRRP the IP protocol number 112. VRRP Router Priority and PreemptionAn important aspect of the VRRP redundancy scheme is VRRP router priority. Priority determines the role that each VRRP router plays and what happens if the virtual router master fails. If a VRRP router owns the IP address of the virtual router and the IP address of the physical interface, this router will function as a virtual router master. Priority also determines if a VRRP router functions as a virtual router backup and the order of ascendancy to becoming a virtual router master if the virtual router master fails. You can configure the priority of each virtual router backup with a value of 1 through 254 using the priority command (use the vrrp address-family command to enter the VRRP configuration mode and access the priority option). For example, if router A, the virtual router master in a LAN topology, fails, an election process takes place to determine if virtual router backups B or C should take over. If routers B and C are configured with the priorities of 101 and 100, respectively, router B is elected to become virtual router master because it has the higher priority. If routers B and C are both configured with the priority of 100, the virtual router backup with the higher IP address is elected to become the virtual router master. By default, a preemptive scheme is enabled whereby a higher priority virtual router backup that becomes available takes over from the virtual router backup that was elected to become virtual router master. You can disable this preemptive scheme using the no preempt command (use the vrrp address-family command to enter the VRRP configuration mode, and enter the no preempt command). If preemption is disabled, the virtual router backup that is elected to become virtual router master remains the master until the original virtual router master recovers and becomes master again.
VRRP AdvertisementsThe virtual router master sends VRRP advertisements to other VRRP routers in the same group. The advertisements communicate the priority and state of the virtual router master. The VRRP advertisements are encapsulated into either IPv4 or IPv6 packets (based on the VRRP group configuration) and sent to the appropriate multicast address assigned to the VRRP group. For IPv4, the multicast address is 224.0.0.18. For IPv6, the multicast address is FF02:0:0:0:0:0:0:12. The advertisements are sent every second by default and the interval is configurable. Cisco routers allow you to configure millisecond timers, which is a change from VRRPv2. You need to manually configure the millisecond timer values on both the primary and the backup routers. The master advertisement value displayed in the show vrrp command output on the backup routers is always 1 second because the packets on the backup routers do not accept millisecond values. You must use millisecond timers where absolutely necessary and with careful consideration and testing. Millisecond values work only under favorable circumstances. The use of the millisecond timer values is compatible with third party vendors, as long as they also support VRRPv3. You can specify a timer value between 100 milliseconds and 40000 milliseconds. How to Configure VRRPv3 Protocol Support
Enabling VRRPv3 on a Router
SUMMARY STEPS
DETAILED STEPS Creating and Customizing a VRRP GroupTo create a VRRP group, perform the following task. Steps 6 to 14 denote customizing options for the group, and they are optional: DETAILED STEPS
Configuring the Delay Period Before FHRP Client InitializationTo configure the delay period before the initialization of all FHRP clients on an interface, perform the following task: DETAILED STEPS
Configuration Examples for VRRPv3 Protocol Support
Example: Creating and Customizing a VRRP GroupThe following example shows how to create and customize a VRRP group: Device> enable Device# configure terminal Device(config)# fhrp version vrrp v3 Device(config)# interface gigabitethernet0/0 Device(config-if)# vrrp 3 address-family ipv4 Device(config-if-vrrp)# address 100.0.1.10 primary Device(config-if-vrrp)# description group 3 Device(config-if-vrrp)# match-address Device(config-if-vrrp)# preempt delay minimum 30 Device(config-if-vrrp)# end
Example: Configuring the Delay Period Before FHRP Client InitializationThe following example shows how to configure the delay period before FHRP client initialization : Device> enable Device# configure terminal Device(config)# fhrp version vrrp v3 Device(config)# interface gigabitethernet0/0 Device(config-if)# fhrp delay minimum 5 Device(config-if-vrrp)# end
Example: VRRP Status, Configuration, and Statistics DetailsThe following is a sample output of the status, configuration and statistics details for a VRRP group: Device> enable Device# show vrrp detail Ethernet0/0 - Group 1 - Address-Family IPv4 State is MASTER State duration 3.707 secs Virtual IP address is 1.0.0.10 Virtual MAC address is 0000.5E00.0101 Advertisement interval is 1000 msec Preemption enabled Priority is 100 Master Router is 1.0.0.1 (local), priority is 100 Master Advertisement interval is 1000 msec (expires in 686 msec) Master Down interval is unknown State is MASTER State duration 3.707 secs VRRPv3 Advertisements: sent 5 (errors 0) - rcvd 0 VRRPv2 Advertisements: sent 0 (errors 0) - rcvd 0 Group Discarded Packets: 0 VRRPv2 incompatibility: 0 IP Address Owner conflicts: 0 Invalid address count: 0 IP address configuration mismatch : 0 Invalid Advert Interval: 0 Adverts received in Init state: 0 Invalid group other reason: 0 Group State transition: Init to master: 0 Init to backup: 1 (Last change Mon Jul 30 16:42:01.856) Backup to master: 1 (Last change Mon Jul 30 16:42:05.469) Master to backup: 0 Master to init: 0 Backup to init: 0 Device# exit Additional ReferencesTechnical Assistance
Feature Information for VRRPv3 Protocol SupportThe following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
GlossaryVirtual IP address owner--The VRRP router that owns the IP address of the virtual router. The owner is the router that has the virtual router address as its physical interface address. Virtual router--One or more VRRP routers that form a group. The virtual router acts as the default gateway router for LAN clients. The virtual router is also known as a VRRP group. Virtual router backup--One or more VRRP routers that are available to assume the role of forwarding packets if the virtual router master fails. Virtual router master--The VRRP router that is currently responsible for forwarding packets sent to the IP addresses of the virtual router. Usually, the virtual router master also functions as the IP address owner. VRRP router--A router that is running VRRP. © 2012 Cisco Systems, Inc. All rights reserved.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|