Difference between revisions of "Virtual Router Redundancy Protocol"

From Teknologisk videncenter
Jump to: navigation, search
m
m
Line 9: Line 9:
 
*Multiple routers can function as backup routers.
 
*Multiple routers can function as backup routers.
 
*VRRP is supported on Ethernet, Fast Ethernet, and Gigabit Ethernet interfaces, and with Multiprotocol Label Switching (MPLS), virtual private networks (VPNs), and VLANs.
 
*VRRP is supported on Ethernet, Fast Ethernet, and Gigabit Ethernet interfaces, and with Multiprotocol Label Switching (MPLS), virtual private networks (VPNs), and VLANs.
 +
= Purpose of HSRP =
 +
The purpose of HSRP is to ensure network connectivity in case of Router or access circuit failure, by having one or more ''standby'' Router(s) waiting to take over from the failing ''active'' Router.
 +
 +
= Other high availability Router protocols =
 +
*GLBP [[Gateway Load Balancing Protocol]]
 +
*VRRP [[Virtual Router Redundancy Protocol]]
 +
{|
 +
|-
 +
|valign="top"|
 +
 +
= How does VRRP work =
 +
VRRP works by two or more Routers agreeing upon which Router serves the ''virtual Router''.
 +
== The Virtual Router ==
 +
The Virtual Router is a MAC-address and a IP Address the ''master'' Router serves beside its configured IP address. If the ''master'' Router fails one of the ''backup'' Routers becomes the Virtual Router by serving the virtual MAC-address and IP Address.
 +
== VRRP example ==
 +
In picture 1 three Routers R1,R2 and R3 are setup in a VRRP Group. The Virtual IP address 10.0.0.1 and virtual MAC-Address 00-00-5E-00-01-0C are served by the ''master'' Router R1. R1 continuesly transmits hello packets to the ''backup'' Routers.<br/>
 +
If the Active Router fails one of the ''standby'' Routers will become the active Router and start serving the Virtual IP address 10.0.0.1 and the virtual MAC-address 00-00-5E-00-01-0C.<br/><br/>
 +
There are no load balancing between the Routers.
 +
|
 +
[[Image:VRRP1.png|thumb|500px|float|Picture 1: VRRP group with Router R1 master and Router R2 and R3 as backup Routers]]
 +
|}
 +
== Configuration of R1, R2 and R3 ==
 +
 +
{|
 +
|
 +
<pre>
 +
hostname R1
 +
!
 +
interface FastEthernet1/0 
 +
  ip address 10.0.0.11 255.0.0.0
 +
  standby 10 priority 130
 +
  standby 10 preempt
 +
  standby 10 timers 2 6
 +
  standby 10 ip 10.0.0.1
 +
</pre>
 +
|
 +
<pre>
 +
hostname R2
 +
!
 +
interface FastEthernet1/0
 +
  ip address 10.0.0.12 255.0.0.0
 +
  standby 10 priority 120
 +
  standby 10 preempt
 +
  standby 10 timers 2 6
 +
  standby 10 ip 10.0.0.1
 +
</pre>
 +
|
 +
<pre>
 +
hostname R3
 +
!
 +
interface FastEthernet1/0
 +
  ip address 10.0.0.13 255.0.0.0
 +
  standby 10 priority 110
 +
  standby 10 preempt
 +
  standby 10 timers 2 6
 +
  standby 10 ip 10.0.0.1
 +
</pre>
 +
|}
  
 
[[Category:Cisco]][[Category:CCNP]][[Category:IOS]][[Category:Network]][[Category:CCNP3]]
 
[[Category:Cisco]][[Category:CCNP]][[Category:IOS]][[Category:Network]][[Category:CCNP3]]

Revision as of 11:50, 3 May 2009

Like HSRP, Virtual Router Redundancy Protocol (VRRP) allows a group of routers to form a single virtual router. In an HSRP or VRRP group, one router is elected to handle all requests sent to the virtual IP address. With HSRP, this is the active router. An HSRP group has one active router, at least one standby router, and perhaps many listening routers. A VRRP group has one master router and one or more backup routers. The LAN workstations are then configured with the address of the virtual router as their default gateway.

VRRP differs from HSRP in the following ways:

  • VRRP is an IEEE standard (RFC 2338) for router redundancy
    • HSRP is a Cisco-proprietary protocol.
  • The virtual router represents a group of routers, known as a VRRP group or virtual router group.
  • The active router is referred to as the master virtual router.
  • The master virtual router may have the same IP address as the virtual router group.
  • Multiple routers can function as backup routers.
  • VRRP is supported on Ethernet, Fast Ethernet, and Gigabit Ethernet interfaces, and with Multiprotocol Label Switching (MPLS), virtual private networks (VPNs), and VLANs.

Purpose of HSRP

The purpose of HSRP is to ensure network connectivity in case of Router or access circuit failure, by having one or more standby Router(s) waiting to take over from the failing active Router.

Other high availability Router protocols

How does VRRP work

VRRP works by two or more Routers agreeing upon which Router serves the virtual Router.

The Virtual Router

The Virtual Router is a MAC-address and a IP Address the master Router serves beside its configured IP address. If the master Router fails one of the backup Routers becomes the Virtual Router by serving the virtual MAC-address and IP Address.

VRRP example

In picture 1 three Routers R1,R2 and R3 are setup in a VRRP Group. The Virtual IP address 10.0.0.1 and virtual MAC-Address 00-00-5E-00-01-0C are served by the master Router R1. R1 continuesly transmits hello packets to the backup Routers.
If the Active Router fails one of the standby Routers will become the active Router and start serving the Virtual IP address 10.0.0.1 and the virtual MAC-address 00-00-5E-00-01-0C.

There are no load balancing between the Routers.

Picture 1: VRRP group with Router R1 master and Router R2 and R3 as backup Routers

Configuration of R1, R2 and R3

hostname R1
!
interface FastEthernet1/0  
  ip address 10.0.0.11 255.0.0.0
  standby 10 priority 130 
  standby 10 preempt 
  standby 10 timers 2 6
  standby 10 ip 10.0.0.1
hostname R2
!
interface FastEthernet1/0 
  ip address 10.0.0.12 255.0.0.0
  standby 10 priority 120 
  standby 10 preempt 
  standby 10 timers 2 6
  standby 10 ip 10.0.0.1
hostname R3
!
interface FastEthernet1/0 
  ip address 10.0.0.13 255.0.0.0
  standby 10 priority 110 
  standby 10 preempt
  standby 10 timers 2 6 
  standby 10 ip 10.0.0.1