Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Disable negotiation

Direct answer

switchport nonegotiate stops the port from sending DTP frames. Combined with switchport mode trunk or switchport mode access, the port mode is fixed and cannot be negotiated.

When to use this

Use it on every trunk as hardening, and on trunks to devices that do not understand DTP.

First 30 seconds

1. show interfaces <if> switchport — Negotiation of Trunking: Off?

2. Configure switchport mode trunk then switchport nonegotiate.

3. Neighbour also static trunk? Otherwise it stays access.

4. show interfaces trunk on both ends — trunking.

5. show dtp interface <if> — no DTP packets sent.

Operational verification

administrative mode on end A → administrative mode on end B → DTP frames exchanged → mode combination decides the result → operational mode trunk or access

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE
Key commandswitchport nonegotiate
Scope / prerequisiteUse it on every trunk as hardening, and on trunks to devices that do not understand DTP.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

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 Common mistakes Narrow the fault
  • switchport nonegotiate on a port still in dynamic mode (not allowed).
  • Disabling DTP on one side while the other relies on negotiation.
Command lookup Jump straight to Cisco syntax
Key points

Nonegotiate works only with a static mode; it is rejected on dynamic ports. Both ends must then be configured statically — a nonegotiate trunk facing a dynamic auto port forms no trunk on that side. Access-mode ports send no DTP anyway.

Key checks
  • show dtp interface <if> — DTP state, TOS/TAS/TNS, packets sent and received.
  • show interfaces <if> switchport — Administrative Mode, Operational Mode, Negotiation of Trunking.
  • show interfaces trunk — ports that ended up trunking.
ReferenceWhat it is1 section · depth on demand

What it is

switchport nonegotiate stops the port sending DTP frames. Use it with a static mode (switchport mode trunk or access) so the port's role is fixed and DTP cannot be abused. It is required when the neighbour does not speak DTP (non-Cisco devices, firewalls, servers).

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

switchport nonegotiate stops DTP on the port

The Catalyst 9300 VLAN trunk guide describes nonegotiate as preventing DTP frames from being sent. It is valid only with access or trunk mode, and the neighbour must then be configured as a trunk manually.

C9300(config)# interface Te1/1/1
C9300(config-if)# switchport mode trunk
C9300(config-if)# switchport nonegotiate
C9300(config-if)# switchport trunk allowed vlan 10,20,30,99
C9300(config-if)# switchport trunk native vlan 99
C9300# show interfaces Te1/1/1 switchport | include Mode|Negotiation
Administrative Mode: trunk
Operational Mode: trunk
Negotiation of Trunking: Off
C9300# show dtp interface Te1/1/1

When to disable negotiation

SituationReason
Switch-to-switch trunksStatic state; no dependence on the neighbour's DTP behaviour
Links to non-Cisco devices, firewalls, hypervisorsThey don't speak DTP; frames are useless or misread
Security baselineRemoves DTP-based switch-spoofing attacks

Combinations that fail

LocalNeighbourResult
trunk + nonegotiatetrunkTrunk (good)
trunk + nonegotiatedynamic autoNeighbour stays access: it waits for DTP that never comes
trunk + nonegotiateaccessMismatch: tagged frames arrive at an access port

Access ports

switchport mode access already makes the port permanently non-trunking. Adding nonegotiate there also stops it sending DTP frames, which some security baselines require.

After changes, confirm both ends with show interfaces trunk. The trunk must be listed on both switches with the same native VLAN and allowed VLANs.

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.

Quick reference

Disabling DTP removes the guesswork and the security risk from trunk negotiation. Access ports are fixed as access, trunks are fixed as trunks, and the port stops sending DTP frames altogether. This is the recommended configuration on every production switch port.

Disabling DTP negotiation:

interface range Gi1/0/1 - 46
 switchport mode access
 switchport nonegotiate          ! implied on access ports in recent IOS XE
interface Te1/1/1
 switchport mode trunk
 switchport nonegotiate
show dtp interface Te1/1/1        ! no DTP frames sent

With nonegotiate, the neighbour must be statically configured as trunk too, otherwise the link stays access on that side. Non-Cisco switches do not speak DTP at all, so static trunks are needed anyway in multi-vendor networks.

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

interface Gi1/0/48
 switchport mode trunk
 switchport nonegotiate
!
interface range Gi1/0/1-24
 switchport mode access
 switchport nonegotiate

Documented example, not captured output.

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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Switching → 802.1Q Trunking → DTP → Disable negotiation. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Confirmation

Confirm action

Continue?