Hello! Welcome to your next lesson in the CCNP Enterprise course.
In our previous lesson, we configured and troubleshot inter-VLAN routing using SVIs. A key part of that process was ensuring that the VLANs themselves were correctly configured on the switch. While manageable on a single device, manually creating and managing VLANs across dozens or even hundreds of switches in an enterprise network is inefficient and prone to error. This is the problem that the VLAN Trunking Protocol (VTP) was designed to solve.
Today's lesson addresses the learning outcome: Analyze VTP operation (server, client, transparent modes) and configure VTP pruning. We will explore how VTP automates VLAN database synchronization, analyze the roles of its different operating modes, and discuss its significant risks and benefits. We'll also configure VTP pruning to optimize network traffic. For a network professional, mastering VTP is essential for efficient and scalable Layer 2 network management.
1. VTP Fundamentals: Automating VLAN Management
VTP is a Cisco-proprietary Layer 2 messaging protocol that centralizes the management of VLANs. Instead of configuring VLANs on every switch, you can make changes on a single VTP "server" switch, and VTP propagates those changes to all other "client" switches in the same administrative group, or VTP domain.
The core mechanism behind VTP is the Configuration Revision Number. This is a 32-bit number that tracks changes to the VLAN database. Every time a VLAN is added or deleted on a VTP server, the revision number increments. Switches in the VTP domain use this number to determine if they have the most up-to-date VLAN information. A switch will always adopt the VLAN database from a VTP advertisement that has a higher revision number than its own.
To understand how these pieces fit together, let's start with a foundational video.
VLAN Trunking Protocol (VTP) Explained | Version 1 & 2
This video from CertBros provides an excellent overview of VTP, explaining its purpose, the role of the revision number, and the different advertisement messages used for synchronization.
Watch the first 4 minutes and 31 seconds of this video. Focus on understanding the three main message types: Summary Advertisements, Subset Advertisements, and Advertisement Requests.
As the video explains, VTP uses three primary message types to keep VLAN databases synchronized:
- Summary Advertisements: Sent every 5 minutes by default, or when a change occurs. They contain the VTP domain name, the current revision number, and other high-level information, but not the VLAN details themselves.
- Subset Advertisements: Sent after a summary advertisement when a change has occurred. These messages contain the specific VLAN information (e.g., VLAN name, number, etc.).
- Advertisement Requests: Sent by a client when it needs to get updated information, for example, after a reboot or when it detects a higher revision number from a summary advertisement.
2. VTP Modes and Operational Risks
For VTP to function, each switch must be configured to operate in a specific mode. These modes define the switch's role within the VTP domain.
The three primary VTP modes are:
- Server: The master switch. You can create, modify, and delete VLANs (for the standard range 1-1005) on a VTP server. It stores the VLAN database in NVRAM (in a file called
vlan.dat) and is the source of VTP advertisements. By default, Cisco switches are in VTP server mode. - Client: A VTP client cannot have VLANs created, modified, or deleted locally. It listens to VTP advertisements from servers and synchronizes its VLAN database accordingly. A client switch does not store the VLAN configuration in its running or startup configuration; it's learned dynamically and lost on reboot, requiring it to be re-learned from a server.
- Transparent: A VTP transparent switch does not participate in the VTP domain. You can create, modify, and delete VLANs on it, but these changes are local to that switch and are not advertised to others. However, a transparent switch forwards VTP advertisements it receives on its trunk ports, acting as a pass-through for the VTP domain.
The following resource provides a clear and concise comparison of these modes.
This article from Network Journey provides an excellent summary table comparing the key characteristics of each VTP mode. It also lists the essential CLI commands we'll be using.
Review the 'Summary / Comparison' and 'Pros and Cons' tables to quickly grasp the differences between the modes. Then, look at the 'Essential CLI Commands' table to familiarize yourself with the syntax.
The Critical Risk: VTP Database Wipeout
The greatest danger with VTP (versions 1 and 2) is the potential for a switch with a higher revision number but an incorrect or empty VLAN database to be added to the network. Because other switches will blindly accept the higher revision number, this can effectively delete all VLANs from your network, causing a major outage. This is not a theoretical risk; it's a well-documented cause of network failures.
The next segment of the CertBros video explains this risk and the VTP modes perfectly.
VLAN Trunking Protocol (VTP) Explained | Version 1 & 2
Let's continue with the CertBros video. This part explains the three VTP modes and then vividly illustrates the VTP wipeout scenario. Understanding this is non-negotiable for anyone managing a Cisco network.
Watch from 04:31 to 08:29. Pay close attention to the explanation of how adding a pre-configured switch can lead to a 'VTP wipeout'.
3. VTP Configuration and Verification
Now let's put theory into practice. Configuring VTP requires three main parameters to match across all switches in the domain:
- VTP Domain Name: A case-sensitive string that identifies the VTP domain.
- VTP Password: An optional but recommended case-sensitive password for authentication.
- VTP Version: All switches should run the same version.
All VTP communication occurs over trunk links.
The final part of the CertBros video provides a complete configuration and verification lab.
VLAN Trunking Protocol (VTP) Explained | Version 1 & 2
This demonstration will walk you through configuring a VTP server and client, creating a VLAN, and verifying that it propagates correctly.
Watch from 09:46 to 17:20. Follow along with the configuration of the server and client switches. Note the use of show vtp status and show vlan brief as the primary verification commands.
Key verification commands:
show vtp status: This is your primary command. It shows the VTP version, domain name, operating mode, and crucially, the configuration revision number.show vlan brief: Used to verify that VLANs have been successfully created or synchronized.
Test your understanding!
You are configuring a network like the one shown in the diagram below. S1 is the VTP Server, and S2 and S3 are VTP Clients, all in the 'cisco.com' domain.
After configuring all switches, you create VLAN 20 (SALES) on S1. You verify it has propagated to S2. You then connect to S3 and attempt to create VLAN 30 (HR) directly on it. What message do you expect to see, and why?
Show answer
You would see an error message similar to: VTP VLAN configuration not allowed when device is in CLIENT mode.
This is because switches in VTP Client mode cannot create, modify, or delete VLANs locally. They can only learn VLAN information from a VTP server. To add VLAN 30 to the domain, you must configure it on the VTP server, S1.
4. Optimizing Traffic with VTP Pruning
By default, a trunk link carries traffic for all known VLANs. This means that if a broadcast is sent on VLAN 10, it will be flooded across all trunk links in the network, even to switches that have no active ports in VLAN 10. This wastes bandwidth.
VTP Pruning solves this problem. When enabled, switches use VTP to communicate which VLANs they have active ports for. Trunk links will then "prune" (i.e., not forward) traffic for VLANs that are not needed by the downstream switch.

