Updated October 2026: I re-tested RA Guard and DHCPv6 Guard in my home lab on IOL-L2 17.18.2, including the wrong-uplink fault. IOSv-L2 rejected RA Guard interface attachment in this run. New evidence is in the section before the FAQ.
In IPv4, a rogue DHCP server is a nuisance you can contain with DHCP snooping. In IPv6, the equivalent threat is worse and easier to trigger, because IPv6 hosts configure themselves from Router Advertisements, and any device on the segment can send one. A single misconfigured Windows laptop with connection sharing enabled, or a deliberate attacker, can broadcast an RA and reconfigure the default gateway for every host on the VLAN. This is not exotic, and it can happen entirely by accident.
IPv6 First-Hop Security (FHS) is the switch-side toolkit that stops it. This article configures RA Guard and DHCPv6 Guard and tests the block by sending 15 rogue RAs and counting how many reach the victim (zero on IOL-L2 17.18.2; IOSv-L2 would not attach the RA Guard policy in my run). It extends the Infrastructure Security cluster guide and builds on the IPv6 cluster guide.
Why IPv6 Is More Exposed
Recall from how IPv6 addressing works: the router advertises a prefix in an RA, and hosts autoconfigure from it. The RA also carries the default gateway. Critically, the RA is unauthenticated ND traffic, and the host has no way to tell a legitimate RA from a forged one. It believes whatever it hears.
So the attack is trivial:
The Principle: RAs Only Come From Router Ports
The insight behind RA Guard is that on any real network, you know which ports connect to routers and which connect to hosts. A legitimate RA only ever arrives on a router-facing port. An RA arriving on a host-facing access port is, by definition, either an attack or a misconfiguration. RA Guard enforces exactly that: it inspects ND traffic and drops RAs on ports designated as host ports.
You declare each port's role with a policy:
SW1(config)# ipv6 nd raguard policy HOST-PORTS
SW1(config-nd-raguard)# device-role host
!
SW1(config)# ipv6 dhcp guard policy CLIENT-PORTS
!
SW1(config)# interface Ethernet0/1
SW1(config-if)# ipv6 nd raguard attach-policy HOST-PORTS
SW1(config-if)# ipv6 dhcp guard attach-policy CLIENT-PORTS
!
SW1(config)# interface Ethernet0/2
SW1(config-if)# ipv6 nd raguard attach-policy HOST-PORTS
SW1(config-if)# ipv6 dhcp guard attach-policy CLIENT-PORTSdevice-role host tells RA Guard that this port faces hosts, so Router Advertisements entering here should be dropped. DHCPv6 server messages are handled by the separate CLIENT-PORTS DHCPv6 Guard policy, not by the RA Guard role alone. Leave the legitimate router-facing uplink without a host-role RA Guard policy (this rerun used an unguarded uplink; an explicit router-role policy is another design option).
SW1#show ipv6 nd raguard policy HOST-PORTS
RA guard policy HOST-PORTS configuration:
device-role host
Policy HOST-PORTS is applied on the following targets:
Target Type Policy Feature Target range
Et0/1 PORT HOST-PORTS RA guard vlan all
Et0/2 PORT HOST-PORTS RA guard vlan allDHCPv6 Guard
The same idea, applied to DHCPv6 server messages. A DHCPv6 server reply (ADVERTISE, REPLY) should only come from a port where a legitimate server or relay lives. DHCPv6 Guard drops server-role DHCPv6 messages on host ports, which is meant to block the rogue-DNS attack. In my re-test I verified the wire-level drop of crafted Advertise packets on IOL-L2, not a change to a client's DNS settings.
The policy above (CLIENT-PORTS attached to the host ports) means "clients live here, so anything pretending to be a DHCPv6 server on this port is dropped." A more elaborate policy can also verify the server's address against an allow-list and check the advertised preference, but at minimum, the role distinction blocks the obvious rogue. That held on IOL-L2 in my lab; on IOSv-L2 the same policy let all 15 Advertise packets through.
Proof: Send Rogue RAs, Watch Them Vanish
Two hosts sit behind guarded access ports: H1 on Et0/1 and H2 on Et0/2. The legitimate router R1 is behind the unguarded uplink. H2 plays attacker, sending 15 rogue RAs that advertise a bogus prefix (2001:dead:beef::/64) and try to install itself as a gateway. The RA is crafted with a raw ICMPv6 socket, no special tools needed (it does need root or CAP_NET_RAW):
sent 15 rogue RAs advertising 2001:dead:beef::/64 from fe80::45:2IOS accepts debug ipv6 snooping raguard, but an earlier version of this article showed an "RS received by RA guard" line as if it proved a drop. RS is a Router Solicitation, not a Router Advertisement, and it is not a drop record. My re-test did not keep per-packet debug lines, so the proof is the packet captures: H2's own capture shows all 15 rogue RAs leaving the attacker, and H1's capture shows 0 of 15 arriving.
debug ipv6 snooping raguard
Device-tracking - RA guard debugging is onBut the real proof is on the victim. Here is H1, behind the other guarded port, after the 15 rogue RAs (ip -6 addr show dev eth1 and ip -6 route show dev eth1):
inet6 2001:db8:45:0:a8c1:abff:fee7:15f4/64 scope global dynamic mngtmpaddr proto kernel_ra
inet6 fe80::a8c1:abff:fee7:15f4/64 scope link proto kernel_ll
2001:db8:45::/64 proto kernel metric 256 expires 596sec pref medium
fe80::/64 proto kernel metric 256 pref medium
default via fe80::45:1 proto ra metric 1024 expires 1796sec hoplimit 64 pref mediumRead that carefully, because it is the entire feature in two commands. H1 configured an address from 2001:db8:45::/64, the legitimate prefix advertised by R1 (note proto kernel_ra, meaning "I learned this from a Router Advertisement"), and its default route points at R1's fe80::45:1. The rogue prefix 2001:dead:beef:: is nowhere. Not in an address, not in a route. H2 sent fifteen rogue RAs and H1's capture counted zero, because RA Guard on IOL-L2 17.18.2 dropped them at H2's access port before they could reach the rest of the VLAN.
The legitimate RA from R1 (arriving on the unguarded uplink) passed through untouched. The rogue RA from H2 (arriving on a guarded host port) was silently discarded. That is the intended outcome, shown end to end on IOL-L2. It did not hold on IOSv-L2, which rejected the attach-policy command in my run.
FHS Is a Family
RA Guard and DHCPv6 Guard are the two you deploy first, but IPv6 First-Hop Security is a suite, and it depends on a shared foundation called device tracking (a binding table of which IPv6 address lives on which port and MAC). The companion piece, ND Inspection, Snooping, and Source Guard, covers the rest: building that binding table and using it to stop address spoofing and ND cache poisoning.
Re-tested in my home lab (October 2026)
I rebuilt the proof in my home lab in Containerlab. SW1 was Cisco IOL-L2 17.18.2, R1 was IOL 17.18.2 advertising 2001:db8:45::/64 from fe80::45:1, and H1/H2 were Alpine hosts on Ethernet0/1 and Ethernet0/2. An earlier pass on IOSv-L2 (L2-20200929) accepted the named RA policy but rejected ipv6 nd raguard attach-policy on the access ports, so that image could not protect the VLAN in this run. Prefer IOL-L2 here, and verify attachment plus packet filtering on your platform.

