VLAN Trunking Protocol is a Cisco proprietary protocol used for communicating VLAN information by Cisco switches. Through VTP, the user can synchronize VLAN name, VLAN ID, and other VLAN information; with Cisco switches inside the same domain. These VTP domains are a set of trunked switches with a similar VTP domain name, version, password, and some other VTP settings. All Cisco switches inside the same domain share their VLAN data with each other.
There are three VTP versions, i.e., V1, V2, and V3. V1 and V2 versions are alike except that V2 supports token ring VLANs and V3 is quite different as it adds the following features:
- V3 supports extended VLANs (1006 to 4094). Whereas V1 and V2 can broadcast only VLANs 1 to 1005.
- V3 supports private VLAN.
- V3 supports VTP primary server and secondary servers.
- It also supports enhanced authentication.
- V3 is backward compatibility with V1 and V2.
- V3 has the ability to be configured on a per-port basis.
VTP Modes :
The user can configure a switch to work in any one of the following VTP modes:
- Server –
In VTP server mode, the user can make VLANs, modify and delete them, and they can also specify additional configuration constraints such as VTP pruning and VTP version for the whole domain. These servers promote their VLAN configuration to additional switches that exist in the same domain, and they also synchronize their configuration with additional switches based upon the announcements acknowledged over trunk links. The default mode in VTP is server.
- Client –
VTP clients act in a similar way as the VTP servers, though here the user canât change, create, or delete VLANs.
- Transparent –
VTP transparent switches donât partake in VTP. A VTP transparent switch doesnât promote its VLAN configuration and it also doesnât synchronize its VLAN configuration based on acknowledged announcements, however, these switches do transmit VTP announcements that they receive from trunk ports in Version 2 of VTP.
- VTP mode Off –
In the three described modes, VTP announcements are acknowledged and forwarded as soon as the switch goes in the management domain state. In the off mode, switches act in a similar way as they do in VTP transparent mode however there is one difference that is the VTP announcements are not forwarded.
The user can configure VLANs on Catalyst 1900, 2820, and 4500 series switches when the switch is in transparent mode or VTP server. The user can use the MIB (Management information base), CLI, or console menus to modify a VLAN configuration when the switch is in either transparent mode or server.
A switch configured in VTP server mode promotes VLAN configuration to adjoining switches over its trunks and learns new VLAN configurations from those neighboring switches. The user can also use the server mode to add or delete VLANs and to modify VLAN information by using either the CLI, the VTP MIB, or the console. For example, VTP promotes the new VLAN, whenever the user adds a VLAN and both servers and clients prepare to receive traffic on their trunk ports.
Subsequently, the switch automatically changes to VTP client mode, it forwards announcements and learns new data from announcements. Though, the user canât add, modify, or delete a VLAN over the console, the CLI, or the MIB. The VTP client doesnât preserve VLAN information in NVM (non-volatile memory); Hence as soon as it starts, it learns the configuration by getting announcements from the trunk ports.
In VTP transparent mode, the switch doesnât learn or promote VLAN configurations from the network. Whenever a switch is in transparent mode, the user is allowed to add VLANs, modify, or delete them over the CLI, MIB, or the console.
VTP configuration :
For exchanging VTP messages there are some basic conditions that need to be fulfilled.
- The VTP domain name should be the same on both switches.
- VTP versions should be the same.
- VTP domain password should be the same.
- The switch should be configured as either a VTP client or a VTP server.
- A trunk link should be used between switches.

