Use it when hosts receive a wrong prefix or default router, or when protecting IPv6 access VLANs from rogue RAs.
IPv6 RA Guard
IPv6 RA Guard filters Router Advertisements on access ports so only legitimate routers can announce prefixes and default gateways, preventing rogue-router attacks.
1. RA Guard blocks rogue router advertisements on access ports.
2. Attach with device-role host.
3. Trusted router ports.
4. Prevents MITM via RAs.
5. Check drops after attaching.
RA on host port → RA Guard → drop
Context & applicabilityCommon mistakes · platform/version boundaries
- Policy attached to router-facing uplinks, blocking real RAs.
- Fragmented RAs or extension headers bypassing older implementations — update software.
- Wireless and virtual switches not covered (enable RA filtering on WLC and hypervisor switches too).
Operational reference
Fast context before you go deeper.
show ipv6 nd raguard policyShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification & troubleshooting Narrow the fault
1. Verify policy content/device role.
2. Verify attachment and direction on each access/trunk boundary.
3. Send a controlled rogue RA and confirm drops.
4. Confirm legitimate RAs pass.
5. Verify host default route/prefix stability.
- Trust only router-facing ports; host-facing ports should not originate valid RAs
- Define policy and attachment separately
- Extension headers and fragmented ND handling depend on platform capability
- RA Guard complements DHCPv6 Guard, ND inspection and source binding; it does not replace them.
show ipv6 nd raguard policy— policiesshow ipv6 snooping counters— RA drops
ReferenceWhy it matters1 section · depth on demand
When to use it
Use it to prevent rogue or accidental IPv6 routers from changing host prefixes, flags or default-router selection.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
RA Guard drops IPv6 Router Advertisements from ports that should not send them
A rogue Router Advertisement (RA) can make every host on a VLAN use an attacker or a misconfigured device as its default gateway. RA Guard filters RAs on the switch. The Catalyst 9300 guide states that in host mode, all RA and router redirect messages are disallowed on the port.
C9300(config)# ipv6 nd raguard policy HOSTS
C9300(config-nd-raguard)# device-role host
C9300(config)# ipv6 nd raguard policy ROUTERS
C9300(config-nd-raguard)# device-role router
C9300(config-nd-raguard)# hop-limit minimum 64
C9300(config-nd-raguard)# match ra prefix-list ALLOWED-PREFIXES
C9300(config-nd-raguard)# router-preference maximum medium
C9300(config)# vlan configuration 10,20
C9300(config-vlan-config)# ipv6 nd raguard attach-policy HOSTS
C9300(config)# interface Te1/1/1
C9300(config-if)# ipv6 nd raguard attach-policy ROUTERS
C9300# show ipv6 nd raguard policy ROUTERS
Policy options (documented)
| Option | Effect |
|---|---|
device-role host \| router \| monitor \| switch | Role of the attached device; default host |
hop-limit minimum/maximum | Reject RAs outside the expected hop limit |
managed-config-flag / other-config-flag | Enforce the expected DHCPv6 flags |
router-preference maximum | Cap the preference an RA may announce |
match ra prefix-list / match ipv6 access-list | Allow only expected prefixes or sources |
trusted-port | No further checks on that port |
Related FHS features
The guide lists RA Guard among the IPv6 First Hop Security features, with IPv6 snooping, ND inspection, DHCPv6 Guard, Source Guard and others. DHCPv6 Guard (ipv6 dhcp guard policy, device-role client|server) does the same job for rogue DHCPv6 servers.
Limits to remember
- RA Guard only helps on switches where hosts connect. RAs arriving through tunnels or unmanaged switches bypass it.
- Hosts may still auto-configure from RAs that pass the router port. Validate RA content there with hop-limit and prefix matches, not only the port role.
Documented example, not captured output.
Quick reference
IPv6 RA Guard blocks Router Advertisements from ports where no router should exist, preventing rogue routers (malicious or misconfigured) from becoming default gateways or handing out prefixes.
ipv6 nd raguard policy HOSTS
device-role host
ipv6 nd raguard policy UPLINK
device-role router
interface range Gi1/0/1 - 46
ipv6 nd raguard attach-policy HOSTS
interface Te1/1/1
ipv6 nd raguard attach-policy UPLINK
RA Guard can be bypassed with extension-header tricks on old implementations; combine with ND inspection/SAVI and block fragmented RAs (RFC 7113).
ReferenceConfiguration & state1 section · depth on demand
Configuration
ipv6 nd raguard policy HOSTS
device-role host
interface range GigabitEthernet1/0/1 - 46
ipv6 nd raguard attach-policy HOSTS
Documented example, not captured output. Uplinks to real routers get a policy with device-role router (or no policy). Check drops with show ipv6 nd raguard policy HOSTS and the device-tracking counters. Some RA Guard implementations can be bypassed with extension headers; newer releases block fragmented RAs.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → First Hop Security / IPv6 RA Guard → IPv6 RA Guard. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%