Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

DHCPv6 Guard

Direct answer

DHCPv6 Guard blocks DHCPv6 server messages on ports where no legitimate server is connected, so rogue servers cannot hand out addresses or DNS settings.

When to use this

Use it when hosts get IPv6 addresses or DNS servers from a rogue DHCPv6 server.

First 30 seconds

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.

Operational verification

DHCPv6 reply on access port → guard → drop

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Key commandshow ipv6 dhcp guard policy CLIENTS
Scope / prerequisiteUse it when hosts get IPv6 addresses or DNS servers from a rogue DHCPv6 server.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • show ipv6 dhcp guard policy — policy
  • show 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 elementEffect
device-role clientDrops ADVERTISE and REPLY entering the port
device-role serverAllows server messages, subject to the matches below
match server access-listOnly listed server source addresses
match reply prefix-listOnly addresses inside approved prefixes
preference min/maxBounds 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

CommandShows
show ipv6 dhcp guard policy CLIENT-PORTRole and attached targets
show device-tracking counters vlan 10DHCPv6 messages dropped per type
Controlled testA 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 8200

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%
Confirmation

Confirm action

Continue?