Tutorial: Cisco CCNA LAB

July 30, 2017 | Views: 7101

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

This document contains one lab + theory on VTP – Virtual LAN Trunking Protocol


VLAN stands for Virtual LANS (Local Area Network). These are implemented at switches to create a different group of users or different departments. VLAN ID is the user defined number given to the particular VLAN.

Trunking is used to pass data between two connected switches. The ports that connect the two switches at both the ends are made as trunk ports.

VTP (Virtual LAN Trunking Protocol). It is a switching technology and is used to replicate configurations and/or data between switches. It has three modes namely:

  • Server Mode
  • Transparent Mode
  • Client mode

VTP has various uses, such as the four-floor concepts. The server room ( 4th floor)  contains the server switch, operating in VTP server mode.

The 3rd floor consists of the transparent switch, connected to the server switch, operating in the VTP transparent mode.

The 2nd & the 1st-floor switches are the client switches, which are operating in the VTP client mode.

VTP configuration:

Switch 1:


Switch1# conf t

Switch1(config)# interface fast 0/1

Switch1(config-if)# switchport mode trunk               (Making the port as trunk)



Switch1(config)# vtp domain hp

Switch1(config)# vtp password 1234

Switch1(config)# vtp mode server                             (optional : default mode is server)



//Creating VLAN

Switch1(config)# vlan 4

Switch1(config-vlan)# name IT


Switch 2:



Switch2# conf t

Switch2(config)# interface fast 0/1

Switch2(config-if)# switchport mode trunk               (Making the port as trunk)


Switch2(config)# interface fast 0/2

Switch2(config-if)# switchport mode trunk               (Making the port as trunk)




Switch2(config)# vtp mode transparent


Switch2(config)# vtp domain hp


Switch2(config)# vtp password 1234



Switch 3:




Switch3# conf t

Switch3(config)# interface fast 0/1

Switch3(config-if)# switchport mode trunk               (Making the port as trunk)



Switch3(config)# vtp mode client


Switch3(config)# vtp domain hp


Switch3(config)# vtp password 1234


Switch3# exit

Switch3# sh vlan brief                                                                    
(gives you the VLAN information)

:: In the output, you can see VLAN 10, It is created automatically. This is because data is replicated from switch 1 to switch 3, i.e; from the server to client.

Remember this happened because the VTP domain and password were the same for both server and client.

Note: The VLAN 10 will not be created in the switch 2 (transparent mode) because it only acts as a bridge between server and client.


Important troubleshooting commands:

·         Show vlan brief

·         Show vtp status

·         Show interfaces trunk – view trunking info.

·         Show vtp password

·         Show ip interface brief – view brief information about the interfaces and the assign IPs.


Share with Friends
Use Cybytes and
Tip the Author!
Share with Friends
Ready to share your knowledge and expertise?
1 Comment
  1. The vlan created at the server switch was vlan id 10 & name IT, but the vlan told to be seen at the clien switch is vlan10. so this might a litle confusing.

    Over all it is very supportive tutor, thank you cybrary!

Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge


We recommend always using caution when following any link

Are you sure you want to continue?