DTP
- Dynamic Trunking Protocol is a #Cisco-Proprietary tool to allow switchports to automatically negotiate a Trunk
- While Cisco is very proud of it, and it will probably come up on the CCNA, it is a security risk (see VLAN Hopping) and should be disabled using the
switchport nonegotiate command
DTP Commands
- Switchport/VLAN Configuration
Config-if# switchport ?
- mode: Set trunking mode of the interface
2. Config-if# switchport mode ?
1. access: Set trunking mode to ACCESS unconditionally
2. dynamic: Dynamically negotiate access or trunk mode
1. Config-if# switchprot mode dynamic ?
1. auto: Set negotiation parameter to 'auto' (i.e. passive)
2. desirable: Set negotiation parameter to 'desirable' (i.e. active)
3. trunk: Set trunking mode to TRUNK unconditionally
- access: Set access mode characteristics (e.g., client access)
Config-if# switchport access vlan (vlan ID)
- trunk: Set trunk mode characteristics (e.g., which VLANs are allowed)
Config-if# switchport trunk allowed vlan (VLAN IDs separated by commas)
- nonegotiate: disable DTP on the interface
Config-if# switchport nonegotiate
OSI or TCP/IP Layer
CCNA Exam Topic
#extop-2-2
Contributors
Sources