Use it when hosts get IPv6 addresses or DNS servers from a rogue DHCPv6 server.
DHCPv6 Guard
DHCPv6 Guard blocks DHCPv6 server messages on ports where no legitimate server is connected, so rogue servers cannot hand out addresses or DNS settings.
1. DHCPv6 Guard blocks DHCPv6 server replies from untrusted ports.
2. Attach policy to access ports.
3. Trust server/uplink ports.
4. Prevents rogue DHCPv6.
5. Check drops.
DHCPv6 reply on access port → guard → drop
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ipv6 dhcp guard policy CLIENTSVerification & 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 Checks Verify boundary
show ipv6 dhcp guard policy CLIENTS
show device-tracking counters vlan 10
show ipv6 dhcp binding
Send a test DHCPv6 Advertise from an untrusted port in the lab and confirm the drop counter increases.
Step 2 Verification & troubleshooting Narrow the fault
1. Verify policy content/device role.
3. Send a controlled rogue RA and confirm drops.
4. Confirm legitimate RAs pass.
5. Verify host default route/prefix stability.
Step 3 Common mistakes Narrow the fault
- Trusting all ports as server ports.
- Forgetting the relay port (where the DHCPv6 server replies arrive).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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 dhcp guard policy— policyshow ipv6 snooping counters— drops
ReferenceWhy it matters1 section · depth on demand
How it works
DHCPv6 Guard drops DHCPv6 server messages (ADVERTISE, REPLY) arriving on ports that are not trusted as server or relay ports. That stops a rogue DHCPv6 server from handing out wrong DNS servers or addresses. It works with RA Guard, because hosts only use DHCPv6 when RAs tell them to.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Policy with explicit server validation (IOS XE)
ipv6 access-list DHCP-SERVERS
permit host 2001:db8:53::547 any
ipv6 prefix-list DHCP-PREFIXES seq 5 permit 2001:db8:10::/64 le 128
!
ipv6 dhcp guard policy SERVER-PORT
device-role server
match server access-list DHCP-SERVERS
match reply prefix-list DHCP-PREFIXES
preference max 255
ipv6 dhcp guard policy CLIENT-PORT
device-role client
!
vlan configuration 10
ipv6 dhcp guard attach-policy CLIENT-PORT
interface TenGigabitEthernet1/1/1 ! uplink towards relay/server
ipv6 dhcp guard attach-policy SERVER-PORT
| Policy element | Effect |
|---|---|
device-role client | Drops ADVERTISE and REPLY entering the port |
device-role server | Allows server messages, subject to the matches below |
match server access-list | Only listed server source addresses |
match reply prefix-list | Only addresses inside approved prefixes |
preference min/max | Bounds the server preference value a rogue could use to win |
Evasion RFC 7610 warns about
A rogue server can hide the UDP header behind IPv6 extension headers or fragments. RFC 7610 requires the filtering device to parse the entire header chain and to drop packets whose upper-layer header it cannot find. Check the platform's handling of fragmented and extension-header traffic — combine with RA Guard and an ipv6 access-list that blocks undetermined transport on access ports where supported.
Verify
| Command | Shows |
|---|---|
show ipv6 dhcp guard policy CLIENT-PORT | Role and attached targets |
show device-tracking counters vlan 10 | DHCPv6 messages dropped per type |
| Controlled test | A lab DHCPv6 server on an access port: clients must not receive its offers |
Remember the relay path: if replies arrive on a port with the client policy, legitimate DHCPv6 stops working.
ReferenceConfiguration & state1 section · depth on demand
Configuration
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
Documented example, not captured output. Check with show ipv6 dhcp guard policy.
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 → DHCPv6 Guard. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%