Use it on every trunk as hardening, and on trunks to devices that do not understand DTP.
Disable negotiation
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.
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.
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
Operational reference
Fast context before you go deeper.
switchport nonegotiatePrimary Commands
Configuration and operational commands for this Topic.
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 Common mistakes Narrow the fault
switchport nonegotiateon a port still in dynamic mode (not allowed).- Disabling DTP on one side while the other relies on negotiation.
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.
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
| Situation | Reason |
|---|---|
| Switch-to-switch trunks | Static state; no dependence on the neighbour's DTP behaviour |
| Links to non-Cisco devices, firewalls, hypervisors | They don't speak DTP; frames are useless or misread |
| Security baseline | Removes DTP-based switch-spoofing attacks |
Combinations that fail
| Local | Neighbour | Result |
|---|---|---|
trunk + nonegotiate | trunk | Trunk (good) |
trunk + nonegotiate | dynamic auto | Neighbour stays access: it waits for DTP that never comes |
trunk + nonegotiate | access | Mismatch: 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.
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.
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
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 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%