Configure trunk links to carry multiple VLANs between switches over a single physical connection.
Step 1: Configure the trunk interface
|
|
Step 2: Set the native VLAN (optional) Configure which VLAN will carry untagged traffic. Default is VLAN 1, but best practice is to use a dedicated native VLAN.
|
|
Step 3: Specify allowed VLANs Control which VLANs can traverse the trunk link for security and performance optimization.
|
|
Step 4: Configure DTP settings (optional) Disable Dynamic Trunking Protocol for security and to prevent unwanted trunk negotiation.
|
|
Step 5: Verify the trunk configuration
|
|
Key Points:
- Native VLAN must match on both ends of the trunk
- Use
switchport trunk allowed vlan add/remove Xto modify VLAN list without retyping all VLANs - Status should show “trunking” in verification commands
- Consider using a dedicated management VLAN as native VLAN instead of VLAN 1
Trunking Modes (Dynamic Desirable, etc)
Configure Dynamic Trunking Protocol (DTP) modes to control how switches negotiate trunk formation automatically.
Step 1: Configure Dynamic Desirable mode This mode actively attempts to negotiate a trunk with the connected device and will form a trunk if the other side is willing.
|
|
Step 2: Configure Dynamic Auto mode This mode will only form a trunk if the other device actively requests it. It’s passive and waits for negotiation.
|
|
Step 3: Configure static trunk (no negotiation) Force the interface into trunk mode without any DTP negotiation for maximum security.
|
|
Step 4: Configure access mode (disable trunking) Explicitly set the port as an access port to prevent any trunk formation.
|
|
Step 5: Verify DTP configuration and status
|
|
Key Points:
- Dynamic Desirable + Dynamic Auto = Trunk will form
- Dynamic Auto + Dynamic Auto = Access ports (no trunk)
- Use
switchport nonegotiatewith static trunk mode for security - DTP sends frames every 30 seconds on VLAN 1 by default
- Best practice is to disable DTP (
nonegotiate) on production networks