Troubleshooting notes · Security
IPv6 ACL with deny ipv6 any any breaks everything: Neighbor Discovery
After adding an explicit deny at the end of an IPv6 ACL, nothing works across the link. Why the explicit deny also blocks Neighbor Discovery, and how to fix it. Real output from Cisco IOS XE 17.18.
The symptom
An IPv6 filter ends with an explicit deny ipv6 any any log, a habit from IPv4. Afterwards nothing works across the link, not even the traffic the ACL permits, and show ipv6 neighbors for that interface is empty. Thanks to log, the router tells you what it drops:
%IPV6_ACL-6-ACCESSLOGDP: list FROM-BRANCH/30 denied icmpv6 FE80::A8BB:CCFF:FE00:C00 -> FF02::1 (134/0), 2 packets
%IPV6_ACL-6-ACCESSLOGDP: list FROM-BRANCH/30 denied icmpv6 FE80::A8BB:CCFF:FE00:C00 -> FE80::A8BB:CCFF:FE00:B20 (135/0), 3 packets
%IPV6_ACL-6-ACCESSLOGDP: list FROM-BRANCH/30 denied icmpv6 FE80::A8BB:CCFF:FE00:C00 -> FE80::A8BB:CCFF:FE00:B20 (136/0), 6 packets
ICMPv6 types 134 (router advertisement), 135 (neighbor solicitation) and 136 (neighbor advertisement) are Neighbor Discovery, IPv6's replacement for ARP.
Why it happens
Every IPv6 ACL ends with implicit entries that permit Neighbor Discovery, followed by the implicit deny:
permit icmp any any nd-na
permit icmp any any nd-ns
deny ipv6 any any
An explicit deny at the end is checked before those implicit lines, so ND is dropped. The routers can't resolve each other's link-layer addresses, and no traffic gets through, permitted or not.
The fix
Permit ND (or ICMPv6 in general, if your policy allows it) before the final deny:
R2(config)# ipv6 access-list FROM-BRANCH
R2(config-ipv6-acl)# no deny icmp any any echo-request
R2(config-ipv6-acl)# no deny ipv6 any any log
R2(config-ipv6-acl)# permit icmp any any
R2(config-ipv6-acl)# deny ipv6 any any log
permit icmp any any covers ND, because ND messages are ICMPv6. For a stricter policy, permit only nd-na and nd-ns (and router advertisements where they're used).
Check it
show ipv6 neighbors should list the neighbour again, and the permitted traffic should flow.
Practise this fault
This fault is in ENARSI Lab 34 of ENARSI Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.