Configure VLAN Trunking Protocol VTP

In this article I describe how to configure VLAN Trunking Protocol VTP in networking. VLAN Trunking Protocol VTP manage all VLANs of a network. VLAN provides multiple virtual networks in a physical network. We can break a local area network into multiple virtual networks. The devices of same virtual network can communicate with each other without interfere to other virtual network. The switchports of a switch can be used as access port or trunk port. The function of access port and trunk port are different.

The switch provide a single broadcast domain to all connected devices by default. Each port of switch creates single collision domain. VLAN breaks the broadcast domain into small broadcast domain. If we need to make communication between different VLANs then we need a router. Router have the feature to provide communication between different networks. VLAN provides the logical network within a single physical network.

Every switchport works on separate collision domain. We can say each device connected with a switchport remains in separate collision domain. By default all switchports of a switch works in a single broadcast domain. It can be define as all the devices working in a single LAN remains in a single broadcast domain. The big network of single broadcast domain can be divided into different small broadcast domains by creating the VLANs in the network. Every VLAN have its own broadcast domain.

Breaking the large broadcast domain into small broadcast domains provides an extra layer of security in the network. The devices of different broadcast domains can not communicate with each other. The swithports can be configured to restrict the unauthorized use by unwanted devices. Management of networking devices become easier by creating VLANs. Network administrator can monitor the small network more efficiently than a large network.

You may also like to read --  VLAN Trunking Protocol VTP

We need to configure VLAN Trunking Protocol VTP to set the modes of VTP in switches. You can add, delete and rename VLANs in a VTP enabled network. The information of VLANs broadcast by VTP enabled switches. VLAN Trunking Protocol VTP was created by Cisco. In VTP mode the VLANs works as a plug and play.

Important terms of VLAN Trunking Protocol VTP

There are two important terms related to VTP. The first one is VTP Server and second is VTP client. By default all switches remains in VTP server mode. We require to define the domain name in the VTP server switch. A switch can use a single VTP domain at a time. If there is only single VLAN across the whole network, then there is no need of VLAN trunking Protocol VTP. All switches use VLAN database to maintain the VLAN information in VTP mode. On getting the information of newly created VLAN, the existing VLAN database updated automatically.

configure vlan trunking protocol vtp, ccna, ccna tutorials

There are three VTP modes available in any switch. You can see the modes by running the below commands in CLI of switch.

configure vlan trunking protocol vtp, ccna, ccna tutorials

Configure VTP server mode

Server mode is the default mode for Cisco switches.  You can check the VTP status by running the command show vtp status. By default the result will be shown as below.

 Switch>en
 Switch#show vtp status 
 VTP Version : 2
 Configuration Revision : 0
 Maximum VLANs supported locally : 255
 Number of existing VLANs : 5
 VTP Operating Mode : Server
 VTP Domain Name : 
 VTP Pruning Mode : Disabled
 VTP V2 Mode : Disabled
 VTP Traps Generation : Disabled
 MD5 digest : 0x7D 0x5A 0xA6 0x0E 0x9A 0x72 0xA0 0x3A 
 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
 Local updater ID is 0.0.0.0 (no valid interface found)
 Switch# 

You can see the VTP operation mode is server. The VTP domain name is not defined by default. Run the below commands one by one to configure the VTP server in a switch.

 Switch#
 Switch#config t
 Enter configuration commands, one per line. End with CNTL/Z.
 Switch(config)#vtp mode server
 Switch(config)#vtp domain ccnatutorials
 Switch(config)#vtp password ccna 

After running above commands you can see the VTP status as shown in below command window. Here you can see the VTP mode and domain is setup to server and ccnatutorials respectively.

 Switch(config)#do show vtp status
 VTP Version : 2
 Configuration Revision : 0
 Maximum VLANs supported locally : 255
 Number of existing VLANs : 5
 VTP Operating Mode : Server
 VTP Domain Name : ccnatutorials
 VTP Pruning Mode : Disabled
 VTP V2 Mode : Disabled
 VTP Traps Generation : Disabled
 MD5 digest : 0xCA 0x8E 0xCB 0x36 0x46 0x9A 0xA0 0xCB 
 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
 Local updater ID is 0.0.0.0 (no valid interface found)
 Switch(config)# 

Configure VTP Client Mode

Remember the client server architecture. Similarly in VLAN Trunking Protocol VTP the client controlled by the VTP server. The client switches received the VLAN information by the VTP servers and update the VLAN database. Client switch also forward the same information to next connected switches. The clients cannot add, delete or edit a VLAN. The VLAN information does not stored in NVRAM in client switches. So when you need to add a switch in a network. Change the mode of VTP to Client mode before adding it to an existing VTP enabled network.  Run the below commands to set VTP mode to client mode.

 Switch#
 Switch#config t
 Enter configuration commands, one per line. End with CNTL/Z.
 Switch(config)#vtp mode server
 Switch(config)#vtp domain ccnatutorials
 Switch(config)#vtp password ccna 

You can check the vtp settings after configure VTP client mode as shown in below command window.

 Switch(config)#do show vtp status
 VTP Version : 2
 Configuration Revision : 0
 Maximum VLANs supported locally : 255
 Number of existing VLANs : 5
 VTP Operating Mode : Client
 VTP Domain Name : ccnatutorials
 VTP Pruning Mode : Disabled
 VTP V2 Mode : Disabled
 VTP Traps Generation : Disabled
 MD5 digest : 0xCA 0x8E 0xCB 0x36 0x46 0x9A 0xA0 0xCB 
 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
 Switch(config)# 

Configure VTP Transparent mode

We know how a switch works in VTP server or VTP client mode in a network. The third mode known as transparent mode allow a switch to keep away from VTP domain. We can say in transparent mode the switch remain separate from existing VTP domain. In transparent mode the switch do not advertise its VLAN database. To configure transparent mode run the below commands in CLI of the switch.

 Switch(config)#vtp mode transparent 

Now check the vtp configuration in switch by running below commands

 Switch(config)#do show vtp status
 VTP Version : 2
 Configuration Revision : 0
 Maximum VLANs supported locally : 255
 Number of existing VLANs : 5
 VTP Operating Mode : Transparent
 VTP Domain Name : ccnatutorials
 VTP Pruning Mode : Disabled
 VTP V2 Mode : Disabled
 VTP Traps Generation : Disabled
 MD5 digest : 0xCA 0x8E 0xCB 0x36 0x46 0x9A 0xA0 0xCB 
 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
 Switch(config)#vtp domain name 
 Changing VTP domain name from ccnatutorials to name
 Switch(config)#vtp domain 
 % Incomplete command.
 Switch(config)#
 Switch# 

This article is just about the configure VLAN Trunking Protocol VTP. I hope you found this article helpful related to how to configure VLAN Trunking Protocol VTP. For any query or suggestion on this article you may contact us or drop a comment below. Your suggestions are always welcome by us.

Share this article in your social circle :)
, ,

2 thoughts on “Configure VLAN Trunking Protocol VTP

Leave a Reply

Your email address will not be published. Required fields are marked *