Content

| 2.8 |  | VTP Configuration and VTP Pruning |
| 2.8.1 |  | Basic configuration steps |

These basic tasks should be carried out before implementing VTP on a network:

- Determine the version number of VTP that will be running.
- Decide if this switch is to be a member of an existing management domain or if a new domain should be created. If a management domain does exist, determine the name and password of the domain.
- Choose a VTP mode for the switch.

Remember too that for VTP to function, ports designated as trunk links will also need to be configured.

VTP Configuration Options
VTP can be configured by using these configuration modes.

- VTP Configuration in global configuration mode
- VTP Configuration in VLAN configuration mode

> - VLAN configuration mode is accessed by entering the vlan database privileged EXEC command.

VTP Configuration in global configuration mode:

> Switch#config terminal
> Switch(config)#vtp version 2
> Switch(config)#vtp mode server
> Switch(config)#vtp domain cisco
> Switch(config)#vtp password mypassword
> Switch(config)#end

VTP Configuration in VLAN configuration mode:

> Switch#vlan database
> Switch(vlan)#vtp v2-mode
> Switch(vlan)#vtp server
> Switch(vlan)#vtp domain cisco
> Switch(vlan)#vtp password mypassword
> Switch(vlan)#exit

> Note: The exit or end command can be used to leave VLAN global configuration mode, whereas the exit command must be used to leave VLAN Configuration mode.