1 00:00:00,360 --> 00:00:03,450 And now is the moment you've all been waiting for. 2 00:00:04,220 --> 00:00:07,970 It's time to build our network in three. 3 00:00:09,600 --> 00:00:14,880 So I'm in my host machine and you don't see the three. 4 00:00:14,940 --> 00:00:16,020 It's closed at the moment. 5 00:00:16,020 --> 00:00:20,490 So I'll go to the applications menu and click the three icon to run it. 6 00:00:21,030 --> 00:00:25,800 So let's create a new project, or you can use the project that we created before. 7 00:00:26,910 --> 00:00:29,580 Expand routers from the device's toolbar. 8 00:00:29,910 --> 00:00:34,350 As you see installed items is selected from the combo box above. 9 00:00:35,220 --> 00:00:39,990 The only router available is C 3725. 10 00:00:40,560 --> 00:00:43,320 That's what I imported a few lectures before. 11 00:00:44,430 --> 00:00:49,470 So I'll drag it and drop it into the workspace from the switches menu. 12 00:00:49,620 --> 00:00:55,710 Drag an ether switch router that we created before and drop it into the workspace. 13 00:00:56,740 --> 00:01:01,070 Now go to the end devices and drag and drop a vpcs. 14 00:01:01,090 --> 00:01:07,390 Here Vpcs are the end user computer simulations of three. 15 00:01:08,190 --> 00:01:13,920 They're very lightweight and have a very restricted ability, but it'll be enough to test the network 16 00:01:13,920 --> 00:01:15,210 configurations. 17 00:01:16,020 --> 00:01:18,540 And now I'll just add a second. 18 00:01:18,540 --> 00:01:19,680 Vpcs. 19 00:01:19,950 --> 00:01:20,760 Okay. 20 00:01:21,700 --> 00:01:26,410 Now we have a router, an ether switch and two PCs in our network. 21 00:01:26,500 --> 00:01:31,480 They all have their default names on top given by the Gns3 app. 22 00:01:32,280 --> 00:01:37,170 So now I want to design the network and label the devices accordingly. 23 00:01:38,260 --> 00:01:44,200 Click the labels icon on the toolbar and put a label under the PC one. 24 00:01:44,320 --> 00:01:52,720 This PC will be in IP block of 192.168.10.0 slash 24. 25 00:01:52,990 --> 00:01:56,410 Let's say it's the Vlan ten. 26 00:01:58,480 --> 00:02:04,300 Now to create a new label, you can right click on an existing one and select duplicate. 27 00:02:05,930 --> 00:02:10,310 Right click the label again and select text edit to edit the text. 28 00:02:10,610 --> 00:02:22,700 So let's put the second PC into Vlan 20, which is in the IP block of 192.168.20.0 24. 29 00:02:23,060 --> 00:02:27,980 Now click on the last icon on the Devices toolbar to connect the devices. 30 00:02:29,090 --> 00:02:35,660 Click the router, select the port you want to connect, and then select the switch and select the port 31 00:02:35,690 --> 00:02:37,280 of the switch again. 32 00:02:38,040 --> 00:02:45,150 I connect the fast Ethernet zero zero port of the router with the fast Ethernet one one of the switch. 33 00:02:46,150 --> 00:02:46,830 Good. 34 00:02:46,840 --> 00:02:50,380 So now connect the PC one with the switch. 35 00:02:51,000 --> 00:02:57,390 Click Switch select Fast Ethernet one two and click PC one. 36 00:02:58,010 --> 00:03:01,190 And it already has a single network interface. 37 00:03:01,190 --> 00:03:02,330 Ethernet zero. 38 00:03:03,770 --> 00:03:08,080 Now do the same with the second PC and use a port of the switch. 39 00:03:08,090 --> 00:03:08,720 For example. 40 00:03:08,720 --> 00:03:11,510 Fast Ethernet 110. 41 00:03:12,130 --> 00:03:14,530 We connected all the nodes on the workspace. 42 00:03:14,530 --> 00:03:18,910 So now we can click the connect icon to disable the connect mode. 43 00:03:21,800 --> 00:03:26,780 Then in the toolbar we have a button named show hide interface labels. 44 00:03:27,200 --> 00:03:32,780 If you click it when the labels are hidden, you'll see the labels of each interface connected. 45 00:03:33,610 --> 00:03:38,680 F stands for fast Ethernet and E stands for the Ethernet. 46 00:03:39,470 --> 00:03:42,260 And you can move the labels as you wish. 47 00:03:43,320 --> 00:03:44,910 Now let's start the notes. 48 00:03:45,830 --> 00:03:52,040 We can start them one by one, by right clicking on them and selecting start from the menu or from the 49 00:03:52,040 --> 00:03:52,670 toolbar. 50 00:03:52,670 --> 00:03:56,360 Click the green triangle to start all the nodes at once. 51 00:03:56,810 --> 00:03:58,640 Now all the nodes are running. 52 00:03:59,210 --> 00:04:03,020 So now is the time to create our network topology. 53 00:04:03,470 --> 00:04:08,070 I'll create two VLANs and add the PCs to their VLANs. 54 00:04:08,090 --> 00:04:11,150 First, we'll create the virtual LANs. 55 00:04:11,750 --> 00:04:15,080 Right click on the switch and click console. 56 00:04:15,760 --> 00:04:16,370 Good. 57 00:04:16,390 --> 00:04:20,440 Welcome to the command line interface of a Cisco ether switch. 58 00:04:20,470 --> 00:04:21,459 Look familiar? 59 00:04:22,260 --> 00:04:24,570 So press enter to get started. 60 00:04:31,690 --> 00:04:35,620 Type Vlan database and go there. 61 00:04:36,250 --> 00:04:40,330 You can use the tab key to complete the keywords in this console. 62 00:04:40,810 --> 00:04:45,850 So instead you can use the short form of the keywords directly. 63 00:04:46,470 --> 00:04:49,890 If the keyword is the only available option for that short form. 64 00:04:51,250 --> 00:04:57,790 So for example, I wrote Vlan space d a and hit the tab key. 65 00:04:58,150 --> 00:05:00,010 The key word is completed. 66 00:05:00,770 --> 00:05:01,820 Database. 67 00:05:02,710 --> 00:05:08,200 So that means that database is the only option here for De. 68 00:05:09,030 --> 00:05:17,430 And as a result if I type villain space DA and hit enter here I'd be in the villain database mode. 69 00:05:18,850 --> 00:05:19,330 Right. 70 00:05:19,330 --> 00:05:30,880 So here we are in Vlan database mode to create Vlan ten type vlan id number ten, name it for example 71 00:05:30,910 --> 00:05:40,450 it, HR or whatever you want, I'll name it Vlan ten and leave it at that hit enter and Vlan ten is 72 00:05:40,450 --> 00:05:41,200 created. 73 00:05:42,160 --> 00:05:48,430 So similarly, let's create Vlan 20 with the id number 20. 74 00:05:50,140 --> 00:05:53,230 Type exit to exit the Vlan database mode. 75 00:05:53,260 --> 00:05:57,010 Now, as you exit, the changes are applied. 76 00:05:57,660 --> 00:05:58,800 So that was pretty cool. 77 00:05:59,430 --> 00:06:06,220 Okay, so let's go into the Vlan database mode again to check whether the VLANs were actually created. 78 00:06:06,240 --> 00:06:08,370 So type show current. 79 00:06:09,110 --> 00:06:12,500 And here are the villains we created a couple of seconds ago. 80 00:06:13,380 --> 00:06:19,350 Vlan ten with the ID number of ten and here's Vlan 20 with the id number of 20. 81 00:06:19,530 --> 00:06:24,630 So type exit again and we're on the route of the switch console. 82 00:06:25,660 --> 00:06:31,210 So now is it time to configure interfaces and add the PCs to their VLANs? 83 00:06:31,750 --> 00:06:35,440 The first command we type is configure terminal. 84 00:06:36,040 --> 00:06:42,850 And as mentioned before, you can simply type conf T to enter configuration mode. 85 00:06:44,130 --> 00:06:47,190 Now we need to select the interface to configure. 86 00:06:48,610 --> 00:06:52,630 Type int space F and hit tab. 87 00:06:54,200 --> 00:06:57,230 F will be completed as fast Ethernet. 88 00:06:57,270 --> 00:06:58,560 You see how that works. 89 00:06:58,580 --> 00:07:03,560 So now we can write the identifier of the switch port 1/2. 90 00:07:04,700 --> 00:07:10,940 Alternatively, you can directly type F1/2 as seen in the gns3 workspace. 91 00:07:11,890 --> 00:07:20,320 Now we are in the config mode of the interface F12, which just happens to be the port we connected 92 00:07:20,320 --> 00:07:21,850 to the PC one. 93 00:07:22,660 --> 00:07:25,090 Now to identify the mode of the port. 94 00:07:25,120 --> 00:07:29,290 Type switch port mode access first. 95 00:07:29,950 --> 00:07:37,000 Then to assign the port to the Vlan ten type switch port access Vlan ten. 96 00:07:37,980 --> 00:07:41,490 Where ten is the ID number of Vlan ten. 97 00:07:42,680 --> 00:07:43,160 No. 98 00:07:43,160 --> 00:07:45,170 To shut down and exit. 99 00:07:45,790 --> 00:07:51,430 We exit from the port's config mode, but we are still in the terminal configuration mode. 100 00:07:51,580 --> 00:07:59,500 So while we're here, let's configure the other port which is connected to PC to interface fast Ethernet 101 00:07:59,530 --> 00:08:00,820 one slash ten. 102 00:08:02,740 --> 00:08:05,530 Switchport mode access. 103 00:08:06,610 --> 00:08:06,910 Okay. 104 00:08:06,910 --> 00:08:10,360 Well, right here, I want to show you a well, a tip. 105 00:08:10,810 --> 00:08:15,280 You can use a question mark in any one of the commands. 106 00:08:15,280 --> 00:08:21,820 If you put a question mark after the mode, it says you can either use access or trunk here. 107 00:08:22,730 --> 00:08:28,190 An access port can only have one Vlan configured on the interface. 108 00:08:28,220 --> 00:08:30,740 It can carry traffic for only one Vlan. 109 00:08:30,740 --> 00:08:31,310 Right. 110 00:08:31,580 --> 00:08:39,140 A trunk port can have two or more vlans configured on the interface that can carry traffic for several 111 00:08:39,140 --> 00:08:40,880 Vlan simultaneously. 112 00:08:42,140 --> 00:08:46,280 So Switchport access Vlan 20 goes right here. 113 00:08:47,460 --> 00:08:47,970 No. 114 00:08:47,970 --> 00:08:50,100 Shut down and exit. 115 00:08:50,960 --> 00:08:51,650 Great. 116 00:08:51,650 --> 00:08:54,790 So we've configured the interfaces connected to the PC. 117 00:08:54,800 --> 00:08:58,700 So now let's configure the port connected to the router. 118 00:08:59,430 --> 00:09:05,820 INT for interface F1/1 to enter the config mode of that interface. 119 00:09:06,740 --> 00:09:09,050 Switchport mode is trunk. 120 00:09:11,250 --> 00:09:12,420 Wait a second. 121 00:09:12,420 --> 00:09:22,200 And yes, the port has become a dot one trunk dot one queue is a well known name of the 802.1 queue, 122 00:09:22,230 --> 00:09:30,240 which is the networking standard that supports virtual LANs or VLANs on an I triple E 802.3 Ethernet 123 00:09:30,270 --> 00:09:31,080 network. 124 00:09:31,440 --> 00:09:36,130 Now type Switchport Trunk encapsulation dot one queue. 125 00:09:37,110 --> 00:09:39,540 No to shut down and exit. 126 00:09:39,660 --> 00:09:43,810 Type exit again to exit the config mode completely. 127 00:09:43,830 --> 00:09:48,390 Then type SR to make the configurations persistent. 128 00:09:50,260 --> 00:09:51,070 Excellent. 129 00:09:51,370 --> 00:09:53,830 Now let's configure the router. 130 00:09:54,370 --> 00:09:57,220 Right click on the router and select console. 131 00:09:58,890 --> 00:10:00,750 The ports are being initialized now. 132 00:10:02,760 --> 00:10:03,210 Okay. 133 00:10:03,210 --> 00:10:12,690 Entering into the config mode is the same type config terminal or simply conf t and hit enter. 134 00:10:13,170 --> 00:10:17,400 So the only interface of our router is fast ethernet zero zero. 135 00:10:17,400 --> 00:10:20,640 So type interface F0/0. 136 00:10:21,450 --> 00:10:23,130 No IP address. 137 00:10:23,990 --> 00:10:24,410 No. 138 00:10:24,410 --> 00:10:25,160 Shut down. 139 00:10:25,760 --> 00:10:26,720 And look at that. 140 00:10:26,720 --> 00:10:28,040 The port is up right now. 141 00:10:28,680 --> 00:10:33,240 So hit exit and we'll exit from the interface for now. 142 00:10:34,190 --> 00:10:41,720 So now we're ready to configure the subinterfaces and the settings of the VLANs are decided here. 143 00:10:42,600 --> 00:10:51,750 To enter the Subinterface configuration type interface fast Ethernet 0/0.1 where dot one identifies 144 00:10:51,750 --> 00:10:53,760 the sub interface. 145 00:10:54,000 --> 00:11:01,140 Right Type encapsulation dot one Q and a question mark to see the options. 146 00:11:01,680 --> 00:11:03,420 Look at that here. 147 00:11:03,450 --> 00:11:06,060 Vlan ID is one of the options. 148 00:11:06,060 --> 00:11:10,770 So type encapsulation dot one q ten. 149 00:11:11,460 --> 00:11:13,710 Now type IP address. 150 00:11:13,710 --> 00:11:22,920 192.168.10.1255.255.255.0 151 00:11:22,920 --> 00:11:24,270 and press enter. 152 00:11:25,050 --> 00:11:37,320 192.168.10.1 Is the IP address of the router for this Vlan and 255.255.255.0 is a subnet mask of the 153 00:11:37,320 --> 00:11:47,190 network, so the IP block of the Vlan ten will be 192.168.10.0 slash 24. 154 00:11:48,170 --> 00:11:48,560 No. 155 00:11:48,560 --> 00:11:50,780 To shut down and exit. 156 00:11:51,850 --> 00:11:55,300 And here we are back in the configure terminal mode. 157 00:11:56,230 --> 00:12:05,800 So now we'll apply the same sub config for Vlan 20 type interface f0 slash 0.2. 158 00:12:05,830 --> 00:12:06,850 This time. 159 00:12:07,780 --> 00:12:13,540 Encapsulation one cue and the Vlan ID 20. 160 00:12:13,990 --> 00:12:20,860 So let's use the 192.168.20.0 slash 24 ip block for this Vlan. 161 00:12:21,520 --> 00:12:23,470 So type IP address. 162 00:12:23,470 --> 00:12:30,370 192.168.20.1255.255.255.0. 163 00:12:31,260 --> 00:12:33,990 And no shut down and exit. 164 00:12:35,050 --> 00:12:43,420 Now exit again to exit the configure terminal mode as well and type R to make the configurations persistent. 165 00:12:45,620 --> 00:12:46,520 See what I mean? 166 00:12:46,520 --> 00:12:53,060 It's a it's quite a process, but I'm glad you're hanging in there because we haven't even gotten to 167 00:12:53,060 --> 00:12:54,110 the fun stuff yet. 168 00:12:54,940 --> 00:12:58,360 Now's the time to configure the network interfaces of the PCs. 169 00:12:58,720 --> 00:13:01,930 So right click on the PC and select console. 170 00:13:02,500 --> 00:13:09,010 If you place a question mark and press enter, you'll see all the available commands in VPC console. 171 00:13:09,670 --> 00:13:14,800 So as I mentioned before, this is an end user computer simulation of gns3. 172 00:13:14,800 --> 00:13:20,770 But not to worry, it's enough to test the configurations of the networks that we created earlier. 173 00:13:22,150 --> 00:13:28,000 And as you can see here, IP command is used to configure the IP settings of the VPC. 174 00:13:29,150 --> 00:13:36,410 And here you can show or use the shortcut s h, and that's going to print the information about the 175 00:13:36,410 --> 00:13:37,280 VPC. 176 00:13:37,580 --> 00:13:42,170 So type show IP to see the current IP settings. 177 00:13:42,530 --> 00:13:46,670 And as you can see here, VPC has no IP address at the moment. 178 00:13:46,850 --> 00:13:49,460 So type IP and a question mark. 179 00:13:50,070 --> 00:13:52,650 You'll see the options of the IP command. 180 00:13:53,400 --> 00:13:58,320 And as you can see here, you'll be able to assign an IP address using this command. 181 00:13:58,320 --> 00:14:01,620 And an example is given right there to help as well. 182 00:14:02,230 --> 00:14:04,960 So let's assign an IP address for the VPC. 183 00:14:06,420 --> 00:14:19,840 IP 192.168.10.2 slash 24 To identify the subnet mask and the gateway is 192.168.10.1. 184 00:14:19,860 --> 00:14:20,580 Perfect. 185 00:14:20,580 --> 00:14:21,720 It's our router. 186 00:14:22,200 --> 00:14:27,660 So when you press enter it checks to see if there's any duplication and if everything's okay. 187 00:14:27,660 --> 00:14:30,060 It shows a summary just like this one. 188 00:14:30,220 --> 00:14:33,930 Assigned IP Address, Subnet Mask and Gateway. 189 00:14:34,500 --> 00:14:38,220 So now we can ping the router to check the configuration. 190 00:14:38,430 --> 00:14:39,720 Perfect. 191 00:14:39,750 --> 00:14:41,760 See, this is where we get all the answers. 192 00:14:41,790 --> 00:14:48,390 Now let's configure the other VPC because that one is working perfectly just the way we wanted it to. 193 00:14:48,750 --> 00:14:51,840 The steps are exactly the same. 194 00:14:52,470 --> 00:14:54,330 Right click and open the console. 195 00:14:56,200 --> 00:14:56,950 Type. 196 00:14:56,980 --> 00:15:02,520 IP 192.168.20.2 slash 24. 197 00:15:02,530 --> 00:15:07,480 192.168.20.1 and hit enter. 198 00:15:11,390 --> 00:15:13,370 Ping the router to check the config. 199 00:15:15,310 --> 00:15:19,510 And here are the answers, all the answers you've ever been looking for. 200 00:15:20,020 --> 00:15:20,590 Right. 201 00:15:20,590 --> 00:15:25,030 So go to PC one and ping PC two. 202 00:15:26,130 --> 00:15:30,960 You should be able to see the reply packets just like these ones. 203 00:15:31,380 --> 00:15:36,060 And now ping PC one from PC two. 204 00:15:36,210 --> 00:15:38,550 And everything looks perfect on my side. 205 00:15:38,550 --> 00:15:39,540 What about you? 206 00:15:39,870 --> 00:15:40,770 Right as rain. 207 00:15:40,770 --> 00:15:41,400 Right. 208 00:15:41,940 --> 00:15:42,600 Excellent. 209 00:15:42,600 --> 00:15:43,740 So let's move on.