Policy attachment that actually stuck
On IOL-L2 the host-role policy attached to both access ports. The uplink to R1 (Ethernet0/3) was left unguarded:
RA guard policy HOST-PORTS configuration:
device-role host
Et0/1 PORT HOST-PORTS RA guard vlan all
Et0/2 PORT HOST-PORTS RA guard vlan allUnguarded control, then the drop
With no guard, H2's 15 rogue RAs made H1 install 2001:dead:beef::/64 and a high-preference default via fe80::45:2:
inet6 2001:dead:beef:0:a8c1:abff:fee7:15f4/64 scope global dynamic mngtmpaddr proto kernel_ra
2001:dead:beef::/64 proto kernel metric 256 expires 596sec pref medium
default via fe80::45:2 proto ra metric 1024 expires 1796sec hoplimit 64 pref highAfter attaching HOST-PORTS on the access ports and resetting H1, the same 15 rogue RAs left only the legitimate prefix and R1 default. H1 installed no dead:beef address or fe80::45:2 default:
sent 15 rogue RAs advertising 2001:dead:beef::/64 from fe80::45:2
inet6 2001:db8:45:0:a8c1:abff:fee7:15f4/64 scope global dynamic mngtmpaddr proto kernel_ra
default via fe80::45:1 proto ra metric 1024 expires 1796sec hoplimit 64 pref mediumPacket counts (rogue RA | legitimate R1 RA | DHCPv6 Advertise) from the endpoint captures:
iol-unguarded-H1.pcap | 15 | 3 | 0
iol-guarded-H2.pcap | 15 | 3 | 0
iol-guarded-H1.pcap | 0 | 3 | 0
iol-guarded-R1.pcap | 0 | 3 | 0Break it: host policy on the router uplink
With the access-port policies still in place, attaching HOST-PORTS to Ethernet0/3 (the R1 uplink) blocked legitimate RAs too. After clearing H1's IPv6 data state, R1 still generated RAs but H1 saw none and kept only its link-local on eth1:
iol-wrong-uplink-R1.pcap | 0 | 4 | 0
iol-wrong-uplink-H1.pcap | 0 | 0 | 0Removing only that incorrect uplink attachment restored R1's prefix and default. The 15 rogue RAs stayed blocked on the access ports:
inet6 2001:db8:45:0:a8c1:abff:fee7:15f4/64 scope global dynamic mngtmpaddr proto kernel_ra
default via fe80::45:1 proto ra metric 1024 expires 1795sec hoplimit 64 pref mediumiol-fixed-H1.pcap | 0 | 3 | 0DHCPv6 Guard wire check
A default client-role DHCPv6 Guard policy on both host ports dropped crafted Advertise packets on IOL-L2 (15/15 in the control capture at H1, 0/15 when guarded). IOSv accepted the policy commands but still forwarded all 15 Advertise packets in this run. This is a server-message wire test, not a full rogue-DNS client demonstration.
iol-dhcp-control-H1.pcap | 0 | 0 | 15
iol-dhcp-guarded-H2.pcap | 0 | 0 | 15
iol-dhcp-guarded-H1.pcap | 0 | 0 | 0FAQ
Which ports get the policy?
Host-facing access ports get device-role host. Router-facing uplinks and trunks to other switches get no RA Guard, or an explicit device-role router policy (I left my uplink unguarded and did not test a router-role policy). Never put a host policy on a real router port. In my re-test that dropped R1's legitimate RAs, and H1 was left with only its link-local address.
Does RA Guard need SEND or RA authentication?
No. RA Guard is a stateless port-role filter, which is why it is deployable in practice. RFC 3971 SEND provides cryptographic RA authentication but is almost never deployed because hosts and infrastructure rarely support it. RA Guard is the pragmatic answer.
Can an attacker fragment the RA to evade RA Guard?
Historically yes, fragmented RAs were an evasion. RFC 6980 forbids fragmented ND, and newer RA Guard implementations are designed to handle fragments, but I did not test fragmented RAs in my lab, so treat that part as untested. Keep switch software current.
Is this the same as DHCP snooping?
Conceptually parallel, but IPv6-specific. DHCP snooping protects IPv4 DHCP; DHCPv6 Guard protects IPv6 DHCP; RA Guard has no IPv4 equivalent because IPv4 has no Router Advertisements.
Key Takeaways
- IPv6 hosts trust Router Advertisements blindly, and any device can send one. A rogue RA hijacks the gateway; an accidental one (host with sharing on) does it by mistake.
- RA Guard drops RAs on ports declared
device-role host. Legitimate RAs only arrive on router-facing ports. - DHCPv6 Guard does the same for rogue DHCPv6 server messages. In my lab it dropped 15 of 15 crafted Advertise packets on IOL-L2; I did not test the client DNS outcome.
- The lab proved it end to end on IOL-L2 17.18.2: H2 sent 15 rogue RAs for 2001:dead:beef::/64, and victim H1 learned only the legitimate 2001:db8:45::/64 prefix. Packet counts: H2 saw 15 rogue RAs, H1 and R1 saw zero.
- Apply host policies to access ports only. A host policy on a router uplink breaks IPv6 (I reproduced this in my lab).
- RA Guard and DHCPv6 Guard are the first two of the FHS suite; ND Inspection and Source Guard complete it.
Next: ND Inspection, Snooping, and Source Guard, or the Infrastructure Security cluster guide.