Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Device Role

Direct answer

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.

When to use this

Use it when assigning host or router roles to ports in IPv6 first-hop security policies.

First 30 seconds

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.

Operational verification

port role → allowed messages → enforcement

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • 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.
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
Scope / prerequisiteUse it when assigning host or router roles to ports in IPv6 first-hop security policies.
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.

1 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 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 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 nd raguard policy <name> — device-role
  • show ipv6 dhcp guard policy <name> — role
ReferenceWhat it is1 section · depth on demand

Roles

RoleAllowed
hostRS, NS/NA; RA and DHCPv6 server messages dropped
routerRA, 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

FeatureRole keywordAllowed from the port
RA Guarddevice-role hostRS, NS/NA — RAs and redirects dropped
RA Guarddevice-role routerRAs, subject to optional matches
DHCPv6 Guarddevice-role client / serverServer messages only from server ports
SISF device-trackingtrusted-portBindings 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
MatchProtects against
match ra prefix-listA router (or misconfigured VM) announcing an unexpected prefix
hop-limit minimumRAs that set a tiny hop limit and break host traffic
managed-config-flagUnexpected switch to stateful DHCPv6
router-preference maximumA 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.

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

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