What you will build
This walkthrough was written from Cisco IOS documentation and Packet Tracer behaviour as generally described. It has not been run in Packet Tracer here, so port names and prompts can differ slightly on your version.
Use three 2960 switches. Cable SW1 Gi0/1 to SW3 Gi0/1 and SW3 Gi0/2 to SW2 Gi0/1; the labels above show the intended ports. No PCs are needed, because the lab only checks the VLAN lists.
Step 1: trunks on every link
! SW1
interface GigabitEthernet0/1
switchport mode trunk
! SW3
interface range GigabitEthernet0/1 - 2
switchport mode trunk
! SW2
interface GigabitEthernet0/1
switchport mode trunkVTP advertisements travel only across trunks. If your version rejects the command, add switchport trunk encapsulation dot1q first.
Step 2: VTP modes, domain and version
! SW1
vtp mode server
vtp domain ROUTELEARN
vtp version 2
vtp password RL-Lab1
! SW2
vtp mode client
vtp domain ROUTELEARN
vtp password RL-Lab1
! SW3
vtp mode transparent
vtp domain ROUTELEARN
vtp version 2Domain names and passwords must match for switches to accept each other's advertisements. The version is learnt from the server by a client. A transparent switch needs the domain only to forward the frames.
SW1#show vtp status VTP Version capable : 1 to 3 VTP version running : 2 VTP Domain Name : ROUTELEARN VTP Operating Mode : Server Number of existing VLANs : 5 Configuration Revision : 0
Step 3: create VLANs on the server only
! SW1
vlan 10
name SALES
vlan 20
name SUPPORT
vlan 30
name GUESTThree VLANs on the server. Each change bumps the revision number and triggers an advertisement.
Step 4: check who received them
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Now create vlan 99 on SW3. It exists on SW3 only: a transparent switch's changes stay local and are not advertised.
Step 5: see why the revision number matters
- Note SW1's revision (for example 3).
- Imagine a spare switch in the same domain with a revision of 20 and an empty VLAN list. Plugged in over a trunk, it would win, and SW1 and SW2 would delete VLANs 10, 20 and 30.
- That is why a switch should be reset before it joins a domain, and why many networks use transparent mode or VTP version 3 with a primary server instead.
Do not try this on a lab you want to keep; reproduce it only on a throwaway copy of the file.
Common Packet Tracer problems
- The client shows no VLANs: check the trunk, the domain name (case matters) and the password on both ends.
- VLANs created on a client are refused: a client cannot create them.
- The revision does not move: confirm the server really changed the VLAN list.
Test yourself
Which VTP mode can create, change and delete VLANs and advertise them?
What does a transparent switch do with received VTP advertisements?
What must match for two switches to share VLANs through VTP?
A switch with a higher revision number and an empty VLAN list joins a domain. What can happen?
Where do VTP advertisements travel?