www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / SWITCH / Module 8 / High Availability and LAN Redundancy – Virtual Router Redundancy Protocol – Part 1

High Availability and LAN Redundancy – Virtual Router Redundancy Protocol – Part 1

Virtual Router Redundancy Protocol (VRRP) is a gateway election protocol that dynamically assigns responsibility for one or more virtual gateways to the VRRP routers on a LAN, which allows several routers on a multi-access segment, such as Ethernet, to use the same virtual IP address as their default gateway.

VRRP operates in a similar manner to HSRP; however, unlike HSRP, VRRP is an open standard that is defined in RFC 2338, which was made obsolete by RFC 3768. VRRP sends advertisements to the Multicast destination address 224.0.0.18 (VRRP), using IP protocol number 112. At the Data Link layer, advertisements are sent from the virtual router master virtual router MAC address 01-00-5e-00-01xx, where ‘xx‘represents the two-digit Hexadecimal group number. This is illustrated in Figure 8-18.

Figure 8-18:               VRRP Multicast Addresses


NOTE: The protocol number is in Hexadecimal. The Hexadecimal value 0x70 is the equivalent of the Decimal value 112. Similarly, the 12 in the destination Data Link layer address 01-00-5e-00-00-12 is the Hexadecimal of 18 in Decimal, i.e. 224.0.0.18. If you are unable to determine how these values are reached, Hexadecimal to Decimal conversion is covered in detail in the current CCNA guide that is available online.

j0195812

Real World Implementation
Unlike HSRP, VRRP does not have the option to allow the gateway to use the BIA or a statically configured address as the MAC address for VRRP groups. Therefore, in production networks with more than one VRRP group, it is important to understand the implications of multiple MAC addresses on a particular interface, especially when features such as port security have been implemented. Remember to look at the overall picture, otherwise, you may find that, even though correctly configured, certain features and protocol are not working as they should.

A VRRP gateway is configured to run the VRRP protocol in conjunction with one or more other routers attached to a LAN. In a VRRP configuration, one gateway is elected as the virtual router master, with the other gateways acting as virtual router backups in case the virtual router master fails. This concept is illustrated in Figure 8-19.

Figure 8-19:               Virtual Router Redundancy Protocol Basic Operation

VRRP Multiple Virtual Router Support

You can configure up to 255 virtual routers on an interface. The actual number of virtual routers that a router interface can support depends on the following factors:

  • Router processing capability
  • Router memory capability
  • Router interface support of multiple MAC addresses

VRRP Master Router Election

By default, VRRP uses priority values to determine which router will be elected virtual router master. The default VRRP priority value is 100; however, this value can be manually adjusted to a value between 1 and 254. If gateways have the same priority values, the gateway with the highest IP address will be elected virtual router master, while the one with the lower IP address becomes the virtual router backup.

If more than two routers are configured as part of the VRRP group, the virtual router backup with the second highest priority is elected as virtual router master if the current virtual router master fails or becomes unavailable. If the virtual router backups have the same priority value, the virtual router backup with the highest IP address is elected virtual router master. This concept is illustrated in Figure 8-20.

Figure 8-20:               VRRP Virtual Router Master and Backup Election


Figure 8-20 illustrates a network using VRRP for gateway redundancy. Hosts 1 and 2 are configured with a default gateway of 192.168.1.254, which is the virtual IP address configured for VRRP group 192 defined on Switches VRRP-1, VRRP-2, and VRRP-3.

VRRP-1 has a configured priority value of 110, VRRP-2 has a configured priority value of 105, and VRRP-3 is using the default VRRP priority of 100. Based on this configuration, VRRP-1 is elected as the virtual router master and VRRP-2 and VRRP-3 become virtual router backups.

In the event that VRRP-1 fails, VRRP-2 becomes virtual router master because it has a higher priority than VRRP-3. However, if both switches had the same priority value, VRRP-3 would be elected as virtual router master because it has the higher IP address.

VRRP Preemption

By default, unlike HSRP, preemption is enabled for VRRP and no explicit configuration is required by the administrator to enable this functionality.  However, this functionality can be disabled by using the no vrrp [number] preempt interface configuration command.

VRRP Load Balancing

VRRP allows for load balancing in a manner similar to HSRP. For example, in a network where multiple virtual routers are configured on a gateway, the interface can act as a master for one virtual router and as a backup for one or more virtual routers. This is illustrated in Figure 8-21.

Figure 8-21:               Virtual Router Redundancy Protocol Load Balancing


VRRP Versions

By default, VRRP version 2 is enabled when VRRP is configured on a gateway in Cisco IOS software. Version 2 is the default and current VRRP version. It is not possible to change the version as is the case with HSRP. There is no VRRP version 1 standard.

NOTE: As of the time of the writing of this guide, VRRP version 3, which defines the VRRP for IPv4 and IPv6, is in draft form and has not yet been standardized.

Figure 8-22:               Virtual Router Redundancy Protocol Version 2 Packet

VRRP Advertisements

The virtual router master sends 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 in IP packets and sent to the IP Version 4 Multicast address assigned to the VRRP group, which was illustrated in Figure 8-17.  The advertisements are sent every second by default; however, this interval is user configurable and may be changed. Virtual router backups also optionally learn the advertisement interval from the virtual master.

VRRP Authentication

Like HSRP, VRRP supports both plain text and MD5 authentication. MD5 authentication may be configured with or without a key chain. Unlike HSRP, however, it is important to remember that authentication is not enabled by default for VRRP. This is illustrated in Figure 8-23.

Figure 8-23:               Virtual Router Redundancy Protocol Authentication

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.