Lab Implement VRRP
Lab Implement VRRP
Topology
Addressing Table
Device Interface IP Address Default Gateway
D1 Lo 0 192.168.1.1/24 N/A
D1 Lo 0
2001:db8:acad:1000::1/64 N/A
D1
VLAN 11 10.11.0.1/24 N/A
D1 VLAN 11
2001:db8:acad:11::1/64 N/A
D1
VLAN 21 10.21.0.1/24 N/A
D1 VLAN 21
2001:db8:acad:21::1/64 N/A
D2 Lo 0 192.168.1.1/24 N/A
D2 Lo 0
2001:db8:acad:1000::1/64 N/A
D2
VLAN 11 10.11.0.2/24 N/A
D2 VLAN 11
2001:db8:acad:11::1/64 N/A
D2
VLAN 21 10.21.0.2/24 N/A
D2 VLAN 21
2001:db8:acad:21::2/64 N/A
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 12 www.netacad.com
Lab - Implement VRRP
PC1 NIC
IPv6 SLAAC
PC2 NIC 10.21.0.50/24 10.21.0.254
PC2 NIC
IPv6 SLAAC
Objectives
Part 1: Build the Network and Configure Basic Device Settings and Interface Addressing
Part 2: Configure and Observe VRRP for IPv4 and IPv6
Part 3: Configure and Observe VRRP Object Tracking
Background / Scenario
The Virtual Router Redundancy Protocol (VRRP) is a standards-based alternative to HSRP and is defined in
RFC 3768 (VRRP) and RFC 5798 (VRRPv3). The two technologies are similar but not compatible. HSRP
elects an active and standby router to participate in the HSRP process, while VRRP elects a Master and
Backup. Although referred to by different names, the operational concepts of the VRRP master and backup
are similar to the HSRP active and standby respectively.
Both HSRP and VRRP operation requires the use of a virtual router IP address, but VRRP can use an
address assigned to an interface on the device. In this case, the device automatically assumes the master
role and ignores the priority value in its role election process. Recall that preemption in HSRP must be
explicitly configured. VRRP uses preempt by default.
Note: This lab is an exercise in deploying and verifying VRRP 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.
Note: The default Switch Database Manager (SDM) template on a Catalyst 3650 running IOS XE supports
dual-stacked operations and requires no additional configuration for our purposes.
If you are using a device, such as Cisco 2960, running Cisco IOS, check the SDM template with the privileged
EXEC command show sdm prefer.
S1# show sdm prefer
The default bias template used by the Switch Database Manager (SDM) does not provide IPv6 address
capabilities. Verify that SDM is using either the dual-ipv4-and-ipv6 template or the lanbase-routing
template. The new template will be used after reboot even if the configuration is not saved.
Use the following commands to assign the dual-ipv4-and-ipv6 template as the default SDM template.
S1# configure terminal
S1(config)# sdm prefer dual-ipv4-and-ipv6 default
S1(config)# end
S1# reload
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 12 www.netacad.com
Lab - Implement VRRP
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
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 VRRP #
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
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 12 www.netacad.com
Lab - Implement VRRP
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 12 www.netacad.com
Lab - Implement VRRP
login
exit
interface range g1/0/1-24, g1/1/1-4, g0/0
shutdown
exit
interface range g1/0/1-6
!switchport trunk encapsulation dot1q
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 11
name FIRST_VLAN
exit
vlan 21
name SECOND_VLAN
exit
interface vlan 11
ip address 10.11.0.2 255.255.255.0
ipv6 address fe80::d2:1 link-local
ipv6 address 2001:db8:acad:11::2/64
no shutdown
exit
interface vlan 21
ip address 10.21.0.2 255.255.255.0
ipv6 address fe80::d2:2 link-local
ipv6 address 2001:db8:acad:21::2/64
no shutdown
exit
interface loopback 0
ip address 192.168.1.1 255.255.255.0
ipv6 address fe80::d2:3 link-local
ipv6 address 2001:db8:acad:1000::1/64
no shutdown
exit
Switch A1
hostname A1
banner motd # A1, Implement VRRP #
line con 0
exec-timeout 0 0
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 12 www.netacad.com
Lab - Implement VRRP
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 11
name FIRST_VLAN
exit
vlan 21
name SECOND_VLAN
exit
interface f0/23
switchport mode access
switchport access vlan 11
spanning-tree portfast
no shutdown
exit
interface f0/24
switchport mode access
switchport access vlan 21
spanning-tree portfast
no shutdown
exit
interface vlan 11
ip address 10.11.0.3 255.255.255.0
ipv6 address fe80::a1:1 link-local
ipv6 address 2001:db8:acad:11::3/64
no shutdown
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 12 www.netacad.com
Lab - Implement VRRP
exit
ip default-gateway 10.11.0.254
b. Set the clock on each switch to UTC time.
c. Save the running configuration to startup-config.
Close configuration window
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 12 www.netacad.com
Lab - Implement VRRP
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 12 www.netacad.com
Lab - Implement VRRP
b. You can also use the show vrrp brief command to get a less verbose status.
D1# show vrrp brief
Interface Grp A-F Pri Time Own Pre State Master addr/Group addr
Vl11 11 IPv4 150 0 N Y MASTER 10.11.0.1(local) 10.11.0.254
Vl11 116 IPv6 150 0 N Y MASTER FE80::D1:1(local) FE80::11:1
Vl21 21 IPv4 100 0 N Y MASTER 10.21.0.1(local) 10.21.0.254
Vl21 216 IPv6 100 0 N Y MASTER FE80::D1:2(local) FE80::21:1
c. Interface Loopback0 on D1 and D2 represent a destination on the internet. From PC1 and PC2, ping the
IPv4 and IPv6 address of interface Loopack0 on D1. A successful ping verifies that the gateway router is
working.
Close configuration window
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 12 www.netacad.com
Lab - Implement VRRP
D2(config-if-vrrp)# exit
e. Configure vrrp group 216 on interface vlan 21 with a primary vrrp IP address of fe80::21:1 and a priority of
150.
D2(config-if)# vrrp 216 address-family ipv6
D2(config-if-vrrp)# address fe80::21:1 primary
D2(config-if-vrrp)# priority 150
D2(config-if-vrrp)# exit
b. Interface Loopback0 on D1 and D2 represent a destination on the internet. From PC1 and PC2, ping the
IPv4 and IPv6 address of interface Loopack0 on D1. A successful ping verifies that the gateway router is
working.
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 12 www.netacad.com
Lab - Implement VRRP
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 12 www.netacad.com
Lab - Implement VRRP
b. Examine the priority information in detail in the output of the show vrrp command.
D1# show vrrp
© 2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 12 www.netacad.com