1 00:00:00,000 --> 00:00:01,140 2 00:00:01,140 --> 00:00:03,530 In a separate Nugget, we discussed the concepts 3 00:00:03,530 --> 00:00:06,290 of an 802.1Q ethernet trunk. 4 00:00:06,290 --> 00:00:09,200 And in this Nugget, I'd like to walk you through step-by-step 5 00:00:09,200 --> 00:00:13,416 how to configure the ports on switches to behave as a trunk. 6 00:00:13,416 --> 00:00:16,040 We get to leverage delivers the same topology that we used when 7 00:00:16,040 --> 00:00:19,040 we discussed the concepts, so our primary job here is to go 8 00:00:19,040 --> 00:00:22,040 into the configuration on switch-1 and switch-2 to these 9 00:00:22,040 --> 00:00:22,740 two ports-- 10 00:00:22,740 --> 00:00:26,650 gig 0/0 on switch-1 and gig 1/0 on switch-2 , 11 00:00:26,650 --> 00:00:31,520 and specify that we want to use 802.1Q tags and that protocol 12 00:00:31,520 --> 00:00:32,465 for trunking. 13 00:00:32,465 --> 00:00:34,340 And in addition to specifying the protocol we 14 00:00:34,340 --> 00:00:35,900 want to use for the trunking, we also 15 00:00:35,900 --> 00:00:38,180 want to tell these two port specifically 16 00:00:38,180 --> 00:00:40,250 that they are to behave as trunks. 17 00:00:40,250 --> 00:00:42,050 And what I thought would be also fun 18 00:00:42,050 --> 00:00:46,587 is to show you the configuration for the access ports as well. 19 00:00:46,587 --> 00:00:48,920 So we'll do the whole thing in this demonstration, which 20 00:00:48,920 --> 00:00:53,150 includes specifying that gig 0/1 and 0/2 on switch-1 21 00:00:53,150 --> 00:00:57,500 are access ports in VLAN 100, as well as switch-2's gig 1/1. 22 00:00:57,500 --> 00:01:01,850 And then we'll configure gig 0/3 on switch-1, as well as gig 1/2 23 00:01:01,850 --> 00:01:05,570 and gig 1/3 on switch-1 and 2 respectively 24 00:01:05,570 --> 00:01:08,830 that those ports should be associated with VLAN 200. 25 00:01:08,830 --> 00:01:11,230 We'll also specify on the respective switches that 26 00:01:11,230 --> 00:01:13,870 on these ports connected them together that they should use 27 00:01:13,870 --> 00:01:17,150 802.1Q as the protocol and that they should behave as trunks. 28 00:01:17,150 --> 00:01:18,710 And so with the intent of this not 29 00:01:18,710 --> 00:01:20,450 being just a typing exercise, let 30 00:01:20,450 --> 00:01:22,340 me walk through all of the commands, 31 00:01:22,340 --> 00:01:25,070 and then we'll go ahead and put them into the switches. 32 00:01:25,070 --> 00:01:26,690 On switch-1, we're going to go ahead 33 00:01:26,690 --> 00:01:29,190 into configuration mode on the Cisco switch. 34 00:01:29,190 --> 00:01:31,430 Our first two access ports on switch-1 35 00:01:31,430 --> 00:01:34,220 are going to be gig 0/1 and gig 0/2. 36 00:01:34,220 --> 00:01:36,530 So we'll configure those two access ports 37 00:01:36,530 --> 00:01:38,720 by going into interface configuration mode for both 38 00:01:38,720 --> 00:01:41,095 of them at the same time and using the command switchport 39 00:01:41,095 --> 00:01:41,970 mode access. 40 00:01:41,970 --> 00:01:43,760 This specifies the access port. 41 00:01:43,760 --> 00:01:46,760 Then we'll associated those access ports with VLAN 100. 42 00:01:46,760 --> 00:01:48,740 Then we'll exit out of that range configuration 43 00:01:48,740 --> 00:01:49,823 mode for those interfaces. 44 00:01:49,823 --> 00:01:52,959 And, then we'll go specifically over to gig 0/3 45 00:01:52,959 --> 00:01:55,250 and do the same command there-- switchport mode access, 46 00:01:55,250 --> 00:01:58,640 but on it, will specify that it's in VLAN 200. 47 00:01:58,640 --> 00:02:00,470 Then exiting that interface, we'll 48 00:02:00,470 --> 00:02:02,690 go over to interface gig 0/0, which 49 00:02:02,690 --> 00:02:05,579 is the connection between switch-1 and switch-2. 50 00:02:05,579 --> 00:02:07,120 And we'll specify that we want to use 51 00:02:07,120 --> 00:02:10,220 dot1Q as the trunk encapsulation with the command switchport 52 00:02:10,220 --> 00:02:13,370 trunk encapsulation dot1Q and then the second command 53 00:02:13,370 --> 00:02:16,970 switchport mode trunk that takes out any ambiguity that we 54 00:02:16,970 --> 00:02:18,710 want this port to be a trunk. 55 00:02:18,710 --> 00:02:20,900 And then we can exit out of configuration mode 56 00:02:20,900 --> 00:02:24,560 and use the wr command which, is the equivalent of copy running 57 00:02:24,560 --> 00:02:26,000 config to startup config. 58 00:02:26,000 --> 00:02:29,030 And the benefit of that is so that when the switch reboots, 59 00:02:29,030 --> 00:02:31,850 it'll remember the configuration that we're providing it 60 00:02:31,850 --> 00:02:32,470 right now. 61 00:02:32,470 --> 00:02:34,220 And then as we scroll down and take a look 62 00:02:34,220 --> 00:02:37,257 at the commands for the second switch, they're right here. 63 00:02:37,257 --> 00:02:38,840 And they're all very similar commands. 64 00:02:38,840 --> 00:02:40,798 Working from the left to the right on switch-2, 65 00:02:40,798 --> 00:02:44,510 we're going to configure gig 1/0 to use dot1Q encapsulation 66 00:02:44,510 --> 00:02:47,090 and to tell it to go ahead and act as a trunk. 67 00:02:47,090 --> 00:02:49,325 We'll also going into gig 1/1, configure 68 00:02:49,325 --> 00:02:52,460 it to be an access port associated with VLAN 100, 69 00:02:52,460 --> 00:02:55,352 and then we'll go to the interfaces gig 1/2 and 1/3 70 00:02:55,352 --> 00:02:56,810 to tell us which of those two ports 71 00:02:56,810 --> 00:03:00,620 are access ports and then also to associate VLAN 200 72 00:03:00,620 --> 00:03:02,160 with those access ports. 73 00:03:02,160 --> 00:03:05,090 Then we'll end to take us out of configuration mode on the Cisco 74 00:03:05,090 --> 00:03:07,940 switch, and we'll do a wr for write 75 00:03:07,940 --> 00:03:10,850 to save that configuration so that when it reboots, 76 00:03:10,850 --> 00:03:13,339 the switch will continue to remember the configuration 77 00:03:13,339 --> 00:03:14,630 that we're giving it right now. 78 00:03:14,630 --> 00:03:16,546 So I'll move these commands over a little bit. 79 00:03:16,546 --> 00:03:18,320 And let's scroll up, and we'll grab 80 00:03:18,320 --> 00:03:22,430 all the commands for switch number 1 first, right click, 81 00:03:22,430 --> 00:03:23,360 Copy those. 82 00:03:23,360 --> 00:03:25,276 And then go to the interface for switch number 83 00:03:25,276 --> 00:03:28,400 1, right click, which will go ahead and paste that all in. 84 00:03:28,400 --> 00:03:30,590 So there's switch-1's configuration. 85 00:03:30,590 --> 00:03:33,330 And let's go over to switch-2 and repeat the process. 86 00:03:33,330 --> 00:03:35,090 So here on switch-2, we'll go get 87 00:03:35,090 --> 00:03:39,080 switch-2's configuration, right click, put it in our clipboard 88 00:03:39,080 --> 00:03:40,880 in our buffer, and I'll simply right 89 00:03:40,880 --> 00:03:43,450 click here in the interface for switch-2, which 90 00:03:43,450 --> 00:03:45,085 we'll go ahead and paste it in. 91 00:03:45,085 --> 00:03:46,460 And I'll finish it off by putting 92 00:03:46,460 --> 00:03:49,250 in the wr to save the configuration to the startup 93 00:03:49,250 --> 00:03:50,270 config. 94 00:03:50,270 --> 00:03:51,930 And it is done. 95 00:03:51,930 --> 00:03:54,250 Now the big question might be, OK Keith, we've 96 00:03:54,250 --> 00:03:55,580 configured some access ports. 97 00:03:55,580 --> 00:03:57,240 We configured the trunk ports. 98 00:03:57,240 --> 00:03:58,280 How do we verify it? 99 00:03:58,280 --> 00:03:59,480 Great question. 100 00:03:59,480 --> 00:04:01,980 We can verify the access ports that we configured-- here 101 00:04:01,980 --> 00:04:04,130 we're on switch-2-- we can verify those by using 102 00:04:04,130 --> 00:04:07,040 the command show VLAN brief. 103 00:04:07,040 --> 00:04:11,240 And that confirms that VLAN 100 has associated with it gig 1/1 104 00:04:11,240 --> 00:04:14,590 that port, and that gig 1/2 and 1/3 105 00:04:14,590 --> 00:04:16,800 are associated with VLAN 200. 106 00:04:16,800 --> 00:04:18,050 So we're getting access ports. 107 00:04:18,050 --> 00:04:18,790 Perfect. 108 00:04:18,790 --> 00:04:22,010 Now notice here, as we show our VLAN information, 109 00:04:22,010 --> 00:04:24,380 it's not showing us in our list of ports, 110 00:04:24,380 --> 00:04:28,070 it is not showing us gig 1/0. 111 00:04:28,070 --> 00:04:31,580 And that's because gig 1/0 is not acting as an access port. 112 00:04:31,580 --> 00:04:33,162 It's acting as a trunk. 113 00:04:33,162 --> 00:04:35,620 And we have a separate command that we can use to see that. 114 00:04:35,620 --> 00:04:37,910 And that command would be show interfaces, 115 00:04:37,910 --> 00:04:42,075 or you can use a shortcut of int space trunk, and press Enter. 116 00:04:42,075 --> 00:04:45,920 And this allows us to verify that gig 1/0 is currently using 117 00:04:45,920 --> 00:04:49,880 the encapsulation of 802.1Q and is in the current status 118 00:04:49,880 --> 00:04:52,640 of trunking, which is great news. 119 00:04:52,640 --> 00:04:55,160 And beyond just allowing that range of VLANs 120 00:04:55,160 --> 00:04:56,900 to go across the trunk, down here 121 00:04:56,900 --> 00:04:58,820 it's showing us that it's actively forwarding 122 00:04:58,820 --> 00:05:01,520 and allowing VLAN's 100 and 200, which 123 00:05:01,520 --> 00:05:03,172 we're concerned with in our typology, 124 00:05:03,172 --> 00:05:04,380 to be allowed over the trunk. 125 00:05:04,380 --> 00:05:06,830 Any traffic from those VLANs as they go over the trunk are 126 00:05:06,830 --> 00:05:10,580 going to get an 802.1Q tag so that the switch that receives 127 00:05:10,580 --> 00:05:14,090 that information over the trunk knows exactly which VLAN 128 00:05:14,090 --> 00:05:16,892 the incoming frame belongs to. 129 00:05:16,892 --> 00:05:19,100 In this Nugget, we walked through the process of both 130 00:05:19,100 --> 00:05:23,810 creating and verifying an 802.1Q trunk going between two Cisco 131 00:05:23,810 --> 00:05:24,980 switches. 132 00:05:24,980 --> 00:05:27,110 I hope this has been informative for you, 133 00:05:27,110 --> 00:05:30,612 and I'd like to thank you for viewing. 134 00:05:30,612 --> 00:05:31,112