Lab Implement Copp
Lab Implement Copp
Topology
Addressing Table
Device Interface IP Address Subnet Mask
R1
G0/0/1 10.10.1.1 255.255.255.0
R2 G0/0/0 172.16.12.2 255.255.255.252
A1 VLAN 1 10.10.1.4 255.255.255.0
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Verify Initial Connectivity
Part 3: Implement a CoPP Policy on R1
Part 4: Verify the CoPP Policy on R1
Part 5: (Challenge) Further Classify Default Traffic
Background / Scenario
Control Plane Policing (CoPP) is a protection feature for the router’s control plane CPU. CoPP can granularly
permit, drop, or rate-limit traffic to or from the CPU using a Modular QoS CLI (MQC) policy. The CoPP policy
is applied to a dedicated control-plane interface which protects the CPU from unexpected extreme rates of
traffic that could impact the stability of the router.
CoPP handles all process-switched traffic, such as packets logged by an ACL or IP packets with header
(TTL) options. Other types of traffic directed to the control plane include routing updates, (OSPF, EIGRP and
BGP) as well as management traffic, including Telnet, SNMP, SSH, NTP, and HTTP etc.
The focus of this lab is using the Cisco IOS Modular QoS CLI (MQC) to implement CoPP.
Note: This lab is an exercise in configuring CoPP policies and does not necessarily reflect network best
practices.
Note: The routers used with CCNP hands-on labs are Cisco 4221 with Cisco IOS XE Release 16.9.4
(universalk9 image). The switch used in the lab is a Cisco Catalyst 2960 with Cisco IOS Release 15.2(2)
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 13 www.netacad.com
Lab - Implement CoPP
(lanbasek9 image). Other routers, switches, 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. Refer to the Router Interface Summary Table at the end of the lab for the correct interface identifiers.
Note: Make sure that the routers and switches have been erased and have no startup configurations. If you
are unsure, contact your instructor.
Required Resources
• 2 Routers (Cisco 4221 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 terminal emulation program and a packet capture utility installed)
• Console cables to configure the Cisco IOS devices via the console ports
• Ethernet cables as shown in the topology
Router R1
hostname R1
no ip domain lookup
ip domain name CCNPv8.CoPP.Lab
username admin privilege 15 algorithm-type scrypt secret cisco123
banner motd # R1, Control Plane Policing #
line con 0
exec-timeout 0 0
logging synchronous
exit
interface g0/0/1
ip address 10.10.1.1 255.255.255.0
no shutdown
exit
interface g0/0/0
ip address 172.16.12.1 255.255.255.252
no shutdown
exit
router eigrp 123
eigrp router-id 0.0.0.1
network 172.16.12.0 0.0.0.3
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 13 www.netacad.com
Lab - Implement CoPP
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 13 www.netacad.com
Lab - Implement CoPP
login local
transport input telnet ssh
interface range f0/1-24, g0/1-2
shutdown
exit
interface range f0/1
switchport mode access
no shutdown
exit
interface vlan 1
ip address 10.10.1.4 255.255.255.0
no shut
exit
ip default-gateway 10.10.1.1
crypto key generate rsa modulus 1024
end
b. Set the clock on each device to UTC time.
c. Save the running configuration to startup-config.
d. Verify ICMP connectivity between the devices.
Close configuration window
From A1, test Telnet connectivity to R1 and R2. When prompted for a username / password use admin and
cisco123. You should be successful. Troubleshoot as needed.
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 13 www.netacad.com
Lab - Implement CoPP
After the traffic has been identified, ACLs can be built for matching the identified traffic. The definition of these
ACLs is one of the most critical steps in the CoPP process. MQC uses these ACLs to define the traffic
classes. Appropriate granularity in the classification of these protocols within these ACLs allows for better
protection of the control plane CPU.
a. Configure an extended ACL using the name TELNET to identify Telnet traffic.
Open configuration window
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 13 www.netacad.com
Lab - Implement CoPP
R1(config-cmap)# exit
d. Configure a class map named CM–ICMP to match IP packets in the ACL named ICMP. These IP packets
are ICMP packets destined to the router.
R1(config)# class-map match-all CM-ICMP
R1(config-cmap)# match access-group name ICMP
R1(config-cmap)# exit
c. Associate the default class map with the traffic policy. Set the class to class-default and configure
policing at 12 kbps. Then set the conform action to transmit and the exceed action to transmit.
R1(config-pmap-c)# class class-default
R1(config-pmap-c)# police 12000 conform-action transmit exceed-action transmit
R1(config-pmap-c-police)# end
Note: The class class-default is automatically placed at the end of the policy map. By the nature of CoPP-
matching mechanisms, certain traffic types will always end up falling into the default class. This includes
Layer 2 keepalives and non-IP traffic. Because these traffic types are required to maintain the network control
plane, the class-default should never be policed with both conform and exceed actions set to drop.
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 13 www.netacad.com
Lab - Implement CoPP
Step 4: Apply the CoPP policy to the control plane virtual interface on R1.
The policy map is applied to the control plane virtual interface in the inbound direction using the service-
policy command. Only traffic destined for the router’s control plane will be affected by the CoPP policy.
a. Enter control plane configuration mode to apply a CoPP policy.
R1# conf t
R1(config)# control-plane
b. Next, attach the policy map to the control plane interface using the service-policy input command and
specify the policy map named PM–COPP on the control plane virtual interface.
R1(config-cp)# service-policy input PM-COPP
R1(config-cp)# end
Close configuration window
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 13 www.netacad.com
Lab - Implement CoPP
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 13 www.netacad.com
Lab - Implement CoPP
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 13 www.netacad.com
Lab - Implement CoPP
Username: admin
Password:
A1# exit
R1# exit
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 13 www.netacad.com
Lab - Implement CoPP
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 13 www.netacad.com
Lab - Implement CoPP
This ACL could be matched to a class map called CM-CATCH-ALL that could be policed to 50 kbps with a
confirm action of transmit and an exceed action of drop.
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 13 www.netacad.com
Lab - Implement CoPP
Implement this new class map in your policy map, repeat the verifications in Part 4, and then view the output
of the show policy-map control-plane command to see where this default traffic is classified.
Reflection Questions
1. Why is R2 able to use Telnet through R1 to A1?
Type your answers here.
2. When initially deploying CoPP, how can you prevent disruption of legitimate control plane traffic?
Type your answers here.
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
The table does not include any other type of interface, even though a specific router may contain one. An
example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be
used in Cisco IOS commands to represent the interface.
End of document
© 2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 13 www.netacad.com