Content

| 2.8 |  | VTP Configuration and VTP Pruning |
| 2.8.4 |  | Configure the VTP mode |

Some general guidelines for choosing the VTP mode of a switch are as follows:

- If this is the first switch in the management domain and additional switches will be added, set the mode to server.
- If there are any other switches in the management domain, set the switch mode to client to prevent the new switch from accidentally propagating the incorrect information to your existing network.
- If a new switch needs to be set up as a VTP server, change the mode of the switch to server after it has learned the correct VLAN information from the network while in client mode.
- If the switch is not going to share VLAN information with any other switch on the network, set the switch to transparent mode.

To set the correct mode of a Cisco IOS-based switch in global configuration mode use the vtp command.

> Switch#config terminal
> Switch(config)#vtp mode [client | server | transparent]

To set the correct mode of a Cisco IOS-based switch in VLAN configuration mode use the vtp command.

> Switch#vlan database
> Switch(vlan)#vtp [client | server | transparent]

VTP Configuration in global configuration mode:

> Switch#config terminal
> Switch(config)#vtp mode server

VTP Configuration in VLAN configuration mode:

> Switch#vlan database
> Switch(vlan)#vtp server