1. What is VTP?
VTP (VLAN Trunking Protocol) is a Cisco-proprietary protocol that helps manage VLAN configurations across multiple switches within a network. It allows switches to automatically propagate VLAN changes from a central switch to others, reducing manual configuration and ensuring consistency.
Key Features of VTP:
✅ Simplifies VLAN management – No need to manually configure VLANs on each switch.
✅ Ensures VLAN consistency – VLANs are updated across the network.
✅ Reduces configuration errors – Prevents mismatches in VLAN settings.
2. VTP Modes
VTP operates in three modes:
| Mode | Description |
|---|---|
| Server | The default mode; can create, modify, and delete VLANs. Sends VLAN updates to other switches. |
| Client | Cannot create or modify VLANs; only receives updates from the server. |
| Transparent | Does not participate in VTP; VLANs are managed locally but forwards VTP messages. |
3. Configuring VTP (Step-by-Step)
Step 1: Configure the VTP Server
Enter global configuration mode:bashCopyEditconfigure terminal
Set the VTP domain name (must match on all switches in the domain):vtp domain MyNetwork
Set the switch to VTP server mode:tvtp mode server
(Optional) Set a VTP password for security:vtp password Cisco123
Verify VTP configuration:show vtp status
Step 2: Configure VTP Clients
Enter global configuration mode:bashCopyEditconfigure terminal
Set the same VTP domain name as the server:bashCopyEditvtp domain MyNetwork
Set the switch to client mode:bashCopyEditvtp mode client
(Optional) Set the same VTP password as the server:bashCopyEditvtp password Cisco123
Verify the client is receiving VLANs:bashCopyEditshow vlan brief
Step 3: Configure a Transparent Switch (Optional)
Enter global configuration mode:configure terminal
Set the VTP mode to transparent:vtp mode transparent
(Optional) Set the VTP domain (even though it doesn’t participate):vtp domain MyNetwork
Verify transparent mode:show vtp status
4. Verifying VTP Configuration
| Command | Description |
|---|---|
show vtp status | Displays VTP mode, domain, revision number, etc. |
show vtp password | Displays the configured VTP password. |
show vlan brief | Displays VLANs received from the VTP server. |
5. Important Notes & Best Practices
🚀 Use VTP version 2 or 3 for better performance and security.
🔒 Be cautious with VTP mode changes – Adding a new switch with a higher revision number can overwrite VLANs.
🛑 Prefer using VTP transparent mode in critical networks to prevent unintended VLAN deletions.
Leave a comment