Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

ACL · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam

Quick explanation

Access control lists match packets in sequence and permit or deny them. Standard IPv4 ACLs match source addresses; extended IPv4 and IPv6 ACLs can match protocol, addresses and ports.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • Determine required traffic, direction and interface.
  • Remember the implicit deny and add all required permits before applying an ACL.
Named standard IPv4 ACL Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip access-list standard [ACL-NAME]
 permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
 deny any
 exit
interface [INTERFACE]
 ip access-group [ACL-NAME] [DIRECTION]
 exit
end
Command parameters
[ACL-NAME]
Access control list name.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
Numbered standard IPv4 ACL Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
access-list [STANDARD-ACL-NUMBER] permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
access-list [STANDARD-ACL-NUMBER] deny any
interface [INTERFACE]
 ip access-group [STANDARD-ACL-NUMBER] [DIRECTION]
 exit
end
Command parameters
[STANDARD-ACL-NUMBER]
Valid numbered standard IPv4 ACL ID.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
Named extended IPv4 ACL Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip access-list extended [ACL-NAME]
 permit tcp [SOURCE-NETWORK] [SOURCE-WILDCARD] host [DESTINATION-IP] eq [PORT]
 deny ip any any
 exit
interface [INTERFACE]
 ip access-group [ACL-NAME] [DIRECTION]
 exit
end
Command parameters
[ACL-NAME]
Access control list name.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[DESTINATION-IP]
IPv4 destination or probe target.
[PORT]
Transport-layer port number or supported service keyword.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
Numbered extended IPv4 ACL Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
access-list [EXTENDED-ACL-NUMBER] permit tcp [SOURCE-NETWORK] [SOURCE-WILDCARD] host [DESTINATION-IP] eq [PORT]
access-list [EXTENDED-ACL-NUMBER] deny ip any any
interface [INTERFACE]
 ip access-group [EXTENDED-ACL-NUMBER] [DIRECTION]
 exit
end
Command parameters
[EXTENDED-ACL-NUMBER]
Valid numbered extended IPv4 ACL ID.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[DESTINATION-IP]
IPv4 destination or probe target.
[PORT]
Transport-layer port number or supported service keyword.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
IPv6 ACL Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Allow required IPv6 control traffic such as router advertisements, solicitations and ICMPv6 error messages as appropriate before the final deny.
enable
configure terminal
ipv6 access-list [ACL-NAME]
 permit tcp [SOURCE-IPV6-PREFIX]/[PREFIX-LENGTH] host [DESTINATION-IPV6] eq [PORT]
 permit icmp any any nd-ns
 permit icmp any any nd-na
 deny ipv6 any any
 exit
interface [INTERFACE]
 ipv6 traffic-filter [ACL-NAME] [DIRECTION]
 exit
end
Command parameters
[ACL-NAME]
Access control list name.
[SOURCE-IPV6-PREFIX]
Source IPv6 network without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[DESTINATION-IPV6]
IPv6 destination address.
[PORT]
Transport-layer port number or supported service keyword.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
Restrict IPv4 management sources Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip access-list standard [MGMT-ACL]
 permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
 exit
line vty 0 [VTY-LAST]
 access-class [MGMT-ACL] in
 exit
end
Command parameters
[MGMT-ACL]
Management ACL name.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.

Show / Verify

Primary verification Section link
show ip access-lists
Example output
Standard IP access list MGMT
    10 permit 192.0.2.0, wildcard bits 0.0.0.255 (5 matches)

Check sequence, match conditions and counters.

Detailed verification Section link
show ip interface [INTERFACE]
Example output
Inbound access list is EDGE-IN

Confirm actual direction and binding.

Detailed verification Section link
show ipv6 access-list
Example output
IPv6 access list EDGE-V6
    permit tcp ...

Check IPv6 entries and sequence.

Detailed verification Section link
show ipv6 interface [INTERFACE]
Example output
Inbound access list EDGE-V6

Inspect IPv6 ACL attachment where displayed.

Connectivity verification

IPv4 reachability

Check success rate; use source or VRF context if required.

ping [DESTINATION-IP]
IPv6 reachability

Check IPv6 path and return routing.

ping ipv6 [DESTINATION-IPV6]
Source-specific IPv4

Verify from the intended source network.

ping [DESTINATION-IP] source [SOURCE-IP]

Common mistakes

  • Implicit deny blocks necessary traffic.
  • Wrong direction or interface.
  • Incorrect wildcard mask.
  • Explicit IPv6 deny blocks required Neighbor Discovery/control traffic.
  • Locking out management access.

Quick reference and default values

IPv4 prefix reference
PrefixSubnet maskWildcard
/00.0.0.0255.255.255.255
/1128.0.0.0127.255.255.255
/2192.0.0.063.255.255.255
/3224.0.0.031.255.255.255
/4240.0.0.015.255.255.255
/5248.0.0.07.255.255.255
/6252.0.0.03.255.255.255
/7254.0.0.01.255.255.255
/8255.0.0.00.255.255.255
/9255.128.0.00.127.255.255
/10255.192.0.00.63.255.255
/11255.224.0.00.31.255.255
/12255.240.0.00.15.255.255
/13255.248.0.00.7.255.255
/14255.252.0.00.3.255.255
/15255.254.0.00.1.255.255
/16255.255.0.00.0.255.255
/17255.255.128.00.0.127.255
/18255.255.192.00.0.63.255
/19255.255.224.00.0.31.255
/20255.255.240.00.0.15.255
/21255.255.248.00.0.7.255
/22255.255.252.00.0.3.255
/23255.255.254.00.0.1.255
/24255.255.255.00.0.0.255
/25255.255.255.1280.0.0.127
/26255.255.255.1920.0.0.63
/27255.255.255.2240.0.0.31
/28255.255.255.2400.0.0.15
/29255.255.255.2480.0.0.7
/30255.255.255.2520.0.0.3
/31255.255.255.2540.0.0.1
/32255.255.255.2550.0.0.0

Configuration comparison

Standard vs extended vs IPv6 ACL — Standard IPv4 matches source; extended IPv4 and IPv6 can match protocol and destination as well.

Remove configuration — separate, potentially disruptive actions

Detach IPv4 ACL

Stops this interface filter; may allow traffic previously denied.

enable
configure terminal
interface [INTERFACE]
 no ip access-group [ACL-NAME] [DIRECTION]
 exit
end

Detach IPv6 ACL

Stops this IPv6 interface filter.

enable
configure terminal
interface [INTERFACE]
 no ipv6 traffic-filter [ACL-NAME] [DIRECTION]
 exit
end

Delete named IPv4 ACL

Remove or review all bindings first; changes policy.

enable
configure terminal
no ip access-list extended [ACL-NAME]
end

Related reference

Networking technical reference · Interface types · Connectivity verification

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?