CCNP · Lesson 2 of 5
VTPv3: the Safe VTP with a Primary Server
VTPv3 fixes VTP's big problem: any switch with a higher revision being able to wipe the VLANs of the whole network.
In a nutshell
In VTPv3 only the primary server can change the domain database. It also advertises extended VLANs, PVLANs and the MST configuration.
In this lesson
What improves over v1 and v2
| Feature | VTP v1/v2 | VTP v3 |
|---|---|---|
| Who can change VLANs | Any server | Only the primary server |
| Extended VLANs (1006–4094) | No | Yes |
| Private VLANs | No | Yes |
| MST database | No | Yes (separate instance) |
| Hidden password | No | Yes (hidden) |
| Off mode | Depends on IOS version | Yes, per instance |
Roles: primary and secondary server
In VTPv3 every server starts as secondary: it can store and forward the database, but not change it. To edit VLANs, a server must become primary with an exec-mode command (not a configuration command). There can be only one primary per domain for each database.
SW1(config)# vtp domain COMPANY
SW1(config)# vtp version 3
SW1(config)# vtp mode server
SW1(config)# vtp password Cisco123 hidden
SW1(config)# end
SW1# vtp primary vlan ← exec mode: becomes primary
This system is becoming primary server for feature vlan
Do you want to continue? [confirm]
SW1# show vtp status
VTP version running : 3
VTP Operating Mode : Primary Server
Why it is safer
If you connect a used switch with a higher revision, it cannot overwrite the domain because it is not the primary. To take over it would have to run vtp primary on purpose (and know the password).
VTPv3 and MST
VTPv3 has a separate database for MST. With vtp primary mst a switch becomes primary for the MST configuration and the region (name, revision and instance mapping) is copied to the whole domain, preventing region mismatches. You will see it in the MST lesson.
What you must remember
- Only the primary server changes the database in VTPv3.
- vtp primary runs in exec mode, not in configuration mode.
- VTPv3 advertises extended VLANs, PVLANs and MST.
- The password can be stored hidden with hidden.
Check what you learned
4 exam-style questions. Some have one answer and others ask you to choose several. Answer them all to complete the lesson.