Lab Implement GLBP
Lab Implement GLBP
Topology
Addressing Table
Device Interface IP Address Default Gateway
D1
VLAN 99 2001:db8:99::1/64 N/A
D1
Loopback 0 172.16.1.1/24 N/A
D1
Loopback 0 2001:db8:172::1/64 N/A
D2
VLAN 99 2001:db8:99::2/64 N/A
D2
Loopback 0 172.16.1.1/24 N/A
D2
Loopback 0 2001:db8:172::1/64 N/A
PC1 NIC
SLAAC
PC2 NIC 192.168.99.99/24 192.168.99.1
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 15 www.netacad.com
Lab - Implement GLBP
PC2 NIC
SLAAC
Objectives
Part 1: Build the Network and Configure Basic Device Settings and Interface Addressing
Part 2: Configure and Observe GLBP for IPv4 and IPv6
Part 3: Configure and Observe GLBP Authentication
Part 4: Configure and Observe GLBP Object Tracking
Background / Scenario
Although HSRP and VRRP provide gateway resiliency for the standby members of the redundancy group, the
upstream bandwidth is not used while the device is in standby mode. Only the active router for HSRP and the
master for VRRP groups forward traffic for the virtual MAC. Resources associated with the standby router are
not fully utilized. Some load balancing can be accomplished with these protocols through the creation of
multiple groups and through the assignment of multiple default gateways, but this configuration creates an
administrative burden. Previous labs provided you with experience configuring HSRP and VRRP to act as
First Hop Redundancy Protocols. Gateway Load Balancing Protocol (GLBP) performs a similar function in
redundancy but offers the capability to load balance over multiple gateways.
GLBP is a Cisco-proprietary solution created to enable automatic selection and simultaneous use of multiple
available gateways in addition to automatic failover between those gateways. Multiple routers share the load
of frames that, from a client perspective, are sent to a single default gateway address.
Like HSRP and VRRP, an election occurs, but rather than a single active router winning the election, GLBP
elects an Active Virtual Gateway (AVG). The AVG assigns virtual MAC addresses to each of the routers in the
GLBP group (called Active Virtual Forwarders or AVFs). These virtual MAC addresses are then provided to
hosts in an algorithmic manner in response to ARP requests from hosts for the default gateway.
GLBP allows for simultaneous forwarding from routers participating in a GLBP group. GLBP can support up to
four routers in a group. GLBP also offers authentication and object tracking.
Note: This lab is an exercise in deploying and verifying GLBP and does not necessarily reflect networking
best practices.
Note: The switches used with CCNP hands-on labs are Cisco 3650 with Cisco IOS XE release 16.9.4
(universalk9 image) and Cisco 2960+ with IOS release 15.2 (lanbase image). Other routers and Cisco IOS
versions can be used. Depending on the model and Cisco IOS version, the commands available and the
output produced might vary from what is shown in the labs.
Note: Ensure that the switches have been erased and have no startup configurations. If you are unsure
contact your instructor.
Required Resources
• 2 Switches (Cisco 3650 with Cisco IOS XE release 16.9.4 universal image or comparable)
• 1 Switch (Cisco 2960 with Cisco IOS Release 15.2(2) lanbasek9 image or comparable)
• 1 PC (Choice of operating system with a terminal emulation program installed)
• Console cables to configure the Cisco IOS devices via the console ports
• Ethernet cables as shown in the topology
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 15 www.netacad.com
Lab - Implement GLBP
Instructions
Part 1: Build the Network and Configure Basic Device Settings and Interface
Addressing
In Part 1, you will set up the network topology and configure basic settings and interface addressing.
Switch D1
hostname D1
ip routing
ipv6 unicast-routing
no ip domain lookup
banner motd # D1, Implement GLBP #
line con 0
exec-timeout 0 0
logging synchronous
exit
line vty 0 4
privilege level 15
password cisco123
exec-timeout 0 0
logging synchronous
login
exit
interface range g1/0/1-24, g1/1/1-4, g0/0
shutdown
exit
interface range g1/0/1-6
switchport mode trunk
no shutdown
exit
interface range g1/0/1-4
channel-group 12 mode active
exit
interface range g1/0/5-6
channel-group 1 mode active
exit
vlan 99
name ALL_THE_HOSTS
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 15 www.netacad.com
Lab - Implement GLBP
exit
interface vlan 99
ip address 192.168.99.1 255.255.255.0
ipv6 address fe80::d1:1 link-local
ipv6 address 2001:db8:99::1/64
no shutdown
exit
interface loopback 0
ip address 172.16.1.1 255.255.255.0
ipv6 address fe80::d1:2 link-local
ipv6 address 2001:db8:172::1/64
no shutdown
exit
Switch D2
hostname D2
ip routing
ipv6 unicast-routing
no ip domain lookup
banner motd # D2, Implement GLBP #
line con 0
exec-timeout 0 0
logging synchronous
exit
line vty 0 4
privilege level 15
password cisco123
exec-timeout 0 0
logging synchronous
login
exit
interface range g1/0/1-24, g1/1/1-4, g0/0
shutdown
exit
interface range g1/0/1-6
switchport mode trunk
no shutdown
exit
interface range g1/0/1-4
channel-group 12 mode active
exit
interface range g1/0/5-6
channel-group 2 mode active
exit
vlan 99
name ALL_THE_HOSTS
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 15 www.netacad.com
Lab - Implement GLBP
exit
interface vlan 99
ip address 192.168.99.2 255.255.255.0
ipv6 address fe80::d2:1 link-local
ipv6 address 2001:db8:99::2/64
no shutdown
exit
interface loopback 0
ip address 172.16.1.1 255.255.255.0
ipv6 address fe80::d2:2 link-local
ipv6 address 2001:db8:172::1/64
no shutdown
exit
Switch A1
hostname A1
no ip domain lookup
banner motd # A1, Implement GLBP #
line con 0
exec-timeout 0 0
logging synchronous
exit
line vty 0 4
privilege level 15
password cisco123
exec-timeout 0 0
logging synchronous
login
exit
interface range f0/1-24, g0/1-2
shutdown
exit
interface range f0/1-4
switchport mode trunk
no shutdown
exit
interface range f0/1-2
channel-group 1 mode active
exit
interface range f0/3-4
channel-group 2 mode active
exit
vlan 99
name ALL_THE_HOSTS
exit
interface f0/23
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 15 www.netacad.com
Lab - Implement GLBP
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 15 www.netacad.com
Lab - Implement GLBP
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 15 www.netacad.com
Lab - Implement GLBP
b. You can also use the show glbp brief command to get a less verbose status.
D1# show glbp brief
Interface Grp Fwd Pri State Address Active router Standby router
Vl99 99 - 150 Active 192.168.99.254 local unknown
Vl99 99 1 - Active 0007.b400.6301 local -
Vl99 996 - 150 Active FE80::99:254 local unknown
Vl99 996 1 - Active 0007.b403.e401 local -
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 15 www.netacad.com
Lab - Implement GLBP
Let us examine this output in detail (Note that there may be differences in your output.).
The first line after the column headings provides the status of the AVG. Reading from left to right, the line
states that the priority of the local device is 100, the local device AVG status is standby for the virtual IP
192.168.99.254, and that the active AVG is 192.168.99.1 and the standby AVG is the local device.
The second line provides the status of AVF1. Reading from left to right, the AVF1 status is Listen for the
virtual MAC address 0007.b400.6301, and the active router is 192.168.99.1. This indicates that the local
device is listening for the status of AVF1, and that 192.168.99.1 is currently active as AVF1. If AVF1 were to
fail, which we will demonstrate later, D2 would be listening, it would hear that D1 is no longer sending
messages, and take over processing traffic for AVF1 until it hears traffic from D1 again.
The third line provides the status of AVF2. Reading from left to right, the AVF2 status is active for the MAC
address 0007.b400.6302, and the active router is the local router.
The last three lines provide the same information for group 996.
Close configuration window
Windows OS
C:\Users\student> arp -a
<output omitted>
Internet Address Physical Address Type
-------------------------------------------- ----------------- -----------
fe80::99:254 00-07-b4-03-e4-02 Reachable (Router)
<output omitted>
b. Now that the PCs are operating and you can see the load balancing in effect, what happens when one of
the AVFs fail? To observe this, issue the shutdown command on D2 interface VLAN 99, ping 172.16.1.1
and 2001:db8:172::1 from PC1 and PC2, then look at the ARP and Neighbor tables on PC1 and PC2.
Linux OS
student@ linux-machine:~/Documents$ ip neigh show | grep 254
192.168.99.254 dev ens33 lladdr 00:07:b4:00:63:01 REACHABLE
fe80::99:254 dev ens33 lladdr 00:07:b4:03:e4:01 router REACHABLE
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 15 www.netacad.com
Lab - Implement GLBP
Windows OS
C:\Users\student> arp -a
It is important that you understand that the AVG hands out MAC addresses in a round-robin fashion by
default. If you carefully control which host is doing what during this process, you should be able to
recreate these results. The other options for load balancing are host-dependent and weighted.
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 15 www.netacad.com
Lab - Implement GLBP
c. On D2, configure authentication for groups 99 and 996 using the key string Super53cret.
D2(config)# interface vlan 99
D2(config-if)# glbp 99 authentication md5 key-string Super53cret
D2(config-if)# glbp 996 authentication md5 key-string Super53cret
D2(config-if)# exit
d. As soon as the key-string was entered, GLBP started working again. Validate this by examining the
output of show glbp brief on D1 and you will see that D2 is now listed as the standby router for group 99
and that D2 is acting as AVF2.
D1# show glbp brief
Interface Grp Fwd Pri State Address Active router Standby router
Vl99 99 - 150 Active 192.168.99.254 local 192.168.99.2
Vl99 99 1 - Active 0007.b400.6301 local -
Vl99 99 2 - Listen 0007.b400.6302 192.168.99.2 -
Vl99 996 - 150 Active FE80::99:254 local FE80::D2:1
Vl99 996 1 - Active 0007.b403.e401 local -
Vl99 996 2 - Listen 0007.b403.e402 FE80::D2:1 -
Close configuration window
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 15 www.netacad.com
Lab - Implement GLBP
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 15 www.netacad.com
Lab - Implement GLBP
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 15 www.netacad.com
Lab - Implement GLBP
c. After the GLBP state change on D1, look at the ping output. The ping should be continuing without fail,
and only experiencing a few lost packets.
d. Examine the output of show glbp for group 99.
D1# show glbp
Vlan99 - Group 99
State is Active
3 state changes, last state change 00:05:48
Virtual IP address is 192.168.99.254
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.448 secs
Redirect time 600 sec, forwarder time-out 14400 sec
Authentication MD5, key-string
Preemption enabled, min delay 0 sec
Active is local
Standby is 192.168.99.2, priority 100 (expires in 8.384 sec)
Priority 150 (configured)
Weighting 80, low (configured 110), thresholds: lower 85, upper 105
Track object 7 state Down decrement 30
Load balancing: round-robin
Group members:
d8b1.9028.afdd (192.168.99.1) local
d8b1.905d.c35d (192.168.99.2) authenticated
There are 2 forwarders (0 active)
Forwarder 1
State is Listen
4 state changes, last state change 00:01:22
MAC address is 0007.b400.6301 (default)
Owner ID is d8b1.9028.afdd
Redirection enabled
Preemption enabled, min delay 30 sec
Active is 192.168.99.2 (secondary), weighting 110 (expires in 10.208 sec)
Client selection count: 15
Forwarder 2
State is Listen
8 state changes, last state change 01:09:16
MAC address is 0007.b400.6302 (learnt)
Owner ID is d8b1.905d.c35d
Redirection enabled, 598.400 sec remaining (maximum 600 sec)
Time to live: 14398.400 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 192.168.99.2 (primary), weighting 110 (expires in 8.480 sec)
Client selection count: 14
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 15 www.netacad.com
Lab - Implement GLBP
<output omitted>
The first part of the GLBP output deals with D1’s role as an AVG. The AVG role has not been affected by
the configuration we applied above. The highlighted portion shows the impact of the interface tracking
and weighting mechanism configurations. The weighting mechanism only affects the forwarder role in
GLBP. Notice that D1 is no longer the forwarder for the MAC address 0007.b400.6301. D1 shows the
forwarder roles for both MAC addresses in the listen state.
e. Issue the no shutdown command on D1 interface Loopback 0 and you should see that D1 resumes its
role as an AVF.
D1(config-if)# no shutdown
D1(config-if)#
*Jan 22 21:58:32.401: %TRACK-6-STATE: 7 interface Lo0 line-protocol Down -> Up
D1(config-if)#
*Jan 22 21:58:34.401: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0,
changed state to up
D1(config-if)#
*Jan 22 21:58:34.402: %LINK-3-UPDOWN: Interface Loopback0, changed state to up
D1(config-if)#
*Jan 22 21:59:04.050: %GLBP-6-FWDSTATECHANGE: Vlan99 Grp 99 Fwd 1 state Listen ->
Active
D1(config-if)#
*Jan 22 21:59:06.104: %GLBP-6-FWDSTATECHANGE: Vlan99 Grp 996 Fwd 1 state Listen ->
Active
D1# show glbp brief
Interface Grp Fwd Pri State Address Active router Standby router
Vl99 99 - 150 Active 192.168.99.254 local 192.168.99.2
Vl99 99 1 - Active 0007.b400.6301 local -
Vl99 99 2 - Listen 0007.b400.6302 192.168.99.2 -
Vl99 996 - 150 Active FE80::99:254 local FE80::D2:1
Vl99 996 1 - Active 0007.b403.e401 local -
Vl99 996 2 - Listen 0007.b403.e402 FE80::D2:1 -
Close configuration window
End of document
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 15 www.netacad.com