VTP
In the image above three switches are connected through trunk links. On switch1, the VTP domain name will be configured using the âvtp domainâ command and VTP password by using the âvtp passwordâ command.
Switch1(config)#vtp domain mlkjr
Changing VTP domain name from NULL to mlkjr
Switch1(config)#vtp password kjtmkcbb
Setting device VLAN database password to kjtmkcbb
Now configuring Switch2 and Switch3 as VTP clients.
Switch2(config)#vtp mode client
Setting device to VTP CLIENT mode.
Switch2(config)#vtp domain mlkjr
Changing VTP domain name from NULL to mlkjr
Switch2(config)#vtp password kjtmkcbb
Setting device VLAN database password kjtmkcbb
Switch3(config)#vtp mode client
Setting device to VTP CLIENT mode.
Switch3(config)#vtp domain mlkjr
Changing VTP domain name from NULL to mlkjr
Switch3(config)#vtp password kjtmkcbb
Setting device VLAN database password kjtmkcbb
Now create a new VLAN on Switch1, the VTP will be sent to Switch2 and Switch3 creating a new VLAN automatically on Switch2 and Switch3.
Switch1(config)#vlan 30
Switch2 and Switch3 will create the VLAN 30 automatically. Now checking if it has been created or not.
Switch2#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -----------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
2 Accounting active Fa/05
30 VLAN0030 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
Now checking for Switch3
Switch3#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -----------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
2 Accounting active Fa/05
30 VLAN0030 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
Similar Reads
CCNA Tutorial for Beginners
This CCNA Tutorial is well-suited for the beginner as well as professionals, and It will cover all the basic to advanced concepts of CCNA like Components of Computer Networking, Transport Layer, Network Layer, CCNA training, Cisco Networking, Network Design, Routing and Switching, etc. which are req
8 min read
Basics of Computer Networking
Components of Computer Networking
NIC Full Form - Network Interface Card
NIC stands for Network Interface Card. NIC is additionally called Ethernet or physical or network card. NIC is one of the major and imperative components of associating a gadget with the network. Each gadget that must be associated with a network must have a network interface card. Even the switches
4 min read
What is a Network Switch and How Does it Work?
The Switch is a network device that is used to segment the networks into different subnetworks called subnets or LAN segments. It is responsible for filtering and forwarding the packets between LAN segments based on MAC address. Switches have many ports, and when data arrives at any port, the desti
9 min read
What is Network Hub and How it Works?
Hub in networking plays a vital role in data transmission and broadcasting. A hub is a hardware device used at the physical layer to connect multiple devices in the network. Hubs are widely used to connect LANs. A hub has multiple ports. Unlike a switch, a hub cannot filter the data, i.e. it cannot
6 min read
Introduction of a Router
Network devices are physical devices that allow hardware on a computer network to communicate and interact with one another. For example Repeater, Hub, Bridge, Switch, Routers, Gateway, Router, and NIC, etc. What is a Router?A Router is a networking device that forwards data packets between computer
12 min read
Types of Ethernet Cable
An ethernet cable allows the user to connect their devices such as computers, mobile phones, routers, etc, to a Local Area Network (LAN) that will allow a user to have internet access, and able to communicate with each other through a wired connection. It also carries broadband signals between devic
5 min read
Transport Layer
Transport Layer responsibilities
The transport Layer is the second layer in the TCP/IP model and the fourth layer in the OSI model. It is an end-to-end layer used to deliver messages to a host. It is termed an end-to-end layer because it provides a point-to-point connection rather than hop-to-hop, between the source host and destin
5 min read
Introduction of Ports in Computers
A port is basically a physical docking point which is basically used to connect the external devices to the computer, or we can say that A port act as an interface between the computer and the external devices, e.g., we can connect hard drives, printers to the computer with the help of ports. Featur
3 min read
What is TCP (Transmission Control Protocol)?
Transmission Control Protocol (TCP) is a connection-oriented protocol for communications that helps in the exchange of messages between different devices over a network. It is one of the main protocols of the TCP/IP suite. In OSI model, it operates at the transport layer(Layer 4). It lies between th
5 min read
TCP 3-Way Handshake Process
The TCP 3-Way Handshake is a fundamental process that establishes a reliable connection between two devices over a TCP/IP network. It involves three steps: SYN (Synchronize), SYN-ACK (Synchronize-Acknowledge), and ACK (Acknowledge). During the handshake, the client and server exchange initial sequen
6 min read
User Datagram Protocol (UDP)
User Datagram Protocol (UDP) is a Transport Layer protocol. UDP is a part of the Internet Protocol suite, referred to as UDP/IP suite. Unlike TCP, it is an unreliable and connectionless protocol. So, there is no need to establish a connection before data transfer. The UDP helps to establish low-late
10 min read
Cisco Networking Devices
Network Devices (Hub, Repeater, Bridge, Switch, Router, Gateways and Brouter)
Network devices are physical devices that allow hardware on a computer network to communicate and interact with each other. Network devices like hubs, repeaters, bridges, switches, routers, gateways, and brouter help manage and direct data flow in a network. They ensure efficient communication betwe
9 min read
Collision Detection in CSMA/CD
CSMA/CD (Carrier Sense Multiple Access/ Collision Detection) is a media access control method that was widely used in Early Ethernet technology/LANs when there used to be shared Bus Topology and each node ( Computers) was connected by Coaxial Cables. Nowadays Ethernet is Full Duplex and Topology is
7 min read
Collision Domain and Broadcast Domain in Computer Network
Prerequisite - Network Devices, Transmission Modes The most common network devices used are routers and switches. But we still hear people talking about hubs, repeaters, and bridges. Do you ever wonder why these former devices are preferred over the latter ones? One reason could be: 'because they ar
5 min read
Difference between layer-2 and layer-3 switches
A switch is a device that sends a data packet to a local network. What is the advantage of a hub? A hub floods the network with the packet and only the destination system receives that packet while others just drop due to which the traffic increases a lot. To solve this problem switch came into the
5 min read