0% found this document useful (0 votes)
16 views

CCNA Training VLAN Trunking Protocol VTP Tutorial

Uploaded by

jose
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

CCNA Training VLAN Trunking Protocol VTP Tutorial

Uploaded by

jose
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

Type text to search here...


Home > VLAN Trunking Protocol VTP Tutorial

VLAN Trunking Protocol VTP Tutorial


July 10th, 2011 Go to comments

This topic describes the features that VLAN Trunking Protocol (VTP) offers to support VLANs. To help
you understand the basic concept, this is a summary of what VTP is:

“VTP allows a network manager to configure a switch so that it will propagate VLAN
configurations to other switches in the network”

VTP minimizes misconfigurations and configuration inconsistencies that can cause problems, such as
duplicate VLAN names or incorrect VLAN­type specifications. VTP helps you simplify management of
the VLAN database across multiple switches.

VTP is a Cisco­proprietary protocol and is available on most of the Cisco switches.

Why we need VTP?

To answer this question, let’s discuss a real and popular network topology.

Suppose you are working in a medium company in a 5­floor office. You assigned each floor to a switch
for easy management and of course they can be assigned to different VLANs. For example, your bosses
can sit in any floor and still access Manage VLAN (VLAN 7). Your technical colleagues can sit
anywhere on the floors to access Technical VLAN (VLAN 4). This is the best design because each
person’s permission is not limited by the physical location.

http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 1/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

Now let’s discuss about VTP role in this topology! Suppose VTP is not running on these switches. One
day, your boss decides to add a new department to your office, the Support Department, and you are
tasked to add a new SUPPORT VLAN for this department. How will you do that? Well, without VTP
you have to go to each switch to enable this new VLAN. Fortunately your office only has 5 floors so you
can finish this task in some hours :)

But just imagine if your company was bigger with 100­floor office and some VLANs needed to be added
every month! Well, it will surely become a daunting task to add a new VLAN like this. Luckily, Cisco
always “thinks big” to create a method for you to just sit at the “Main Sw”, adding your new VLANs and
magically, other switches automatically learn about this VLAN, sweet, right? It is not a dream, it is what
VTP does for you!

How VTP Works

To make switches exchange their VLAN information with each other, they need to be configured in the
same VTP domain. Only switches belonging to the same domain share their VLAN information. When a
change is made to the VLAN database, it is propagated to all switches via VTP advertisements.

To maintain domain consistency, only one switch should be allowed to create (or delete, modify) new
VLAN. This switch is like the “master” of the whole VTP domain and it is operated in Server mode.
This is also the default mode.

Other switches are only allowed to receive and forward updates from the “server” switch. They are
operated in Client mode.

http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 2/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

In some cases, the network manager doesn’t want a switch to learn VTP information from other switches.
He can set it to Transparent mode. In this mode, a switch maintains its own VLAN database and never
learn VTP information from other switches (even the server). However, it still forwards VTP
advertisements from the server to other switches (but doesn’t read that update). A transparent switch can
add, delete and modify VLAN database locally.

Now return to the example above, we can configure any switches as the “server” but for our convenience,
the “Main Sw” should be assigned this function and we should place it in a safe place.

As said above, VTP advertisements bring VLAN information to all the switches in a VTP domain. Each
VTP advertisement is sent with a Revision number. This number is used in order to determine whether
the VTP advertisement is more recent than the current version of that switch. Because each time you
make a VLAN change in a switch, the configuration revision is incremented by one. So the higher the
revision number, the better your VTP advertisement.

For example, the first time the Main Sw sends a VTP advertisement, its Revision number is 1. When you

http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 3/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

add a new VLAN to the Main Sw, it will send a VTP advertisement with the Revision number of 2.
Client switches first receive the VTP advertisement with the Revision number of 1, which is bigger than
its current Revision number (0) so it updates its VLAN database. Next it receives the VTP advertisement
with the Revision number of 2, it continues comparing with its current Revision number (1) ­> it
continues update its VLAN database.

One important thing you must know is when a switch receives a better VTP advertisement, it deletes its
whole VTP information and copy the new information from the better VTP advertisement to its VLAN
database. A switch does not try to compare its own VLAN database with information from the received
VTP advertisements to find out and update the difference!

Note: VTP advertisements are sent as multicast frames and all neighbors in that domain receive the
frames.

The “show vtp status” command analysis

The most important command to view the status of VTP on Cisco switches that each CCNA learners
must grasp is the “show vtp status” command. Let’s have a look at the output of this command:

+ VTP Version: displays the VTP version the switch is running. By default, the switch runs version 1 but
can be set to version 2. Within a domain, the two VTP versions are not interoperable so make sure to
configure the same VTP version on every switch in a domain.
+ Configuration Revision: current Revision number on this switch.
+ Maximum VLANs Supported Locally: maximum number of VLANs supported locally.
+ Number of Existing VLANs: Number of existing VLANs.
+ VTP Operating Mode: can be server, client, or transparent.
+ VTP Domain Name: name that identifies the administrative domain for the switch.

