Configuration Examples for VTP

Example: Configuring the Switch as a VTP Server

Thisexample shows how to configure the switch as a VTPserver with the domain name eng_group and the
passwordmypassword:
Switch(config)# vtp domain eng_group
Setting VTP domain name to eng_group.
Switch(config)# vtp mode server
Setting device to VTP Server mode for VLANS.
Switch(config)# vtp password mypassword
Setting device VLAN database password to mypassword.
Switch(config)# end
Related Topics
ConfiguringVTP Mode, on page24
VTPModes, on page15

Example: Configuring a Hidden Password

Thisexample shows how to configure a hidden password and how it appears.
Switch(config)# vtp password mypassword hidden
Generating the secret associated to the password.
Switch(config)# end
Switch# show vtp password
VTP password: 89914640C8D90868B6A0D8103847A733
Related Topics
Configuringa VTP Version 3 Password, on page 26
Passwordsfor theVTP Domain, on page 21

Example: Configuring a VTP Version 3 Primary Server

Thisexample shows how to configure a switch as the primary server for the VLAN database (the default)
whena hiddenor secretpassword was configured:
Switch# vtp primary vlan
Enter VTP password: mypassword
This switch is becoming Primary server for vlan feature in the VTP domain
VTP Database Conf Switch ID Primary Server Revision System Name
------------ ---- -------------- -------------- -------- --------------------
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29440-01 35
Configuring VTP
Configuration Examples for VTP