Trunk Port configuration for beginners using Packet Tracer (Homelab) + verification commands

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome back to the channel and today's video is another Network tutorial using Packet Tracer that is focusing on trunk ports this is the second video on my network simulation tutorial and if you're new to this video you can check out the first video that I made showing you how to install Packet Tracer and how to configure access ports in a network simulation environment so in this video we are just doing Trunk ports and you should be expected to know how to configure access ports already and before we get started with the tutorial today I'm going to show you first what the home lab is going to look like after we finish doing it so this is the example of the lab that we are going to do today okay so in this lab I'm going to show you how we actually do it in the workplace in real world scenario so so I have separated the switches in in here to different floors so this box represents one floor for like every building for example and we have one switch for every floor in the building and we have different devices of course like computers that are connected to both of the switch and the switches on every floor will be connected together using a trunk Port Okay so in this home lab we have three vlans we have VLAN 10 in here we have VLAN 20 and VLAN 30 so that represents different departments for this scenario so in this example we are trunking the switches together and we are only allowing VL 10 and 20 to go through the traffic to every switch so I'm going to show you how to configure the trunk ports so that they can connect and talk to each other and also going to show you how to only allow specific vlans in your company for example okay so let's recreate the home lab that I just showed you so I was just a little fancy when it comes to designing this lab so we can use different shapes in here just to be more visual when you're doing your home labs for example so there are different icons in here that represents like drawing shapes just like rectangle ellipse so for example we are doing the boxes I'm just going to click on this and you can select the fill color I don't want it to be filled right now so I'm just going to like draw rectangles here for the first and second floor of course this is not necessary you can do however you want to do to your Labs okay next we are going to add the switches of course it's on the bottom left most part part we are going to do the 2 960 switches here we only need two for this home lab and we are going to add the end devices we are just going to add some a couple of PCS in here I think I put like two for VLAN 10 and one for VLAN 20 and another for VLAN 30 so I'm just going to put like four end devices on each floor for this scenario okay and of course we are going to connect them together so for switch and PC we are going to use a straight through Cable in here and just like the first lab we're just going to connect it in order off the ports that we have in here so let's just connect all of this okay so we have connected all of the cables for the switch and the PC now we have to connect the switch with the other switch so we use the straight through Cable in here for the end devices so if you are connecting similar devices together like a switch to a switch a hub to a hub a PC to a PC you should use a crossover cables so that is what we're going to use to connect the switch into the other switch so I'm just going to use the available port the next available port for this to connect it and just wait for it to turn green okay so we have laid out our layout for our home lab now okay so next we're going to move on to the VLAN assignment for this lab so what I did in the example earlier I used this elliptical shape in here so for this one I just use a fail colar for this this and just selected just different colors for different VLS so I'm just going to select yellow for the first VLAN in here just to make it easier to differentiate which PCS will be on the same vlen like later on it's really a good visual to have to have like different colors and shapes like this this is what I usually do when I am making home Labs like this and of course we have to assign different subnet for each VLAN and we can also do the labeling here at this time so we are going to type in our Subnet in here and the VLAN number so it won't be confusing when we are configuring it later on so let us type in VLAN 10 for this one and V 10 subnet will be 1 1921 68.1 do0 for example so they're going to have different subnets now because they're different we should do that to the other vlans too this is really helpful I always just label all of the subnets and the IP address so when I am testing something it'll be just easier to see which IP address I have to Ping or what land should I use and assign so all right so we are just going to assign like IP address on the end devices for now so this is pretty easy and just follow me along in here um I'm going to speed it up we are just going to use the IP address in order we're going to start from one until like whatever is the next available one so just make sure to put some labels so it'll be easier later on so on 68. 1.1 we are now going to do the next step which is to assign a static IP for every devices because we now know what IP address they they are going to get so The Next Step would be to configure our switch so we going to configure access ports for this because we have end devices connected to each switch so that's what we we're going to do first before the trunk ports so just assign them also in the specific VLAN respective VLAN that they are under so these are VLAN 10 20 and 30 so let's get started on configurating access ports we are also going to create the vlans because we are doing this from scratch e okay so now that we are done configuring the vlans for each switch and all of the end devices we have assigned them to the specific and respective VLAN we can now do some testing so we can see what we've done in the home lab okay so we can test our Vance now and see if all of those in VLAN 10 can communicate with each other let's ping it so let's ping the other computer in here which is 1 192 do 192.168.1 4 and as you can see it's it is reachable because they are on the same ven now let's try to Ping from another VLAN which is the2 do2 so we can ping it's on a different vand so this shows you that our configuration is working and we did it properly because we have assigned the correct vand to the switches okay so we have just tested everything on this first floor but we haven't tested pinging from one floor to another floor so let's try that out first so we are just going to Ping from a PC in here from vlans for example so ping another PC on the same Vin like this 192.168.1.2 in here 192.168.1.2 and it should time out because we haven't configured the switch communicating to the other switch on the floor so it is all fine on this floor or on this level because they are connected directly to the switch but if you want to reach the other computer on the same VL but on a different switch you have to configure a trunk port for that so to configure trunk ports of course first you should know the interface where the switch both of the switch are connected so for the switch it's the interface 05 and same with the other switch so let's configure this first switch first okay so so type in ant fa05 and remember when we were configuring access ports it is a similar command switch Port mode so before we configure it to tr Port let us use like the help or question mark in here so there are three options we have access Dynamic and trunk so it's same with how we configure access ports if we want to configure it with with a trunk Port you just use command switch Port mode trunk and then it should be all set for trunking and in the packet traser it usually defaults to the1 cube which is one of the protocols for VLAN tagging we have 2.1 q and ISL that is Cisco proprietary so in most cases you can you have to use the command switch Port trunk andc capsulation oneq to explicitly use the one q but the packet tracer just uses that right away or by default if you set it up as a trunk Port so to verify that we are using the one Q in here we can also do some verification command so one verification command that we can use to check all of the trunk ports in our switch is show interface trunk and you will see all of the trunk ports that are configured in this switch we only have one trunk Port which is the 05 so you would see what encapsulation method it's using or the VLAN tagging method so it's using the one Q now you can also check in here which specific vlans are allowed right now we didn't allow anything explicitly so it's allowing all of the vlans okay so now let's do the same for the next switch so they would match both of them should be configured with trunk ports so type the interface number F a05 in this case and switch Port mode trunk okay so if you verify it to show interface trunk then you would see in the switch that it's showing all of the trunk ports that were configured okay so we should test it out now if we can reach the other PC on the same VLAN on the other floor that is connected to a different switch so earlier we weren't able to Ping another device that was connected on a different switch but on the same vlm but now let's try if that works so from this second PC or second switch I just going to ping one of this in here on the first switch so 1 192.168.1.3 and as you can see now you can reach it early here when we didn't have the trunk Port configured it's not pinging so now it's working and let's just check that we still can't reach another VLAN uh VLAN 20 for example so ping 192.168 do2 do1 and it should time out so that's how we know that our configuration is working if we can test it all right so I'm GNA do another test and see if uh vlan30 can reach the other VLAN 30 PC in here cuz uh what we want to do in our lab is to only allow VLAN 10 which is this yellow circle in here and VLAN 20 in here and not allow the it VLAN to go through both the switches in here so let's just check if they can reach each other let's ping the other pc 1 192.168 3.2 and as you can see it's reachable and that's not what we want in our home lab example so what are we going to do to configure it and how do we only allow specific vlans okay so just click on the switch and then go to the interface of your trunk cord it's and fa05 and this this case and just type in switch Port trunk allow Ven and the VL number that you want to allow so we want 10 just put a a comma to separate the different vens and 20 for this example and it should just allow vens 10 and 20 so let's do the same for the other switch so if we verify our trunk Port we can use the do show do show in trunk and as you can see in here in in the trunk Port that we have is showing only the vlans that are allowed in the trunk earlier it was the default VLAN every VLAN allowed or every possible number of vlans you could have is allowed but now we are just limiting it to 2 V lens okay so now let's test it it so earlier we able to reach VLAN 30 from the other network so let's try it now let's ping the dot 3.2 and this should be timing out because it's not allowed to go through the other switch so there's also another trunk verification command that you can use if you just want to see one trunk Port so you can a show interface and the interface number and switch Port switch Port oops typo switch port and you can see the configuration for the trunk for just one port and it is usually more detailed than the previous verification command that we use so you can see if the port is enabled and here what kind of mode the port is using in here and other details that you might want to see okay so that is how you configure trunk ports in your home lab using Packet Tracer so I didn't discuss ISL in here which uses native vlans I didn't discuss native vlans yet because that's like a different topic but if you want to do really basic trunk Port configuration you can do this home lab so I hope you were able to follow through with our home lab example and you're able to configure your own home laab with Packet Tracer if you do have any questions please leave it down in the comment section below and watch out for the next video about Port security so the First videos is going to be for later to configuration and then we can move on to later three with router configuration next time so I hope you guys learn something from this video and I hope to see you guys in my next videos thank you so much for watching
Info
Channel: East Charmer
Views: 2,184
Rating: undefined out of 5
Keywords:
Id: ffVivCH3_2o
Channel Id: undefined
Length: 19min 2sec (1142 seconds)
Published: Tue Nov 28 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.