How to use VTP -VLAN Trunking Protocol? - Part 1

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
okay this is going to be a tutorial on VTP or VLAN trunking protocol and I'm going to show you how to configure and how to setup VTP and make VTP work I'm using packet tracer cisco packet tracer and this is for the cisco CCNA now VTP is a cool protocol what it does is it allows if you have a network with let's say a lot of switches in it right and you've set up a bunch of VLANs let's say you have like just a lot of switches right and you've set up a bunch of VLANs and you don't want to have to go from switch to switch then configuring all those VLANs on every switch in your large network right and if there's a change of V lens if you have to add a new VLAN instead of having to go from switch to switch to switch adding that VLAN what you can do is is use V TP + V TP will disseminate the VLANs and synchronize the VLANs with the other switches on the network so it's ideal for a large network with lots of switches and it cuts down administrative overhead by allowing those VLANs to propagate from switch to switch using the V TP protocol now what we're gonna do though is just try to get it to work by starting with just we'll just start with two switches right I've got two 2960 switches and we'll just try to make it work with two switches to start with now I'm gonna connect them with crossover cables port one to port one alright and there's no configurations on these switches I just dragged them out right now right and so we're gonna make V TP work now we'll start by configuring it now we'll go into this switch and we're going to just go into it right off the bat here switch zero and we'll say an able and then I'm going to do a show V TP and then a question mark and you can see here counters password status will say status right and so by default you can see that it says V TP version number is two the configuration revision number is zero meaning that probably doesn't have any revisions probably not activated right it's zero because it's not not running yet it sees that the number of VLANs that are supported when you're running VTP is only 255 right now a number of existing VLANs 5 well those are the probably the five default VLANs that come enabled on the server by default VLAN one the default VLAN and then what is it one thousand two three four and five right which work with token ring and FDDI right so there's five default VLAN so it sees five now the operating mode by default right we just this is a brand new server we just did a show VTP command by default the operating mode you can see that it's in server mode right so that's kind of important then this is important VTP domain you can see that there's no VTP domain set which essentially kind of disables VTP from working right a couple things we need to know is how does pruning mode work I'm gonna have to talk about that eventually anyway so show VTP right so there's nothing there right now now what I'm gonna do is I'll do a show VLAN to show you the VLANs now the VLANs are you can see one one thousand two one thousand three one thousand four one thousand five now if we're gonna share VLAN information from switch to switch we need to make some VLANs so I'll do a configure te tab terminal go to global config mode and I'll say VLAN 11 and then I'll say VLAN 22 and VLAN 33 and VLAN 44 right so I've just created right notice I'm in global config mode and then I'm in VLAN configuration mode and I just made VLAN 11 22 33 and 44 I'll do a ctrl C hit enter and do a show VLAN and now you can see I have these VLANs now on the switch so now we're going to work with VTP so we'll say compte which is short for configure terminal right and then we'll say V TP space question mark and there it is domain we want to set the VPT VTP domain name so we'll say domain and I'll say my domain one right or we'll just say domain one right okay so now changing VTP domain name from null to domain one right let's do a VTP command again the space in the question mark and you can see the mode configure the VTP device mode well we know that it's in server by default but let's check it out anyway so we'll say mode and then question mark and you can see there's the three modes client mode server mode and transparent mode right so this is important because by default we're in server mode and in server mode we're allowed to add create VLANs delete VLANs and essentially we're going to be the one as a server to disseminate the VLANs to the clients right so anyway we don't really need to do anything here but if we did we'd say server right but it says here device mode already VTP server so we really didn't need to do anything there now the other thing we're going to need to do now is we're going to need to go to the other switch I'll go to the other switch this is a switch the second switch or switch one switch on the right and I'm going to enable and I'll do a compte to get to global config mode and then I'll say VTP mode VTB this is more important VTP domain domain one to put it into the same domain the same VTP domain then I'll say VTP mode client so now it's in client mode so now this has been set for client mode and it's part of the VTP domain and I didn't configure the VLANs on it because we want this switch to learn about the VLANs from the server right now the other thing we're going to need to do is right now this link right it's by default going from port 1 to port 1 and the ports on the switch are by default and VLAN 1 right the default VLAN right so right now this is what we'd call an access link right it's an access link right now and we want to turn it into a trunk link so that can trunk all the VLANs across the trunk right so we need to turn this link into a trunk on fa 0 1 and fa 0 1 so we'll go back to switch 0 and we'll in global config mode will say interface fa 0 / 1 right and we'll say tab switch port and we'll say switchport mode trunk so we'll make it a trunk and then we'll say switch port trunk allowed VLAN 1 through 99 okay so now all the VLANs VLANs 1 through 99 are allowed on the trunk and we change the mode of the port to a trunk right now now by default the other fa 0 1 port is in dynamic auto mode so it's going to turn into a trunk if this port is made a trunk the other port is automatically turned into a trunk right and so now VLAN information should be traveling across right so let's see if essentially it worked so we'll open up the switch here right and this is the switch that needs to learn about it we'll go to control C and we'll do show VTP status right and you can see that the version is 2 right configuration revision number 0 and look number of existing VLANs are not 5 which is default it's 9 so it learned about 4 VLANs it's in client mode the domain name is domain 1 right but it looks like it learned about the VLANs let's do a show VLAN command and you'll see that it learned VLAN 11 22 33 and 44 from it learned that from the other switch so it looks like it worked so now we have a trunk and we have VTP enabled and this switch is learning from this switch about the VLANs so well let's see here all right so once again show VLAN right 11 22 33 44 so let's do this we'll go to switch 0 and then we will do control C comp T to get to global config mode and we'll say V land let's add a VLAN will add VLAN 77 right so we just added a VLAN right so now do control C we'll do a show V TP status you'll see that it's got a revision number of 1 it's got 10 VLANs on the switch it's in server mode domain 1 right we'll go to the other switch now let's see if it learned about it well it hit our spacebar for more let's do a show VLAN again there's VLAN 77 so it learned about it and then we'll do a show VTP status and you'll see that it's got the configuration revision number of 1 also and so it successfully learned about the VLANs right so the other thing to remember is if we are to restart this switch right this switch does not store the VLAN information because it's in client mode right so as the client it won't store VLAN information if it we restart this switch it'll lose all its VLAN information but it's no problem because it just needs to relearn it from the server right so this is the VTP server right and this is the VTP client
Info
Channel: danscourses
Views: 181,352
Rating: 4.9000959 out of 5
Keywords: VTP, cisco, ccna, packet, tracer, how, to
Id: -Wk-giujtr8
Channel Id: undefined
Length: 11min 44sec (704 seconds)
Published: Tue Feb 14 2012
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.