Pcornel
Networking · Security › First Hop Security / IPv6 RA Guard

DHCPv6 Guard

Cheat sheet · https://pcornel.dk/topic.php?topic=2629

Back to the Topic

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.

Remember

  • 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.

First checks

  • show ipv6 dhcp guard policy — policy
  • show ipv6 snooping counters — drops

Commands

show ipv6 dhcp guard policy
show ipv6 dhcp guard policy CLIENT-PORT
show device-tracking counters vlan 10

Verify in this order

DHCPv6 reply on access port → guard → drop

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2629

Confirmation

Confirm action

Continue?