Free tech learning for everyone, from basics to pro

Routing & SwitchingNetworking SecurityAdvanced

IPv6 first hop security: RA Guard, DHCPv6 Guard and IPv6 snooping on Cisco switches

In short: IPv6 hosts trust any Router Advertisement they hear, so one misconfigured PC or attacker can become everyone's gateway. IPv6 first hop security adds switch features that only allow RAs and DHCPv6 replies from trusted ports, and build a binding table of addresses to block spoofing. They are the IPv6 equivalents of DHCP snooping and Dynamic ARP Inspection.

Why IPv4 protections are not enough

DHCP snooping and Dynamic ARP Inspection protect IPv4, but they do nothing for IPv6. IPv6 uses Neighbour Discovery (ND) instead of ARP and Router Advertisements instead of a DHCP-supplied gateway. Even on a network where you never "turned on IPv6", Windows, macOS and Linux all have IPv6 enabled and will happily accept an RA. A laptop running connection sharing, or an attacker with a single command, can advertise itself as the default router and pull traffic through it.

IPv6 first hop security featuresBinding tablewho owns which addressRA Guardblock rogue routersDHCPv6 Guardblock rogue serversND Inspectioncheck NS/NA messagesSource Guarddrop spoofed sourcesDestination Guardlimit ND resolutionSnoopingbuild the table
Figure 1. Most features rely on a binding table that the switch builds by watching ND and DHCPv6 traffic.

RA Guard

RA Guard drops Router Advertisements arriving on ports where no router should be. You attach a policy that marks user ports as hosts and the uplink as a router port:

ipv6 nd raguard policy HOSTS
 device-role host
ipv6 nd raguard policy UPLINK
 device-role router
!
interface range GigabitEthernet1/0/1 - 46
 ipv6 nd raguard attach-policy HOSTS
interface GigabitEthernet1/0/48
 ipv6 nd raguard attach-policy UPLINK

A weakness of early RA Guard implementations was that RAs hidden behind IPv6 extension headers or fragments could slip past. Current Catalyst software handles these cases much better, and you can also drop undetermined-transport fragments with an IPv6 port ACL.

DHCPv6 Guard

DHCPv6 Guard does the same for DHCPv6 server messages (Advertise and Reply), so a rogue DHCPv6 server cannot hand out bad DNS settings:

ipv6 dhcp guard policy CLIENTS
 device-role client
ipv6 dhcp guard policy SERVER
 device-role server
interface range GigabitEthernet1/0/1 - 46
 ipv6 dhcp guard attach-policy CLIENTS
interface GigabitEthernet1/0/48
 ipv6 dhcp guard attach-policy SERVER

The binding table, ND inspection and Source Guard

On current Catalyst switches the binding table is built by SISF device tracking (older releases called it IPv6 snooping). The switch watches ND, DHCPv6 and data traffic, and records which IPv6 address belongs to which MAC address, VLAN and port. Other features use that table:

  • ND inspection checks Neighbour Solicitations and Advertisements against the table, stopping a host from claiming someone else's address.
  • IPv6 Source Guard drops data packets whose source address is not bound to that port.
  • Destination Guard stops the router or switch from trying to resolve addresses that are not known, which limits ND table exhaustion attacks against large /64 subnets.

Check the table with show device-tracking database. Start in a monitoring mode, confirm that entries look right, and only then enforce, because a wrong table blocks legitimate users.

Real-world example: the classroom gateway

At a college, students in one lab suddenly could not reach any websites, although IPv4 looked fine. A capture showed RAs from a student laptop that had Windows Internet Connection Sharing switched on; laptops preferred IPv6 and sent everything to it. The team applied an RA Guard host policy to every access port in the building. The next time the same thing happened, the switch simply dropped the RAs and logged the port.

Practice

Why can an IPv4-only network still be hit by a rogue IPv6 Router Advertisement?
Modern operating systems have IPv6 enabled by default and will accept an RA, then prefer IPv6 paths.
Which feature stops a rogue DHCPv6 server on an access port?
DHCPv6 Guard with a client device-role policy on that port.
What do ND inspection and IPv6 Source Guard rely on?
The binding table built by IPv6 snooping or SISF device tracking.

Key takeaways

  • IPv6 hosts trust Router Advertisements, so rogue RAs can hijack traffic.
  • RA Guard and DHCPv6 Guard only allow router and server messages from trusted ports.
  • Device tracking builds a binding table used by ND inspection and Source Guard.
  • Deploy in monitoring mode first, then enforce once the table looks right.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: