1 00:00:03,134 --> 00:00:06,467 (musical sound effects) 2 00:00:09,218 --> 00:00:10,758 - [Keith] In this lesson I'd like to start 3 00:00:10,758 --> 00:00:12,297 by talking about one of the two ways 4 00:00:12,297 --> 00:00:15,198 that you can incorporate switching into your 5 00:00:15,198 --> 00:00:18,468 GNS3 simulated network topology. 6 00:00:18,468 --> 00:00:20,443 Because chances are, I'm guessing that if you're studying 7 00:00:20,443 --> 00:00:24,246 your CCNA, NP, or anything else, you're gonna need 8 00:00:24,246 --> 00:00:26,610 to be able to practice switching along with that. 9 00:00:26,610 --> 00:00:28,084 Now as far as switching is concerned, 10 00:00:28,084 --> 00:00:30,081 there's two basic ways to do that. 11 00:00:30,081 --> 00:00:33,031 There's several advanced ways using L2, IOU, 12 00:00:33,031 --> 00:00:35,489 and other stuff I'm not gonna get into in this series, 13 00:00:35,489 --> 00:00:37,659 but there's two basic ways that you can do that 14 00:00:37,659 --> 00:00:40,873 if you're sort of a new or intermediate GNS3 user. 15 00:00:40,873 --> 00:00:44,073 One is to use what's called a built-in switch node, 16 00:00:44,073 --> 00:00:47,267 and the other is to import in a router that acts 17 00:00:47,267 --> 00:00:49,703 like a switch called an ether switch. 18 00:00:49,703 --> 00:00:50,839 So in this particular video, 19 00:00:50,839 --> 00:00:52,503 I'm gonna be focusing in on the first one, 20 00:00:52,503 --> 00:00:57,079 built-in switch node, so let's talk a little bit about that. 21 00:00:57,079 --> 00:00:59,412 So here is my GNS3 topology, 22 00:01:00,492 --> 00:01:01,935 and in this particular case it's already 23 00:01:01,935 --> 00:01:04,371 fully functioning and built, 24 00:01:04,371 --> 00:01:07,495 and I've used a built-in switch node, 25 00:01:07,495 --> 00:01:10,415 so this is what the built-in switch node looks like, 26 00:01:10,415 --> 00:01:13,138 and where you would get that from, 27 00:01:13,138 --> 00:01:17,055 is from right here in the device notes section. 28 00:01:18,290 --> 00:01:20,099 This section right here is where you find 29 00:01:20,099 --> 00:01:22,266 your switches, so here's the various routers 30 00:01:22,266 --> 00:01:23,550 that are available to you, 31 00:01:23,550 --> 00:01:27,709 and here's where you find your various layer two switches. 32 00:01:27,709 --> 00:01:30,297 And the Ethernet switch is the one that we're gonna be 33 00:01:30,297 --> 00:01:31,418 focusing in on today, 34 00:01:31,418 --> 00:01:33,436 and you can just drag and drop that, 35 00:01:33,436 --> 00:01:35,035 just like anything else. 36 00:01:35,035 --> 00:01:36,857 Now the Ethernet switch, if you choose to use that, 37 00:01:36,857 --> 00:01:38,618 one of the nice things about that is, 38 00:01:38,618 --> 00:01:40,897 like I said it's a built-in node, 39 00:01:40,897 --> 00:01:44,107 built in to GNS3 so, it doesn't require any 40 00:01:44,107 --> 00:01:47,463 IOS, it actually is not even configured via 41 00:01:47,463 --> 00:01:49,551 command line at all, you just configure it 42 00:01:49,551 --> 00:01:51,788 via a very basic GUI. 43 00:01:51,788 --> 00:01:53,904 Now this built-in switch node, like I said, 44 00:01:53,904 --> 00:01:55,404 very basic device. 45 00:01:56,704 --> 00:01:59,215 Really the only thing you're ever gonna want to use it for, 46 00:01:59,215 --> 00:02:02,523 is one of two things, either segmenting your network 47 00:02:02,523 --> 00:02:06,919 into different VLANS, or I guess it could be an and, 48 00:02:06,919 --> 00:02:09,075 using 802.1Q trunking. 49 00:02:09,075 --> 00:02:10,648 So those are really the only two things. 50 00:02:10,648 --> 00:02:12,789 This built-in switch node does not do anything else. 51 00:02:12,789 --> 00:02:15,818 It does not do any of the CISCO stuff like DTP 52 00:02:15,818 --> 00:02:18,235 or VTP, or CDP, none of that. 53 00:02:19,289 --> 00:02:20,442 As a matter of fact, these switching nodes 54 00:02:20,442 --> 00:02:23,792 don't even do Spanning Tree, so be very careful about that, 55 00:02:23,792 --> 00:02:26,164 because if you actually do put two or more of them 56 00:02:26,164 --> 00:02:28,224 in your topology and you connect them together, 57 00:02:28,224 --> 00:02:31,042 you can very quickly create a bridging loop, 58 00:02:31,042 --> 00:02:33,230 because there's nothing to prevent the bridging loop, 59 00:02:33,230 --> 00:02:35,064 there is no Spanning Tree in here, 60 00:02:35,064 --> 00:02:37,961 so that is something to be wary of. 61 00:02:37,961 --> 00:02:40,425 So in this particular environment, 62 00:02:40,425 --> 00:02:42,773 I'll go ahead and get rid of it by just right clicking 63 00:02:42,773 --> 00:02:44,639 on it and then selecting delete, 64 00:02:44,639 --> 00:02:46,466 because I don't need that one. 65 00:02:46,466 --> 00:02:49,216 In this particular case, all I'm doing is I've got four PC's 66 00:02:49,216 --> 00:02:52,066 which are segmented into two different VLANs, 67 00:02:52,066 --> 00:02:56,129 a VLAN for payroll, and a VLAN for human resources. 68 00:02:56,129 --> 00:02:59,373 And maybe what I want to do, maybe the objective of this lab 69 00:02:59,373 --> 00:03:02,069 was simply to practice the router on a stick, 70 00:03:02,069 --> 00:03:04,575 so I didn't really care about practicing the switch, 71 00:03:04,575 --> 00:03:06,305 I just wanted to practice how to create a router 72 00:03:06,305 --> 00:03:08,769 on a stick for the router. 73 00:03:08,769 --> 00:03:10,230 So maybe that was my objective. 74 00:03:10,230 --> 00:03:11,345 Now in this particular case, 75 00:03:11,345 --> 00:03:12,748 all this is already up, 76 00:03:12,748 --> 00:03:14,681 the router has already been pre-configured, 77 00:03:14,681 --> 00:03:15,931 and what I want to do is show you, 78 00:03:15,931 --> 00:03:17,958 how did I get to this point? 79 00:03:17,958 --> 00:03:21,443 How did I get this switch in here, and how did I configure 80 00:03:21,443 --> 00:03:24,471 it in such a way that two of its interfaces, 81 00:03:24,471 --> 00:03:29,446 these two right here, would be in one VLAN, like VLAN one, 82 00:03:29,446 --> 00:03:31,788 and these two interfaces right here would be in a completely 83 00:03:31,788 --> 00:03:35,446 different VLAN, and this interface right here 84 00:03:35,446 --> 00:03:39,774 was 802.1Q, because that's what was necessary 85 00:03:39,774 --> 00:03:42,490 in order to make this topology work. 86 00:03:42,490 --> 00:03:43,736 So how did I do it? 87 00:03:43,736 --> 00:03:46,219 All right so let's start, let's go back a little bit, 88 00:03:46,219 --> 00:03:48,377 and start by getting rid of the switch. 89 00:03:48,377 --> 00:03:51,294 Right click it, select delete, yes. 90 00:03:52,271 --> 00:03:54,391 And when I delete it, all of the links I've had 91 00:03:54,391 --> 00:03:57,705 to various devices are also deleted. 92 00:03:57,705 --> 00:04:00,372 Okay so, let's go back into here 93 00:04:02,295 --> 00:04:05,870 and open up my switching section, there we go, 94 00:04:05,870 --> 00:04:08,925 and I'll drag and drop my Ethernet switch 95 00:04:08,925 --> 00:04:10,939 into the topology. 96 00:04:10,939 --> 00:04:12,046 All right so there it is. 97 00:04:12,046 --> 00:04:14,556 And notice that as a built-in node, 98 00:04:14,556 --> 00:04:17,640 the moment you drag and drop it, notice over here, 99 00:04:17,640 --> 00:04:20,552 on the right, how it's already green. 100 00:04:20,552 --> 00:04:22,483 So it's already on, it's already activated, 101 00:04:22,483 --> 00:04:24,806 there's no shutting down of this particular device, 102 00:04:24,806 --> 00:04:26,723 it's just always there. 103 00:04:27,562 --> 00:04:29,804 Okay so now if I right click on it, 104 00:04:29,804 --> 00:04:31,742 remember this doesn't have any kind of command line, 105 00:04:31,742 --> 00:04:33,969 so the way you would actually configure its interface 106 00:04:33,969 --> 00:04:36,619 is by selecting the configure option, 107 00:04:36,619 --> 00:04:38,908 the very first option. 108 00:04:38,908 --> 00:04:41,882 So as you can see, what it comes up with by default, 109 00:04:41,882 --> 00:04:45,913 are eight interfaces, all of which are static access ports, 110 00:04:45,913 --> 00:04:49,048 all of which are in VLAN one. 111 00:04:49,048 --> 00:04:50,961 If I wanna add a new interface, 112 00:04:50,961 --> 00:04:52,564 you can see it's already set up and ready to go, 113 00:04:52,564 --> 00:04:55,815 so if I click the add button, it will add 114 00:04:55,815 --> 00:04:58,091 interface number nine, or port number nine, 115 00:04:58,091 --> 00:05:01,161 there will be an access port, and it'll be in VLAN one, 116 00:05:01,161 --> 00:05:03,009 so boop, there we go. 117 00:05:03,009 --> 00:05:04,567 Now if I wanna add another interface, 118 00:05:04,567 --> 00:05:06,253 interface number ten, maybe I want that to be 119 00:05:06,253 --> 00:05:08,994 in a different VLAN, so you can just change that, 120 00:05:08,994 --> 00:05:11,427 hit add, boop, there you go again. 121 00:05:11,427 --> 00:05:12,889 Maybe I wanna add a new interface, 122 00:05:12,889 --> 00:05:15,398 interface 11, and I want it to be 802.1Q, 123 00:05:15,398 --> 00:05:19,256 so you can see your options here from the drop down menu. 124 00:05:19,256 --> 00:05:22,422 Now when I make this as 802.1Q port, 125 00:05:22,422 --> 00:05:26,370 the VLAN referenced here, is gonna be the native VLAN. 126 00:05:26,370 --> 00:05:29,057 So I might not want VLAN five as the native VLAN 127 00:05:29,057 --> 00:05:33,224 for my 802.1Q trunk, so I'll set that back down to one. 128 00:05:34,301 --> 00:05:36,690 And you can see here how it's been created. 129 00:05:36,690 --> 00:05:39,155 So adding new interfaces, pretty easy. 130 00:05:39,155 --> 00:05:40,991 I've actually read that this switch can support 131 00:05:40,991 --> 00:05:44,658 like up to 10,000 VLAN's, some crazy number. 132 00:05:45,893 --> 00:05:49,748 Now, what if you want to modify an existing port? 133 00:05:49,748 --> 00:05:51,445 That, you cannot do. 134 00:05:51,445 --> 00:05:53,040 So for example, let me, first of all 135 00:05:53,040 --> 00:05:55,133 you have to double click on a port to select it, 136 00:05:55,133 --> 00:05:57,847 double click, double click. 137 00:05:57,847 --> 00:06:00,312 And if I wanted to change port number one 138 00:06:00,312 --> 00:06:02,195 to be an access port in VLAN two, you might think 139 00:06:02,195 --> 00:06:06,278 okay, we'll just change that, and then hit apply. 140 00:06:08,736 --> 00:06:10,624 But look, nothing happened. 141 00:06:10,624 --> 00:06:12,691 It's still an access port in VLAN one, 142 00:06:12,691 --> 00:06:14,150 it didn't change anything. 143 00:06:14,150 --> 00:06:15,826 Similarly, if I wanted to change one of these existing 144 00:06:15,826 --> 00:06:20,484 ports into an 802.1Q trunk, that wouldn't work. 145 00:06:20,484 --> 00:06:21,913 So what's the moral of this story? 146 00:06:21,913 --> 00:06:25,413 Well, if you want to take an existing port 147 00:06:26,738 --> 00:06:28,632 and change its characteristics, 148 00:06:28,632 --> 00:06:30,430 you have to delete it first. 149 00:06:30,430 --> 00:06:31,645 So I'm just gonna delete everything, 150 00:06:31,645 --> 00:06:33,565 I'm gonna start with port number one, 151 00:06:33,565 --> 00:06:36,250 and delete everything that's in there. 152 00:06:36,250 --> 00:06:38,145 Okay all the ports are gone, 153 00:06:38,145 --> 00:06:41,503 and now for the purposes of my topology, 154 00:06:41,503 --> 00:06:44,718 what I'm gonna do is, I'm gonna have ports one and two 155 00:06:44,718 --> 00:06:48,019 leading to these two PC's and VLAN one. 156 00:06:48,019 --> 00:06:50,699 I'll have ports three and four leading to these PC's 157 00:06:50,699 --> 00:06:53,998 in VLAN two, and then I'll have port number five 158 00:06:53,998 --> 00:06:55,581 as an 802.1Q trunk. 159 00:06:56,764 --> 00:07:01,312 So once again right click and select configure. 160 00:07:01,312 --> 00:07:03,379 So port number one is already by default 161 00:07:03,379 --> 00:07:05,208 gonna be an access port in VLAN one, 162 00:07:05,208 --> 00:07:07,416 so I'll just hit add, port number two 163 00:07:07,416 --> 00:07:09,085 I'll just add that, that's okay. 164 00:07:09,085 --> 00:07:12,208 Port number three, before I create it, that's the key, 165 00:07:12,208 --> 00:07:15,161 before you create it, I'm gonna change the VLAN to two, 166 00:07:15,161 --> 00:07:18,293 add it, port number four I also want to be in VLAN two, 167 00:07:18,293 --> 00:07:19,126 so add it. 168 00:07:20,179 --> 00:07:21,594 And by the way, you can also see right here 169 00:07:21,594 --> 00:07:25,136 that you can change the name of the switch, if you wish. 170 00:07:25,136 --> 00:07:27,306 And then port number five, I'm gonna have that 171 00:07:27,306 --> 00:07:29,893 as an 802.1Q port, and I'm gonna have 172 00:07:29,893 --> 00:07:31,810 the native VLAN as one. 173 00:07:33,209 --> 00:07:36,042 And then hit apply, and then okay. 174 00:07:36,980 --> 00:07:38,425 So now it's ready. 175 00:07:38,425 --> 00:07:39,672 Another way that you can verify, 176 00:07:39,672 --> 00:07:41,029 if you're taking a look at a switch, 177 00:07:41,029 --> 00:07:43,341 an Ethernet switch, and you wonder how it's configured, 178 00:07:43,341 --> 00:07:44,865 all you have to do it hover over it. 179 00:07:44,865 --> 00:07:46,546 So put your mouse over it, hover there, 180 00:07:46,546 --> 00:07:48,458 and then it'll tell you. 181 00:07:48,458 --> 00:07:50,849 Now in this particular case, 182 00:07:50,849 --> 00:07:53,505 it's saying the ports are empty because it's not connected 183 00:07:53,505 --> 00:07:54,338 to anything yet. 184 00:07:54,338 --> 00:07:56,458 So once I actually connect those ports to something 185 00:07:56,458 --> 00:07:58,572 and then I hover over it, 186 00:07:58,572 --> 00:08:00,201 I'll actually see a lot more stuff. 187 00:08:00,201 --> 00:08:03,096 I'll see if it's trunking, I'll see if it's in a VLAN, 188 00:08:03,096 --> 00:08:04,283 I'll see all that. 189 00:08:04,283 --> 00:08:06,795 So, let's do that next. 190 00:08:06,795 --> 00:08:10,610 So now I'm gonna go to my connect or add a link tool, 191 00:08:10,610 --> 00:08:12,233 just click that. 192 00:08:12,233 --> 00:08:14,183 All right, so I'll select port number one, 193 00:08:14,183 --> 00:08:15,593 I'll just click on port one, 194 00:08:15,593 --> 00:08:17,329 and I'll go over here to my first PC 195 00:08:17,329 --> 00:08:19,329 and select his Ethernet. 196 00:08:20,334 --> 00:08:23,290 Select port number two, go to my second PC, 197 00:08:23,290 --> 00:08:27,457 and I'll just keep doing that for the remaining PC's. 198 00:08:30,092 --> 00:08:31,359 And also in this particular lab, 199 00:08:31,359 --> 00:08:33,374 I'm using another built-in node, 200 00:08:33,374 --> 00:08:35,449 the virtual PC simulator. 201 00:08:35,449 --> 00:08:37,697 Not gonna talk about that in great detail right now, 202 00:08:37,697 --> 00:08:40,368 we'll get into that in a subsequent video. 203 00:08:40,368 --> 00:08:41,803 And then lastly, we'll take port number five 204 00:08:41,803 --> 00:08:44,252 which has already been pre-configured as a trunk, 205 00:08:44,252 --> 00:08:47,713 and connect it to fast Ethernet zero one on my switch, 206 00:08:47,713 --> 00:08:49,769 on my router, that is. 207 00:08:49,769 --> 00:08:51,232 Deselect the link tool, 208 00:08:51,232 --> 00:08:52,909 because I don't want to add any more links. 209 00:08:52,909 --> 00:08:54,188 Some of this stuff looks kinda messy, 210 00:08:54,188 --> 00:08:57,569 which is nice because I can drag this stuff around, 211 00:08:57,569 --> 00:09:01,356 to make it a little bit more easily visible. 212 00:09:01,356 --> 00:09:04,812 So if for some reason I wanna take a screenshot of this, 213 00:09:04,812 --> 00:09:07,495 or just for my own benefit, I can actually read it 214 00:09:07,495 --> 00:09:09,162 a little bit easier. 215 00:09:10,280 --> 00:09:14,629 Now let's just move the name of the switch down here. 216 00:09:14,629 --> 00:09:16,009 And now we should be good to go. 217 00:09:16,009 --> 00:09:17,005 Now in this particular case, 218 00:09:17,005 --> 00:09:18,951 the router's already pre-configured, 219 00:09:18,951 --> 00:09:22,847 and now if I hover over the switch at this point, 220 00:09:22,847 --> 00:09:25,102 and zoom in there, now you can see, 221 00:09:25,102 --> 00:09:28,313 for example, port one is access mode in VLAN one, 222 00:09:28,313 --> 00:09:30,732 port three is in access mode, VLAN two, 223 00:09:30,732 --> 00:09:35,199 and port five is .1Q, with a native VLAN of one, 224 00:09:35,199 --> 00:09:36,769 that tells you what it's connected to. 225 00:09:36,769 --> 00:09:37,950 So that's sort of a nice way to get 226 00:09:37,950 --> 00:09:40,450 a status update on the device. 227 00:09:41,828 --> 00:09:42,991 Everything is green right now, 228 00:09:42,991 --> 00:09:45,588 so let me go into one of my virtual PC's and make sure 229 00:09:45,588 --> 00:09:47,505 it's got an IP address. 230 00:09:51,459 --> 00:09:55,722 And it does, let's see if he can ping his counterpart, 231 00:09:55,722 --> 00:09:59,472 PC two, who's also in the payroll department. 232 00:10:05,183 --> 00:10:08,766 Not reachable, okay, so let's check PC two. 233 00:10:11,457 --> 00:10:12,290 Show IP. 234 00:10:14,543 --> 00:10:18,013 All right, so he was, he does have the correct IP address. 235 00:10:18,013 --> 00:10:20,485 Actually, I have seen this before, 236 00:10:20,485 --> 00:10:23,658 where everything is set up correctly, 237 00:10:23,658 --> 00:10:24,777 but they're not ping-able, 238 00:10:24,777 --> 00:10:26,037 and what I've had to do 239 00:10:26,037 --> 00:10:29,040 in this particular situation actually is, 240 00:10:29,040 --> 00:10:31,624 actually before I disconnect, 241 00:10:31,624 --> 00:10:35,124 I wanna save my configuration on the PC's. 242 00:10:38,669 --> 00:10:40,358 Close this, and what I've seen, 243 00:10:40,358 --> 00:10:41,853 what I have to do to make this work is basically 244 00:10:41,853 --> 00:10:46,240 to shut everything down, so click the stop all devices 245 00:10:46,240 --> 00:10:47,573 button, up here. 246 00:10:51,104 --> 00:10:54,883 And you can see that stops everything but the switch, 247 00:10:54,883 --> 00:10:58,050 and now turn everything back on again. 248 00:10:59,532 --> 00:11:01,615 Let's go back into my PC. 249 00:11:03,813 --> 00:11:04,980 Show, show IP. 250 00:11:07,096 --> 00:11:09,203 He still has his IP address, now let's see if he can ping 251 00:11:09,203 --> 00:11:13,198 the other PC in the same VLAN, and it works. 252 00:11:13,198 --> 00:11:15,121 Not sure why you have to take that extra step, 253 00:11:15,121 --> 00:11:17,675 but in the particular case it was necessary 254 00:11:17,675 --> 00:11:21,060 to stop and restart everything. 255 00:11:21,060 --> 00:11:24,377 And so that's the basics of the Ethernet switch, 256 00:11:24,377 --> 00:11:26,011 real simple, as you can see once again, 257 00:11:26,011 --> 00:11:29,550 just right click it, hit configure, 258 00:11:29,550 --> 00:11:32,730 and then you can modify the various ports. 259 00:11:32,730 --> 00:11:34,526 Now as you can see, there's a few other options 260 00:11:34,526 --> 00:11:37,629 available to you here when you right click, 261 00:11:37,629 --> 00:11:39,063 such as change the host name, 262 00:11:39,063 --> 00:11:41,548 which is something we're actually able to do 263 00:11:41,548 --> 00:11:44,296 in that GUI, change the symbol, 264 00:11:44,296 --> 00:11:45,796 if you wanna change it from this switch 265 00:11:45,796 --> 00:11:48,169 to one of the other switch types you can. 266 00:11:48,169 --> 00:11:50,521 Capture, if I selected this I could actually 267 00:11:50,521 --> 00:11:52,395 do in a wireshark capture, 268 00:11:52,395 --> 00:11:54,724 and it would first prompt me for what interface 269 00:11:54,724 --> 00:11:56,561 I want to capture on, 270 00:11:56,561 --> 00:11:57,966 and then once it's started, 271 00:11:57,966 --> 00:11:59,316 every packet going in and out 272 00:11:59,316 --> 00:12:00,726 would be displayed in wireshark, 273 00:12:00,726 --> 00:12:02,203 and I'll go ahead and do that in a subsequent video 274 00:12:02,203 --> 00:12:04,154 where I can focus exclusively 275 00:12:04,154 --> 00:12:07,071 on wireshark interaction with this. 276 00:12:08,173 --> 00:12:09,530 And raising and lowering one layer, 277 00:12:09,530 --> 00:12:11,307 we've already talked about that when I talked about 278 00:12:11,307 --> 00:12:15,655 adding circles or adding squares into your topology. 279 00:12:15,655 --> 00:12:18,313 And then of course, there is delete. 280 00:12:18,313 --> 00:12:20,111 So that concludes this particular section 281 00:12:20,111 --> 00:12:22,253 on the built-in switch node. 282 00:12:22,253 --> 00:12:24,125 In the next section, we're gonna look at 283 00:12:24,125 --> 00:12:26,490 actually dragging and dropping a router 284 00:12:26,490 --> 00:12:28,727 that has a special module in it called 285 00:12:28,727 --> 00:12:30,502 the ether switch module. 286 00:12:30,502 --> 00:12:32,268 And that's gonna be useful for you if you actually 287 00:12:32,268 --> 00:12:35,008 wanna practice IOS switching commands, 288 00:12:35,008 --> 00:12:37,352 like Spanning Tree, trunking, 289 00:12:37,352 --> 00:12:39,685 PortFast, and a range of other stuff. 290 00:12:39,685 --> 00:12:42,685 So we'll see that in the next video.