In a typical network, some switches are configured as VTP servers and other switches are configured as VTP clients. A VLAN created on a VTP server switch is automatically advertised to all switches inside the same VTP domain. A VTP domain is simply the collection of switches with the same VTP domain name configured.
To exchange VTP messages, five requirements must be met:
1. a switch has to be configured as either a VTP server or VTP client
2. the VTP domain name has to be the same on both switches
3. if present, the VTP domain password has to be the same
4. VTP versions have to match
5. the link between the switches has to be a trunk link
Consider the following simple example. Switches SW1 and SW2 are connected via trunk link. We will configure SW1 to serve as a VTP server and SW2 to serve as a VTP client.
First, we configure SW1:
Next, we configure SW2:
Now, we will create VLAN 50 on SW1. The information about this VLAN will automatically be propagated to SW2. SW2 should also create that VLAN.
On SW1, we will create the new VLAN:
VTP forces SW2 to create the same VLAN: