Lesson Overview
Access Control Lists (ACLs) and Control Plane Policing (CoPP) are essential security mechanisms used to protect enterprise network infrastructure.
ACLs control which traffic is permitted or denied based on criteria such as source IP address, destination IP address, protocol, and transport-layer port numbers.
Control Plane Policing (CoPP) protects the network device's control plane by classifying and limiting traffic destined for the device's CPU. This helps reduce the impact of excessive management traffic, routing protocol floods, and certain denial-of-service (DoS) attacks.
Although ACLs and CoPP both help secure network devices, they perform different functions.
ACLs determine which packets are permitted or denied.
CoPP controls the rate of selected traffic reaching the control plane.
This lesson covers ACL fundamentals, standard and extended ACLs, named ACLs, wildcard masks, ACL placement, IPv4 and IPv6 filtering, CoPP architecture, Cisco IOS XE configuration, verification, troubleshooting, and real-world enterprise scenarios.
Learning Objectives
By the end of this lesson, you will be able to:
Explain the purpose and operation of ACLs.
Differentiate between standard and extended ACLs.
Understand numbered and named ACLs.
Calculate and apply wildcard masks.
Configure inbound and outbound interface ACLs.
Restrict administrative access using VTY ACLs.
Understand the implicit deny rule.
Explain the purpose of Control Plane Policing.
Differentiate between data plane, control plane, and management plane.
Configure CoPP using class maps, policy maps, and control-plane service policies.
Verify ACL and CoPP operation using Cisco show commands.
Troubleshoot common traffic filtering and policing problems.
Apply ACL and CoPP security best practices in enterprise networks.
1. What Is an Access Control List?
An Access Control List (ACL) is a collection of rules used by a router, switch, or firewall to identify and filter network traffic.
Each rule is called an Access Control Entry (ACE).
An ACL can match traffic using information such as:
Source IPv4 or IPv6 address.
Destination IPv4 or IPv6 address.
IP protocol.
TCP or UDP port number.
Other supported packet-header fields.
Depending on the feature using the ACL, matching traffic may be permitted, denied, classified, or processed according to another policy.
Example
An organization wants to allow users from the IT department to access a management server while preventing users from another department from reaching it.
An ACL can be configured to enforce this requirement.
Basic ACL Operation
1.1 How an ACL Processes a Packet
1. A packet enters or leaves an interface where an ACL is applied.
2. The router compares the packet with the first ACE (Access Control Entry).
3. If it matches, the permit or deny action is applied immediately and ACL processing stops.
4. If it does not match, the router moves to the next ACE.
5. If no ACE matches, the implicit deny at the end drops the packet.
|
Order matters: A broad permit statement placed before a specific deny can make the deny ineffective. Build ACLs from specific requirements to broader rules, then verify counters after testing. |
Important ACL Rules
ACLs are processed in sequence.
The first matching ACE is used.
More specific entries should generally appear before broader entries.
Traditional interface ACLs have an implicit deny at the end.
An ACL must be applied to a feature or interface to affect traffic.
A permit statement does not override other independent security controls.
1.2 Types of Cisco ACLs
Cisco IOS and IOS XE commonly support the following IPv4 ACL types.
ACL Type | Matches | Typical Use |
|---|---|---|
Standard ACL | Source IPv4 address | Simple source-based filtering |
Extended ACL | Source IP, destination IP, protocol, and ports | Granular traffic filtering |
Numbered ACL | Identified by a number | Traditional ACL configuration |
Named ACL | Identified by a name | Easier administration and management |
IPv6 ACL | IPv6 source/destination addresses, protocols, and ports | IPv6 traffic filtering |
A Standard ACL filters network traffic based only on the source IPv4 address. It does not examine the destination IP address, protocol, or TCP/UDP port numbers.
Key Features:
Matches only the source IPv4 address.
ACL number ranges: 1–99 and 1300–1999.
Supports
permitanddenystatements.Commonly placed close to the destination to avoid unnecessarily blocking traffic to other networks.
Includes an implicit
deny anyat the end.
Example Scenario
A network administrator wants to allow traffic from the 192.168.10.0/24 network and deny traffic from other source networks on a particular router interface.
Extended IPv4 ACL
An Extended ACL provides more granular traffic filtering than a Standard ACL. It can match packets using source and destination IP addresses, protocols, and TCP/UDP port numbers.
Key Features:
Matches source and destination IPv4 addresses.
Supports protocol filtering such as TCP, UDP, and ICMP.
Can filter applications using port numbers such as HTTP (80), HTTPS (443), and SSH (22).
ACL number ranges: 100–199 and 2000–2699.
Commonly placed close to the source to stop unwanted traffic early.
Example Scenario
A network administrator wants to allow users from 192.168.10.0/24 to access a web server at 192.168.20.10 using HTTP and HTTPS while blocking other traffic from that source network to the server.
Ex.: #access-list 101 permit tcp 192.168.10.0 0.0.0.255 host 192.168.20.10 eq 80
Named ACL
A Named ACL is identified by a descriptive name instead of a number. Named ACLs can be either Standard or Extended.
Named ACLs improve readability, simplify administration, and allow individual rules to be managed using sequence numbers.
Key Features:
Uses descriptive names instead of ACL numbers.
Supports both Standard and Extended ACL configurations.
Allows administrators to insert, modify, or delete specific entries.
Uses sequence numbers to control rule evaluation order.
Suitable for enterprise networks with complex security policies.
Example Scenario
A network administrator wants to create an ACL named WEB_ACCESS that permits HTTP and HTTPS traffic to a web server at 192.168.20.10.
R1(config)# ip access-list extended WEB_ACCESS
R1(config-ext-nacl)# 10 permit tcp 192.168.10.0 0.0.0.255 host 192.168.20.10 eq 80
1.4 Understanding Wildcard Masks
Wildcard masks identify which bits of an IPv4 address must match.
In a wildcard mask:
0means the corresponding bit must match.1means the corresponding bit is ignored.
For a contiguous subnet mask, the wildcard mask is its bitwise inverse.
Common Wildcard Masks
Subnet Mask | Prefix | Wildcard Mask |
|---|---|---|
255.255.255.0 | /24 | 0.0.0.255 |
255.255.255.128 | /25 | 0.0.0.127 |
255.255.255.192 | /26 | 0.0.0.63 |
255.255.255.224 | /27 | 0.0.0.31 |
255.255.255.240 | /28 | 0.0.0.15 |
255.255.255.252 | /30 | 0.0.0.3 |
255.255.255.255 | /32 | 0.0.0.0 |
1.5 Inbound vs Outbound ACLs
Access Control Lists (ACLs) are used on Cisco routers and Layer 3 switches to control network traffic based on predefined security rules.
An ACL can be applied to an interface in two directions:
Inbound ACL (
in): Filters packets entering an interface.Outbound ACL (
out): Filters packets leaving an interface.
The direction determines when and where the ACL evaluates packets, not whether the traffic is a request or response.
Both inbound and outbound ACLs can permit or deny traffic based on source IP address, destination IP address, protocol, and port numbers, depending on the ACL type.
Inbound ACLs
An inbound ACL examines packets as they enter a router or Layer 3 switch interface, before the normal forwarding decision.
How inbound ACLs work
Packet processing:
A packet arrives on the router's GigabitEthernet0/0 interface.
The inbound ACL checks the packet against…
