You are currently viewing Lecture 2.2: Virtual Trunking Protocol (VTP)

Lecture 2.2: Virtual Trunking Protocol (VTP)

VLAN Trunking Protocol (VTP): is a Cisco proprietary protocol that propagates the definition of Virtual Local Area Networks (VLANs) to the neighboring L2 devices. To do this, VTP carries VLAN information to all the switches in a VTP domain. VTP advertisements are sent over trunks.

VTP has three modes:

  1. Server: Can Add, edit and remove VLANs and the changes will be applied to all VTP Clients.
  2. Client: Clients get their configuration from the VTP server and they cannot modify their VLAN Database.
  3. Transparent: they will forward VTP Server advertisements without applying it. Yet, it will have the availability to modify their VLAN Database.
Note: It is normal and quite common actually to have more than one device acting as a VTP server..

 

Related commands:

Command

Effect

S1(config)#Vtp mode [server | client | transparent | off]

Sets the VTP mode

S1(config)#Vtp domain [domain name]

Sets the VTP domain

S1#show vtp status

Shows the VTP Version, mode and configuration revision

Configuration notes:

  • VTP Domain must be the same and it is case sensitive.
  • VTP Version must be the same.
  • VTP Passwords must match.
  • Trunk links must be up.
  • VTP May remove certain VLANs, once a VLAN is removed assigned ports will go into inactive state.
Note / Be careful: When introducing a new device in the environment, VTP depends on the VTP revision number to decide which device has the latest version of the VLAN database and propagates the changes accordingly. If the newly introduced device has been used in a different environment and it came with a high revision number; it will overwrite the existing VLAN configuration on the devices.
 

VTP v3

VTP v3 is similar to the older versions of the protocol but it came to enable more features and address certain issue.
VTP v3 added the support for extended VLANs, Private VLANs and RSPAN VLANs synchronization; it also added the possibility to sync MST configuration.

VTP v3 added a VTP primary server functionality to addresses the previously mentioned issue when a new VTP enabled device is introduced to the environment.

the VTP primary server is the only switch that is allowed to create / remove VLANs across the environment.

Leave a Reply