Content

| 2.8 |  | VTP Configuration and VTP Pruning |
| 2.8.3 |  | Configuring the VTP domain |

If the switch being installed is the first switch in the network, the management domain will need to be created. However, if the network has other switches running VTP, then the new switch will join an existing management domain. Verify the name of the management domain. If the management domain has been secured, verify and configure the password for the domain.

To create a management domain or to add a switch to a management domain, use the vtp domain command in the global configuration mode or VLAN configuration mode.

> Switch(config)#vtp domain name
> Switch(vlan)#vtp domain name

If a VTP password is in use, it needs to be configured on all switches in the domain. The VTP password is translated using an algorithm resulting in a 16-byte MD5 value carried in all summary advertisements. From the privileged mode or VLAN configuration mode, use the vtp password command. To remove the password, use the no vtp password command.

The domain name can be up to 32 characters, and the password must be between 8 and 64 characters.

VTP Configuration in global configuration mode:

> Switch#config terminal
> Switch(config)#vtp domain cisco
> Switch(config)#vtp password mypassword

VTP Configuration in VLAN configuration mode:

> Switch#vlan database
> Switch(vlan)#vtp domain cisco
> Switch(vlan)#vtp password mypassword