To learn how pruning works and how to configure it, let's return to our CertBros video one last time.
VLAN Trunking Protocol (VTP) Explained | Version 1 & 2
This short segment explains the concept of VTP pruning and shows how to enable it.
Watch from 08:29 to 09:46. The configuration itself is simple (vtp pruning on the server), but focus on the 'why'—it prevents unnecessary traffic on trunks.
Note: In VTP versions 1 and 2, you only need to enable pruning on one VTP server for it to be enabled throughout the domain. Also, certain VLANs, like VLAN 1 and the extended-range VLANs (1006-4094), cannot be pruned.
5. Beyond V1/V2: VTP Version 3 for the Modern Network
While VTP versions 1 and 2 are foundational, they have been largely superseded by VTP Version 3, which is the version you will encounter on modern Cisco Catalyst switches and is a key topic for the ENCOR exam. VTPv3 introduces several critical enhancements that address the shortcomings of its predecessors.
Key improvements in VTPv3:
- Enhanced Security: Mitigates the "VTP wipeout" problem by introducing the concept of a primary server. Only the designated primary server can make changes to the VLAN database. Other switches in server mode (secondary servers) will not accept advertisements from other servers unless they are designated as primary.
- Extended VLAN Support: VTPv3 can propagate extended-range VLANs (1006-4094).
- Private VLAN Support: Can synchronize private VLAN configurations.
- MSTP Database Support: Can propagate the configuration for Multiple Spanning Tree Protocol (MSTP), which we will cover in a later lesson.
The following video from Jeremy's IT Lab provides an excellent CCNP-level demonstration of VTPv3's advanced features.
CCNP ENCOR // VTP (LAB) // ENCOR 350-401 Complete Course
This lab-focused video is perfect for your CCNP preparation. It demonstrates the key features of VTPv3, including the primary server concept that prevents accidental database wipes.
You don't need to watch the whole video, but focus on these key segments that highlight VTPv3's advantages: Primary Server Concept (06:40 - 08:40, 12:02 - 16:32): Watch how a switch must be made a vtp primary to make changes and how the network handles a conflict with two primary servers. This is the main safety feature of VTPv3. Pruning in VTPv3 (16:32 - 19:31): Note the behavioral difference: in VTPv3, pruning must be enabled on all switches in the domain, not just the server.
Given your role as a Solutions Engineer, understanding the safety and feature enhancements of VTPv3 is crucial when designing or managing modern enterprise networks. While VTP, in general, has fallen out of favor in many data center designs (due to technologies like VXLAN), it remains prevalent in campus and enterprise access layer networks.
Conclusion
In this lesson, we explored how VTP automates VLAN management across a switched network. We saw how its architecture, while powerful, contains significant risks in earlier versions, and how VTPv3 addresses these with features like the primary server role.
Key Takeaways:
- VTP centralizes VLAN management by synchronizing the
vlan.datfile across a VTP domain. - The Configuration Revision Number is the key metric for updates; a higher number always wins in VTPv1/v2, creating a significant risk of accidental database deletion.
- Switches operate in Server, Client, or Transparent mode, each with a distinct role in creating and propagating VLAN information.
- VTP Pruning is a valuable feature that conserves bandwidth by preventing unnecessary broadcast and unicast traffic from traversing trunk links.
- VTP Version 3 is the modern standard, offering enhanced security through the primary server concept and support for extended VLANs and MSTP configurations.
Preview of the Next Lesson:
Now that we have a solid understanding of VLANs and their management, our next step is to improve the resilience and bandwidth of the connections between our switches. In the next lesson, we will configure and verify Layer 2 EtherChannel using LACP and PAgP protocols, learning how to bundle multiple physical links into a single logical connection.