First Hop Security / IPv6 RA Guard
Cheat sheet · https://pcornel.dk/topic.php?topic=2625
Answer
IPv6 First Hop Security protects the link-local IPv6 control plane on access switches. RA Guard drops router advertisements from ports where no router should be, so a rogue or misconfigured device cannot become hosts' default router or hand out prefixes.
Remember
Create a policy with ipv6 nd raguard policy <name> and device-role host, attach it to host ports (ipv6 nd raguard attach-policy <name>), and give the uplink towards the real router role router (or no policy). Some RAs hidden in fragmented or extension-header packets can bypass older implementations (RFC 7113) — combine with DHCPv6 Guard and ND inspection, and check platform support.
First checks
show ipv6 nd raguard policy <name>— device role and the ports it is attached to.show ipv6 snooping features— First Hop Security features active per port.show ipv6 snooping counters interface <if>— RAs and other ND messages dropped (name varies by release).show ipv6 routers(on a router) or the host's default router list — only the legitimate router.
Commands
show ipv6 nd raguard policy- Local state
show ipv6 interface brief
Verify in this order
host-facing ports carry an RA Guard policy (device-role host) → RA arrives on such a port → dropped, counter increases → RA from the router-facing port passes → hosts keep the legitimate default router
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2625