How to Configure VTP (VLAN Trunking Port Protocol)?

How to Configure VTP (VLAN Trunking Port Protocol)?

VTP or VLAN Trunking Protocol is a protocol to automatically propagates VLAN configurations across the switches on your LAN. The main benefit of using VTP is to distribute VLAN database on all switches. Ideally the only manual thing you would do is plug the switch and set the trunk ports. You must configure same VTP domain name and add that domain to all switches. If you setup a password, it must be same across all switches. There must be at least one server switch and one client switch while rest of switch can have server or client roles. You cannot add VLAN configuration if a switch is in client mode, the switch distributes the configuration. There is VTP transparent role when configured, the switch forwards VLAN database but does not participate the VLAN configuration.

Configuring VTP on your switch. If you don’t specify the mode, it configure it as Server by default.


Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW06(config)#vtp domain spidertip
Changing VTP domain name from NULL to spidertip
SW06(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW06(config)#

Making a switch on VTP Transparent Mode. Transparent mode switch forwards VLAN configuration but does not store in its VLAN database.


SW03>en
SW03#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW03(config)#vtp mode transparent
Setting device to VTP TRANSPARENT mode.
SW03(config)#exit
SW03#

use SW03#show vtp status to see the VTP configuration
use SW03#show vtp password to check the VTP password

How to turn off VTP? You cannot delete or undo VTP configuration. With new Cisco switches, you can turn it off by issuing vtp mode off or vtp mode transparent.

Publisher: abdirahman isse

Share this post