Use it when assigning host or router roles to ports in IPv6 first-hop security policies.
Device Role
Device role in IPv6 first-hop security policies marks a port as host or router, so router-only messages such as Router Advertisements are accepted only on router-facing ports.
1. Device role (host/router, client/server) tells FHS what traffic a port may send.
2. Hosts cannot send RAs.
3. Routers/uplinks trusted.
4. Wrong role blocks legitimate RAs.
5. Document per port type.
port role → allowed messages → enforcement
Context & applicabilityCommon mistakes · platform/version boundaries
- Defaulting every port to host, including trunks to distribution routers.
- Forgetting to mark ports toward legitimate DHCPv6 servers as server role.
- Policies created but not attached to VLANs or interfaces.
Operational reference
Fast context before you go deeper.
Verification & 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 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.
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 nd raguard policy <name>— device-roleshow ipv6 dhcp guard policy <name>— role
ReferenceWhat it is1 section · depth on demand
Roles
| Role | Allowed |
|---|---|
| host | RS, NS/NA; RA and DHCPv6 server messages dropped |
| router | RA, redirects |
| switch (trusted-port) | Trusted uplink to another switch |
| server (DHCPv6 Guard) | DHCPv6 replies allowed |
Set roles per port policy; access ports are host, uplinks toward gateways are router or trusted.
ReferenceWhy it matters1 section · depth on demand
How it works
In IPv6 First Hop Security, the device role tells the switch what to expect on a port: host ports may send Router Solicitations and ND, but RAs and DHCPv6 server messages are dropped; router and server roles allow RAs or DHCPv6 replies. The role is set in the RA Guard / DHCPv6 Guard policy attached to the port or VLAN.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Roles across the First Hop Security features
| Feature | Role keyword | Allowed from the port |
|---|---|---|
| RA Guard | device-role host | RS, NS/NA — RAs and redirects dropped |
| RA Guard | device-role router | RAs, subject to optional matches |
| DHCPv6 Guard | device-role client / server | Server messages only from server ports |
| SISF device-tracking | trusted-port | Bindings from this port are trusted, not inspected |
Validating even router ports (RFC 6105 stateless RA Guard)
RFC 6105 describes RA Guard that inspects RA contents, not only the port role. A router-role policy can limit what a legitimate router may announce:
ipv6 prefix-list RA-PREFIXES seq 5 permit 2001:db8:10::/64
ipv6 nd raguard policy ROUTER-PORT
device-role router
match ra prefix-list RA-PREFIXES
hop-limit minimum 64
managed-config-flag off
router-preference maximum medium
!
interface TenGigabitEthernet1/1/1
ipv6 nd raguard attach-policy ROUTER-PORT
| Match | Protects against |
|---|---|
match ra prefix-list | A router (or misconfigured VM) announcing an unexpected prefix |
hop-limit minimum | RAs that set a tiny hop limit and break host traffic |
managed-config-flag | Unexpected switch to stateful DHCPv6 |
router-preference maximum | A rogue router claiming "high" preference to win default-router selection |
Attachment scope
Policies can attach per interface or per VLAN (vlan configuration 10 → ipv6 nd raguard attach-policy HOSTS). The interface policy wins over the VLAN policy on that port, so a VLAN-wide host policy plus an interface router policy on the uplink is a clean pattern.
Verify
show ipv6 nd raguard policy ROUTER-PORT lists the targets the policy is attached to; RA drop counters appear in show device-tracking counters vlan 10. Test with a lab host sending RAs on an access port: hosts must keep their original default router.
ReferenceConfiguration & state1 section · depth on demand
Configuration
ipv6 nd raguard policy HOSTS
device-role host
ipv6 nd raguard policy UPLINK
device-role router
interface range Gi1/0/1-46
ipv6 nd raguard attach-policy HOSTS
interface Gi1/0/48
ipv6 nd raguard attach-policy UPLINK
Documented example, not captured output.
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 → Device Role. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%