VTP Configuration with Packet Tracer : www.ipcisco.com

VTP Configuration with Packet Tracer

Category: Switching, VTP
Author: gokhankosem, on 19 Jun 12 - 8 Comments
        To configure VTP we will use two swithes and two PCs for each swithes given below:

        First of all we must configure the trunk between swithes. Because VTP information pass through only on trunk links on management VLAN (VLAN 1). To do this:

        SwitchA# enable
        SwitchA(config)# interface fa 0/24
        SwitchA(config-if)# switchport mode trunk
        %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down
        %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up
        SwitchA(config-if)# end

       Now the trunk is activated. For switchport mode trunk command it is not necessary to use the same command at the other side of the link, without this job it is automatically activated.

       After that we configure ServerA as a VTP Server and the Server B as a VTP Client. The default switch VTP mode is VTP Server, so we did not change anything on SwitchA. But in SwitchB we will change vtp mode. Then in both switches we will confiugreVTP domain, VTP password, vtp version and vtp prunning. The related configuration for both switches are below:

        SwitchB# enable
        SwitchB(config)# vtp mode client
        Setting device to VTP CLIENT mode.
        SwitchB(config)# vtp domain cisco
        Changing VTP domain name from NULL to cisco
        SwitchB(config)# vtp password abc123
        SwitchB(config)# vtp version 2
        SwitchB(config)# vtp prunning enable
        SwitchB(config)# end

       To verify use “show vtp status” and the screenshot will be like below:

       We will configure the same parameters for the switchA except VTP mode.

       SwitchA# enable
       SwitchA(config)# vtp mode client
       Device mode already VTP SERVER.
       SwitchA(config)# vtp domain ciscoo
       Changing VTP domain name from NULL to ciscoo

       04:50:49 %DTP-5-DOMAINMISMATCH: Unable to perform trunk negotiation on port Fa0/24 because of VTP domain mismatch.

       SwitchA(config)# vtp domain ciscoo
       Changing VTP domain name from ciscoo to cisco
       SwitchA(config)# vtp password abc123
       SwitchA(config)# vtp version 2
       SwitchA(config)# vtp prunning enable
       SwitchA(config)# end

       Above, during VTP domain configuration an error occur because of the domain missmatch and after that when we corrected the configuration then the error dissappeared.

       To verify use “show vtp status” and the screenshot will be like below:

       To test our configuration lets create three additional VLANs on SwitchA and then check switchB if the same VLANs created under it too.To do this:

       SwitchA(config)# vlan 10
       SwitchA(config)# vlan 20
       SwitchA(config)# vlan 30
       SwitchA(config)# end

       When we use “show vlan brief” command on SwitchA we will see the created VLANs like below:

       Again, when we check VLANs with the same command we will see the same VLANs:

       After this configuration, whenever we create, delete or modify a VLAN on SwitchA, the same change will be done in SwitchB too. Think about how a usefull function is it during configuration a large network with many switches!!! I hope this article will be helpfull for you…

Join us on Facebook

About the Author
Gokhan Kosem is a telecommunation engineer and a computer networks professional. His ambition to IP networks and end-to-end system installation made him to prepare this web-site. By sharing his experiences about various networking protocols beside different system installation experiences and Cisco, Juniper, Alcatel-Lucent devices configurations, he is aimed to be helpful for his collegues in all over the world. He is currently lives in Istanbul, Turkey.

8 comments for “VTP Configuration with Packet Tracer”



July 9th, 2012 at 18:00

Good Explanation : …

September 29th, 2012 at 17:25

i tried to make mismatch error..even after mismatch its actually works..what should went wrong during mismatch.i tried in packet tracer..

December 11th, 2012 at 20:45


July 23rd, 2013 at 08:26
Swaroop Shirote


August 18th, 2013 at 10:57
Md. Zulker Nain

Mr.Gokhan Kosem ,I am very impressed to see someone whose aim is to help others and I want to give a very large thanks,because in our profession it is very difficult to find a person who is helpful.

March 31st, 2014 at 17:23

Leave a Reply