17-16
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
 
Chapter 17      Configuring VLANs, VTP, and VMPS
VLAN Trunking Protocol
This example shows one way to enable VTP version 2:
Switch# configure terminal 
Switch(config)# vtp version 2 
V2 mode enabled.
Switch(config)# 
This example shows how to enable VTP version 2 with any release:
Switch# vtp version 2 
V2 mode enabled.
Switch# 
This example shows how to verify the configuration:
Switch# show vtp status | include V2 
VTP V2 Mode: Enabled
Switch# 
Configuring the VTP Mode
To configure the VTP mode, perform this task:
Note When VTP is disabled, you can enter VLAN configuration commands in configuration mode instead of 
the VLAN database mode and the VLAN configuration is stored in the startup configuration file.
This example shows how to configure the switch as a VTP server:
Switch# configure terminal
Switch(config)# vtp mode server
Setting device to VTP SERVER mode.
Switch(config)# vtp domain Lab_Network
Setting VTP domain name to Lab_Network
Switch(config)# end
Switch# 
This example shows how to configure the switch as a VTP client:
Switch# configure terminal
Switch(config)# vtp mode client
Setting device to VTP CLIENT mode.
Switch(config)# end
Switch# 
Command Purpose
Step 1
Switch(config)# vtp mode {client | server | 
transparent | off}
Configures the VTP mode.
Step 2
Switch(config)# vtp domain domain_name 
(Optional; for server mode only) Defines the VTP domain 
name, which can be up to 32 characters long. VTP server 
mode requires a domain name. If the switch has a trunk 
connection to a VTP domain, the switch learns the 
domain name from the VTP server in the domain.
Note You cannot clear the domain name.
Step 3
Switch(config)# end 
Exits VLAN configuration mode.
Step 4
Switch# show vtp status 
(Optional) Verifies the configuration.