By default, a switch operates in VTP Server mode with a NULL (blank) domain name with no password
configured (the password field is not listed in the output)

+ VTP Pruning Mode: displays whether pruning is enabled or disabled. We will discuss about VTP
Pruning later.
+ VTP V2 Mode: displays if VTP version 2 mode is enabled. VTP version 2 is disabled by default.
+ VTP Traps Generation: displays whether VTP traps are sent to a network management station.
+ MD5 Digest: a 16­byte checksum of the VTP configuration.
+ Configuration Last Modified: date and time of the last configuration modification. Displays the IP
address of the switch that caused the configuration change to the database.

VTP Pruning

http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 4/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

To understand what VTP Pruning is, let’s see an example:

When PC A sends a broadcast frame on VLAN 10, it travels across all trunk links in the VTP domain.
Switches Server, Sw2, and Sw3 all receive broadcast frames from PC A. But only Sw3 has user on
VLAN 10 and it is a waste of bandwidth on Sw2. Moreover, that broadcast traffic also consumes
processor time on Sw2. The link between switches Server and Sw2 does not carry any VLAN 10 traffic
so it can be “pruned”.

VTP Pruning makes more efficient use of trunk bandwidth by forwarding broadcast and unknown unicast
frames on a VLAN only if the switch on the receiving end of the trunk has ports in that VLAN. In the
above example, Server switch doesn’t send broadcast frame to Sw2 because Sw2 doesn’t have ports in
http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 5/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

VLAN 10.

When a switch has a port associated with a VLAN, the switch sends an advertisement to its neighbors to
inform that it has active ports on that VLAN. For example, Sw3 sends an advertisement to Server switch
to inform that it has active port for VLAN 10. Sw2 has not advertised about VLAN 10 so Server switch
will prune VLAN 10 on the trunk to Sw2.

You only need to enable pruning on one VTP server switch in the domain.

VTP Configuration

Main Sw(config)#vtp version 2


Main Sw(config)#vtp domain 9tut
Main Sw(config)#vtp mode server
Main Sw(config)#vtp password keepitsecret

On client switches

Client(config)#vtp version 2
Client(config)#vtp domain 9tut
Client(config)#vtp password keepitsecret
Client(config)#vtp mode client

Notice: Before configuring VTP make sure the links between your switches are trunk links. Your trunk
link can automatically be formed if both of your switches are not 2960 or 3560 because ports on the 2960
and 3560 switches are set to dynamic auto by default. If both sides are set to dynamic auto, the link will
remain in access mode. To configure trunk between these ports, use these commands:

Client(config)#interface fa0/1 (or the interface on the link you want to be trunk)
Client(config­if)#switchport mode trunk

These commands only need to be used on one of two switches to form the trunk.

Below summaries important notes about VTP:

+ Whenever a change occurs in the VLAN database, the VTP server increments its configuration revision
number and then advertises the new revision throughout the VTP domain via VTP advertisements.
+ VTP operates in one of three modes: server, transparent, or client.

VTP modes:

* Server: The default mode. When you make a change to the VLAN configuration on a VTP server, the
change is propagated to all switches in the VTP domain. VTP messages are transmitted out of all the
trunk connections. In Server mode we can create, modify, delete VLANs.

* Client: cannot make changes to the VLAN configuration when in this mode; however, a VTP client can
send any VLANs currently listed in its database to other VTP switches. VTP client also forwards VTP
advertisements (but cannot create VTP advertisements).

* Transparent: When you make a change to the VLAN configuration in this mode, the change affects
only the local switch and does not propagate to other switches in the VTP domain. VTP transparent mode
does forward VTP advertisements that it receives within the domain.
http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 6/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

VTP Pruning makes more efficient use of trunk bandwidth by forwarding broadcast and unknown unicast
frames on a VLAN only if the switch on the receiving end of the trunk has ports in that VLAN.

For more information about VTP, I highly recommend you to visit the official tutorial about VTP
published by Cisco. It is very comprehensive: http://www.cisco.com/warp/public/473/vtp_flash/

Comments (328) Comments


Comment pages
« Previous 1 … 5 6 7 697

1. ramine
April 6th, 2015

Please can somebody can send me the latest dumb of 200­120?

2. kaio
April 27th, 2015

Please send me the latest ccna 200­120 dumps to [email protected]

3. Shann
May 5th, 2015

Dear all,
send me the latest ccna 200­120 dumps to [email protected]

4. Lynda
May 5th, 2015

Hello guys!!!!!

Please can somebody send me the latest ccna 200­120 dumps to [email protected]

Thank you

5. Rahman
May 17th, 2015

send me the latest ccna 200­120 dumps to [email protected]

6. Pooja
June 11th, 2015

hay Guys!!!
please send me the latest CCNA 200­120 Dumps to [email protected]

7. Allan
July 13th, 2015

I love the tutorial

8. Allan
July 14th, 2015
http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 7/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

please send me the latest CCNA 200­120 Dumps to [email protected]. Tks a lot

9. steven liu
July 15th, 2015

please send me the latest CCNA 200­120 Dumps to [email protected]


