First-Hop Redundancy
Cisco Public
Chapter 6 Objectives
Overview of FHRP and HSRP
Configure and verify VRRP
Configure and verify GLBP
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
Overview of
FHRP and HSRP
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
HSRP Overview
When frames are to be sent from the workstation to the default
gateway, the workstation uses ARP to resolve the MAC address
that is associated with the IP address of the default gateway.
The ARP resolution will return the MAC address of the virtual
router.
Frames that are sent to the MAC address of the virtual router can
then be physically processed by an active router that is part of
that virtual router group.
The physical router that forwards this traffic is transparent to the
network hosts.
The redundancy protocol provides the mechanism for
determining which router should take the active role in
forwarding traffic and determining when that role must be taken
over by a standby router.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
HSRP Overview
When the forwarding router
or a link to it fails
The standby router stops
seeing hello messages
from the forwarding router.
The standby router
assumes the role of the
forwarding router.
As the new forwarding
router assumes both the
IP and MAC addresses of
the virtual router, the end
stations see no disruption
in service.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
HSRP Overview
HSRP active and standby routers send hello messages to
multicast address 224.0.0.2 (all routers) for Version 1, or
224.0.0.102 for Version 2, using User Datagram Protocol
(UDP) port 1985.
Hello messages are used to communicate between routers
in the HSRP group.
All the routers in the HSRP group need to be L2 adjacent so
that hello packets can be exchanged.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
Active router
Within an HSRP group, one router is elected to be the active router.
The active router physically forwards packets sent to the MAC address
of the virtual router.
There is one active router in an HSRP group.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
10
Other routers
There can be more than two routers in an HSRP group, but only one
active and one standby router is possible.
The other routers remain in the initial state, and if both the active and
standby routers fail, all routers in the group contend for the active and
standby router roles.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
11
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
12
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
13
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
14
Cisco Public
15
Cisco Public
16
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
17
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
18
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
19
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
20
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
21
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
22
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
23
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
24
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
25
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
26
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
27
Cisco Public
28
Cisco Public
29
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
30
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
31
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
32
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
33
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
34
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
35
Tracked objects
Tracked objects are defined in global configuration with the
keyword track , followed by an object number.
Although IP SLA is just one of the options that can be
tracked, as shown in the following syntax, you can track up
to 500 objects:
Switch(congi)# track 1 ?
interface
Select an interface to track
ip
IP protocol
list
Group objects in a list
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
36
Tracked objects
Tracked objects offer a vast group of possibilities.
A few options that are commonly available include the following
An interface
This performs a similar function like the HSRP interface tracking
mechanism, but with advanced features. This tracking object can not only
verify the interface status (line protocol) but also whether IP routing is
enabled, whether an IP address is configured on the interface, and whether
the interface state is up, before reporting to the tracking client that the
interface is up.
IP route
A tracked IP-route object is considered up and reachable when a routing
table entry exists for the route and the route is accessible. To provide a
common interface to tracking clients, route metric values are normalized to
the range of 0 to 255, where 0 is connected and 255 is inaccessible. You
can track route reachability, or even metric values, to determine best-path
values to the target network.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
37
A list of objects
You can track several objects and interrelate their results to determine
whether one or several of them should trigger the success or fail
condition.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
38
Cisco Public
39
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
40
Cisco Public
41
Preemption Delay
Preemption is an important feature of HSRP that allows the primary
router to resume the active role when it comes back online after a
failure or a maintenance event.
Preemption is a desired behavior as it forces a predictable routing
path for the VLAN traffic during normal operations.
It also ensures that the Layer 3 forwarding path for a VLAN parallels
the Layer 2 STP forwarding path whenever possible.
When a preempting device is rebooted, HSRP preemption
communication should not begin until the distribution switch has
established full connectivity to the rest of the network.
This situation allows the routing protocol convergence to occur more
quickly, after the preferred router is in an active state.
To accomplish this, measure the system boot time and set the HSRP
preemption delay to a value that is about 50 percent greater than
devices boot time
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
42
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
43
HSRP Versions
There are two HSRP versions available on most Cisco
routers and Layer 3 switches:
HSRPv1 and HSRPv2.
Cisco Public
44
HSRP Versions
An interface cannot operate both Version 1 and Version 2
because they are mutually exclusive.
The MAC address of the virtual router and the multicast
address for the hello messages are different with Version 2.
HSRPv2 uses the new IP multicast address 224.0.0.102 to
send the hello packets instead of the multicast address of
224.0.0.2, which is used by Version 1.
To enable HSRP Version 2, enable the following
configuration:
Switch(config-if) standby hsrp-number
version 2
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
45
Configuring Layer
3 Redundancy
with VRRP
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
46
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
47
About VRRP
VRRP is an open standard alternative to HSRP.
VRRP is similar to HSRP, both in operation and configuration.
The VRRP master is analogous to the HSRP active gateway,
and the VRRP backup is analogous to the HSRP standby
gateway.
A VRRP group has one master device and one or multiple
backup devices.
A device with the highest priority is the elected master. Priority
can be a number between 0 and 255.
Priority value 0 has a special meaning; it indicates that the current
master has stopped participating in VRRP.
This setting is used to trigger backup devices to quickly transition to
master without having to wait for the current master to time out.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
48
About VRRP
VRRP differs from HSRP in that it allows you to use an address of one
of the physical VRRP group members as a virtual IP address.
In this case, the device with the used physical address is a VRRP master whenever
it is available.
Cisco Public
49
About VRRP
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
50
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
51
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
52
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
53
Configuring VRRP
Step 1. Configure R1s Ethernet 0/1 with IP address
192.168.1.3 and VRRP virtual IP address 192.168.1.1:
R1(config)# interface ethernet 0/1
R1(config-if)# ip address 192.168.1.3 255.255.255.0
R1(config-if)# vrrp 1 ip 192.168.1.1
Cisco Public
54
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
55
R1s CLI:
%VRRP-6-STATECHANGE: Et0/1 Grp 1 state Master -> Backup
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
56
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
57
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
58
Configuring
Layer 3
Redundancy with
GLBP
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
59
Cisco Public
60
Introducing GLBP
GLBP shares some concepts with VRRP and HSRP, but the
terminology differs, and its behavior is more dynamic and robust.
Although HSRP and VRRP provide gateway resiliency only the
active router within the group forwards the traffic for the virtual MAC.
HSRP and VRRP can accomplish load sharing by manually
specifying multiple groups and assigning multiple default gateways.
GLBP is a Cisco proprietary solution that allows for automatic
selection and simultaneous use of multiple available gateways, in
addition to automatic failover between those gateways.
Multiple routers share the load of packets that, from a clients
perspective, are sent to a single default gateway address.
There is also no need to configure a specific gateway address on an
individual host. All hosts can use the same default gateway.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
61
GLBP Roles
GLBP routers are divided into two roles: a gateway and a forwarder:
GLBP AVG (active virtual gateway)
Members of a GLBP group elect one gateway to be the AVG for that group.
Other group members provide a backup for the AVG when the AVG becomes
unavailable; these will be in standby state.
The AVG assigns a virtual MAC address to each member of the GLBP group.
The AVG listens to the ARP requests for the default gateway IP and replies with a MAC
address of one of the GLBP group members, thus load sharing traffic among all the
group members.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
62
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
63
GLBP States
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
64
Cisco Public
65
Cisco Public
66
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
67
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
68
GLBP Configuration
Configure R1s Ethernet 0/1 with IP address of 192.168.1.3
and GLBP virtual IP address of 192.168.1.1:
R1(config)# interface ethernet 0/1
R1(config-if)# ip address 192.168.1.3 255.255.255.0
R1(config-if )# glbp 1 ip 192.168.1.1
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
69
GLBP Configuration
Configure R1s Ethernet 0/1 with GLBP priority of 110 and
enable preemption for both GLBP routers:
R1(config)# interface ethernet 0/1
R1(config-if)# glbp 1 priority 110
R1(config-if)# glbp 1 preempt
R2(config)# interface ethernet 0/1
R2(config-if)# glbp 1 preempt
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
70
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
71
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
72
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
73
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
74
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
75
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
76
Cisco Public
77
GLBP Authentication
The key for the MD5 hash can either be given directly in the
configuration using a key string or supplied indirectly
through a key chain.
The key string cannot exceed 100 characters in length.
The following example demonstrates the configuration for
GLBP authentication:
Router(config)# interface Ethernet0/1
Router(config-if)# ip address 10.0.0.1 255.255.255.0
Router(config-if)# glbp 1 authentication md5 key-string
d00b4r987654321a
Router(config-if)# glbp 1 ip 10.0.0.10
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
78
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
79
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
80
GLBP Weight
GLBP uses a weighting scheme to determine the forwarding capacity
of each router in the GLBP group.
The weighting that is assigned to a router in the GLBP group can be
used to determine whether it will forward packets and, if so, the
proportion of hosts in the LAN for which it will forward packets.
Thresholds can be set to disable forwarding when the weighting for a
GLBP group falls below a certain value, and when it rises above
another threshold, forwarding is automatically reenabled.
By default, the GLBP virtual forwarder preemptive scheme is enabled
with a delay of 30 seconds.
A backup virtual forwarder can become the AVF if the current AVF
weighting falls below the low weighting threshold for 30 seconds.
To disable the GLBP forwarder preemptive scheme, use the no glbp
forwarder preempt command or change the delay by using the glbp
forwarder preempt delay minimum command.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
81
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
82
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
83
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
84
Chapter 6 Summary
The redundancy protocol provides the mechanism for determining which router
should take the active role in forwarding traffic and determining when that role
must be taken over by a standby router .
HSRP is a Cisco proprietary protocol, whereas VRRP is an industry standard for
virtual routing gateways.
HSRP Version 1 and Version 2 active and standby routers send hello messages
to multicast address 224.0.0.2 for Version 1 and 224.0.0.102 for Version 2 on
UDP port 1985.
It is important that the configured active router should be the same as the STP
root bridge.
HSRP and VRRP use the VLAN load-balancing mechanism for load balancing.
With the new RFC, only the Cisco implementation of VRRP supports VRRP
authentication.
GLBP, by default, provides the virtual gateway and load balancing via multiple
virtual MAC addresses.
Review all the configuration examples and troubleshooting steps for better
understanding and for exam preparation.
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
85
Chapter 6 Labs
CCNPv7.1 SWITCH Lab6.1 FHRP HSRP VRRP
CCNPv7.1 SWITCH Lab6.2 HSRPv6
CCNPv7.1 SWITCH Lab6.3 GLBP
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
86
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
87
Acknowledgment
Some of the images and texts are from Implementing Cisco IP Switched
Networks (SWITCH) Foundation Learning Guide: (CCNP SWITCH 300-115) by
Richard Froom and Erum Frahim (1587206641)
Copyright 2015 2016 Cisco Systems, Inc.
Special Thanks to Bruno Silva
Chapter 6
2007 2016, Cisco Systems, Inc. All rights reserved.
Cisco Public
88