Configuring IPv6 ACLs: A CCNA Guide
IPv6 ACLs are exclusively named (not numbered), function similarly to IPv4 extended ACLs, and contain implicit rules to allow Neighbor Discovery protocol traffic.
Key Differences from IPv4 ACLs
IPv6 ACLs operate similarly to IPv4 Extended ACLs, filtering by source/destination IPv6 addresses and Layer 4 ports. However, there are notable differences:
* IPv6 ACLs do not use wildcard masks; they use standard IPv6 prefix lengths (e.g., `/64`). * There are no standard or numbered IPv6 ACLs; **all IPv6 ACLs are named**. * They are applied to interfaces using `ipv6 traffic-filter` instead of `ip access-group`.
Implicit Rules in IPv6 ACLs
Like IPv4, IPv6 ACLs have an implicit `deny ipv6 any any` at the end. However, before the implicit deny, IPv6 ACLs have two built-in implicit `permit` statements essential for IPv6 functionality:
* `permit icmp any any nd-na` (Neighbor Advertisement) * `permit icmp any any nd-ns` (Neighbor Solicitation) These ensure that IPv6 Neighbor Discovery (the replacement for ARP) continues to work.
Configuration Syntax
To create and apply an IPv6 ACL, use the following syntax:
* `Router(config)# ipv6 access-list BLOCK_HTTP` * `Router(config-ipv6-acl)# deny tcp any host 2001:DB8:1::10 eq 80` * `Router(config-ipv6-acl)# permit ipv6 any any` * `Router(config)# interface GigabitEthernet0/0` * `Router(config-if)# ipv6 traffic-filter BLOCK_HTTP in`
❓ Frequently Asked Questions
Do IPv6 ACLs use wildcard masks?
No, IPv6 ACLs use prefix lengths (like /64) to define subnets instead of wildcard masks.
What command applies an IPv6 ACL to an interface?
The command 'ipv6 traffic-filter <name> [in | out]' is used to apply IPv6 ACLs.
Why does IPv6 have extra implicit permit rules?
IPv6 includes implicit permits for ICMPv6 ND-NA and ND-NS to ensure that Neighbor Discovery functions, which is crucial for IPv6 operation.