good luck for the sender. Tks a lot

10. Beginner
July 18th, 2015

Best CCNA toturial. Thank you.


Can you also please send me the latest CCNA 200­120 Dumps to [email protected]

11. Junior
July 20th, 2015

great tuttorial, can you send me updated dumps to [email protected]

12. ergo proxy


July 29th, 2015

you are amazing, everyone should pay for 9tut even if they dont need premium membership.
Thank you 9tut

13. Namrata
August 3rd, 2015

Hello Sir
Why 9tut is not displaying questions since few days.. only answers and explaination is displaying
on the scene.. please do the needfull..

14. bluecore
August 10th, 2015

Hi guys! please send me the latest dumps 200­120? thanks in advance! :)

15. bluecore
August 10th, 2015

Hi guys! please send me the latest dumps 200­120? please send it at [email protected] Thanks
a lot in advance! :)

16. Evans
August 19th, 2015

Hi guys please send me the latest CCNA dumps. am writing the exams before the end of August.
Thanks in advance. [email protected]

17. Fahad
August 26th, 2015

http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 8/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

Please send me the latest CCNA dumps 200­120 at [email protected]

18. dereje
September 3rd, 2015

can send me CCNA and CNNP

19. Haim
September 3rd, 2015

GRATE SITE
send me the latest ccna 200­120 dumps to [email protected]
thank you

20. saman jaff


September 5th, 2015

hello , why interface port config can not transfer to client ?

21. prasnna
September 5th, 2015

please,
send me the dumps, i going to appear for ccna 200­120 exam in a week.

22. Haim
September 6th, 2015

Hello
the link at the end of the article is unavailable .the new one I think is
http://www.cisco.com/c/en/us/support/docs/lan­switching/vtp/98154­conf­vlan.html

23. Leloko Mothebe


September 14th, 2015

interesting…

24. Anonymous
September 20th, 2015

where is question for explantion?

25. eliemacho
September 26th, 2015

I LOVE 9TUT

26. Romeo
September 27th, 2015

Hi guys! please send me the latest dumps 200­120? please send it at [email protected] Thanks a
lot in advance! :)

http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 9/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

27. ccruz
October 1st, 2015

all this people asking for dumps, smfh go head and study and if its not your thing move on, why im
here? well i was doing a google search “vtp modes” and here i im…

and yes tutorials are great but if you really want to succeed, and go head pick a book and study
hard, nothing is easy in life (:

28. Anonymous
October 12th, 2015

Hi Friend Please share the latest Dumps @ [email protected]


Next Week Im gonna take CCNA Exam

Comment pages
« Previous 1 … 5 6 7 697
Add a Comment
Name

Submit Comment
Subscribe to comments feed
Virtual Local Area Network VLAN Tutorial IPv6 Tutorial

Premium Membership
Become a member to interact with all questions and read all tutorials, labs!

Find out more or Sign In

CCNA 200­120
CCNA Lab Sim
CCNA – Basic Questions
http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 10/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

CCNA – OSI & TCP/IP Model


CCNA – IOS Questions
CCNA – WAN Questions
CCNA – Switch Questions
CCNA – Switch Questions 2
CCNA – VLAN Questions
CCNA – Trunking Questions
CCNA – Trunking Questions 2
CCNA – EtherChannel
CCNA – InterVLAN Questions
CCNA – STP
CCNA – STP 2
CCNA – RSTP
CCNA – Access list Questions
CCNA – Subnetting
CCNA – Subnetting 2
CCNA – IP Routing Questions
CCNA – IP Routing 2
CCNA – Frame Relay
CCNA – Frame Relay 2
CCNA – NAT PAT Questions
CCNA – OSPF Questions
CCNA – OSPF Questions 2
CCNA – EIGRP Questions
CCNA – DHCP Questions
CCNA – HSRP VRRP GLBP
CCNA – SNMP Questions
CCNA – NetFlow Questions
CCNA – Syslog Questions
CCNA – Security Questions
CCNA – Operation Questions
CCNA – Operation 2
CCNA – Show commands
CCNA – Troubleshooting
CCNA – IPv6
CCNA – IPv6 Questions 2
CCNA – Drag and Drop 1
CCNA – Drag and Drop 2
CCNA – Drag and Drop 3
CCNA – Drag and Drop 4
CCNA – Drag and Drop 5
CCNA FAQs & Tips
Share your CCNA Experience

CCNA Self­Study
Practice CCNA GNS3 Labs
CCNA Knowledge
http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 11/12
17/10/2015 CCNA Training » VLAN Trunking Protocol VTP Tutorial

CCNA Lab Challenges

Network Resources
Free Router Simulators

ICND1/ICND2 Website

CCNP ­ ROUTE Website

CCNP ­ SWITCH Website

CCNP ­ TSHOOT Website

Top

Copyright © 2010­2013 CCNA Training


Site Privacy Policy. Valid XHTML 1.1 and CSS 3.BH

http://www.9tut.com/vlan­trunk­protocol­vtp­tutorial 12/12

You might also like