1 00:00:05,410 --> 00:00:10,420 Now in a previous video, I showed you how to connect to the console of a Cisco router or switch. 2 00:00:10,420 --> 00:00:15,880 But now let's actually build a basic topology using Cisco routers and switches. 3 00:00:15,970 --> 00:00:24,340 So in this topology, I'm gonna add a 4321 router to my topology. 4 00:00:24,340 --> 00:00:33,750 I'll add another one and then let's add a 3650 switch to the topology to physically cable these devices. 5 00:00:33,750 --> 00:00:40,860 I'm gonna use a straight-through copper cable from the first Gigabit Ethernet interface of the router 6 00:00:41,220 --> 00:00:44,880 to the first gigabit Ethernet interface of the switch. 7 00:00:44,880 --> 00:00:48,420 Notice how the switches start at 1 0 1 here. 8 00:00:48,600 --> 00:00:50,190 But the router started gigabit. 9 00:00:50,190 --> 00:00:54,750 0 0 0 now just to be consistent. 10 00:00:54,750 --> 00:01:01,290 I like to say Cisco is inconsistent so depends on device to device the interface numbers really depend 11 00:01:01,290 --> 00:01:02,060 on the devices. 12 00:01:02,060 --> 00:01:04,390 So you just have to look at the physical devices. 13 00:01:04,470 --> 00:01:10,740 Generally a switch starts at Interface one, router started interface zero as a general rule but things 14 00:01:10,740 --> 00:01:12,400 do vary sometimes. 15 00:01:12,780 --> 00:01:16,600 I'll connect this port to the second interface on the switch. 16 00:01:16,690 --> 00:01:20,620 Now the interfaces are down at the moment because the switch needs power. 17 00:01:20,670 --> 00:01:28,300 So I'm gonna drag a power supply into the switch and what should happen is these should eventually change 18 00:01:28,410 --> 00:01:33,620 colour but I can verify that things are working by clicking on the switch and going to CLI. 19 00:01:33,840 --> 00:01:39,530 And what you'll notice is the switch has now booted. 20 00:01:39,590 --> 00:01:49,850 Now these will still be down because what I need to do is enable the ports on the routers, another difference 21 00:01:49,850 --> 00:01:54,530 between switches and routers is switch interfaces by default come up generally. 22 00:01:54,530 --> 00:01:58,940 So as soon as you power the switch on all the interfaces or enable but routing interfaces all by default 23 00:01:59,120 --> 00:02:06,360 disabled or shut down you need to enable those interfaces by using the no shutdown command. 24 00:02:06,410 --> 00:02:12,920 So on a router, we would need to no shut the interface but before we get there I'd like to take you 25 00:02:12,920 --> 00:02:15,850 through this initial configuration dialog. 26 00:02:15,890 --> 00:02:17,140 Generally we would type 27 00:02:17,150 --> 00:02:19,730 NO but I'm just gonna do it once. 28 00:02:19,760 --> 00:02:25,280 I'm going to type YES here so that we can go through the initial configuration dialog and what it's 29 00:02:25,280 --> 00:02:30,950 going to ask me is a whole bunch of questions, like Do we want to enter basic management set up, I'm going 30 00:02:30,950 --> 00:02:37,160 to say yes we're asked, What is the name of the switch I'm going to say S1 for whatever name I want to 31 00:02:37,160 --> 00:02:40,650 use, then we're asked to set a password on the switch. 32 00:02:40,670 --> 00:02:46,130 I'm gonna say Cisco, now a secret password uses what's called a hash. 33 00:02:46,130 --> 00:02:48,690 It's a type of encryption but it's not encryption it's a hash. 34 00:02:48,770 --> 00:02:55,100 But basically the password is encrypted so it's not easy to guess or see in the running configuration 35 00:02:55,130 --> 00:03:02,010 or the active configuration of the device an older password was the enable password. 36 00:03:02,030 --> 00:03:11,850 I'll set this to Cisco1 generally you shouldn't use that old password a VTY line or virtual terminal 37 00:03:11,850 --> 00:03:16,480 password is a way to Telnet or SSH to a device remotely. 38 00:03:16,530 --> 00:03:21,580 So if you want to be able to SSH or Telnet to the device you need to have a password configured so I'm gonna 39 00:03:21,610 --> 00:03:23,180 set that to Cisco. 40 00:03:23,430 --> 00:03:26,070 Do we want to configure simple network management protocol? 41 00:03:26,070 --> 00:03:27,570 I'm going to say NO. 42 00:03:27,660 --> 00:03:30,730 The problem here is it's asking you a whole bunch of questions. 43 00:03:30,840 --> 00:03:36,000 In some ways it's easier just to bypass all of this and just configure what you want on the switch rather 44 00:03:36,000 --> 00:03:39,300 than having to answer this quiz if you like. 45 00:03:39,300 --> 00:03:45,830 Now we're told that here is a list of interfaces and we can see a bunch of interfaces on the switch. 46 00:03:45,870 --> 00:03:50,120 We're now asked, Enter interface name used to connect to the management network. 47 00:03:50,130 --> 00:03:52,610 From the above interface summary. 48 00:03:52,740 --> 00:03:54,800 So I'm gonna say gigabit 49 00:03:54,810 --> 00:04:02,160 1 0 1 for argument's sake, Enter interface name to connect to the management network from the above interface 50 00:04:02,160 --> 00:04:03,080 summary. 51 00:04:03,130 --> 00:04:11,770 So I'm gonna try this one and paste that, we're asked do we want to configure an IP address for this interface. 52 00:04:11,770 --> 00:04:18,100 I'm going to say no, we're now asked, Do you want to go to the IOS prompt without saving this conflict. 53 00:04:18,120 --> 00:04:24,420 And here's the config that it's generated so it's created a configuration for us including notice the 54 00:04:24,420 --> 00:04:29,190 secret password being encrypted or hashed to use the correct term. 55 00:04:29,190 --> 00:04:30,720 Here's the enable password. 56 00:04:30,750 --> 00:04:32,190 Here's the VTY password. 57 00:04:32,200 --> 00:04:38,570 Here's the hostname and it's added some other configuration like no shutting this interface. 58 00:04:38,970 --> 00:04:43,950 We can return back to the setup without saving this config and go through this nightmare again or save 59 00:04:43,950 --> 00:04:47,460 this configuration to NV RAM and exit. 60 00:04:47,460 --> 00:04:50,670 I'm gonna just say, skip all of this and press enter. 61 00:04:50,790 --> 00:04:57,240 So seriously for the real world don't use that but I would suggest that you go through this just once 62 00:04:57,240 --> 00:05:02,750 or twice using packet tracers that you can see what it's like but generally don't waste your time with 63 00:05:02,750 --> 00:05:06,220 this is not important for the exam and it's not important for the real world 64 00:05:06,300 --> 00:05:10,830 So I wouldn't waste a lot of time going through this, go through it once, if you just want to see what 65 00:05:10,830 --> 00:05:15,560 it does but otherwise don't bother, so going back to our topology. 66 00:05:15,560 --> 00:05:22,490 Interfaces are still down because on the router, I'm going to go to the CLI and I'm going to bypass 67 00:05:22,490 --> 00:05:27,960 that initial configuration dialog and press Enter to get started, now to configure the router the first 68 00:05:27,960 --> 00:05:34,620 thing I need to do is go to enable mode so I've typed enable and I'm using the shorthand here and what 69 00:05:34,620 --> 00:05:38,750 I need to do is configure the interface on the router 70 00:05:38,770 --> 00:05:45,600 Now we don't see the interfaces because in packet tracer I've gone to options, preferences and I disabled 71 00:05:45,600 --> 00:05:50,900 this option show port labels in logical workspace, so I'll enable that now. 72 00:05:51,120 --> 00:05:57,090 And as you can see now interface gigabit 0 0 0 on the router is connected to interface gigabit 1 0 73 00:05:57,100 --> 00:06:07,120 1 on the switch, so on the router, I can type CONF T to go to global configuration mode and then type 74 00:06:07,480 --> 00:06:14,370 INT which is shorthand for interface I'll press tab then I need to choose my interface which is gigabit 75 00:06:14,400 --> 00:06:21,520 so I'm going to use G tab to auto-complete and then I need to put the interface numbering now you'd 76 00:06:21,520 --> 00:06:22,610 need to know this. 77 00:06:22,660 --> 00:06:33,930 So I'm going to use gigabit 0 0 0 so 0/0/0 again the interface numbers depend on the device. 78 00:06:34,000 --> 00:06:37,440 So you just have to see what's on your device. 79 00:06:37,450 --> 00:06:40,690 I'll give you a short cut to help you if you're not sure. 80 00:06:40,690 --> 00:06:41,830 Very good command. 81 00:06:41,860 --> 00:06:45,820 So I'm gonna type end to go back to privilege mode. 82 00:06:45,820 --> 00:06:49,690 This command show IP interface brief, will save you a lot of time. 83 00:06:50,230 --> 00:06:55,430 So show IP interface brief will show me the interfaces on the router. 84 00:06:55,630 --> 00:06:57,910 We'll talk about V LAN interfaces later. 85 00:06:58,090 --> 00:07:01,150 But notice gigabit 0 0 0 and gigabit. 86 00:07:01,150 --> 00:07:09,310 0 0 1 are the interfaces on the router and I'm connected to the first gigabit interface. 87 00:07:09,300 --> 00:07:11,810 0 0 0. 88 00:07:11,880 --> 00:07:18,290 So, again to configure the right and I'll go right out of the router so we can start again. 89 00:07:18,390 --> 00:07:20,190 So press enter. 90 00:07:20,190 --> 00:07:26,310 I'm in user mode type enable to go to privilege mode or enable mode, CONF T to go to global configuration 91 00:07:26,310 --> 00:07:26,970 mode. 92 00:07:26,990 --> 00:07:34,010 I'm gonna use shortcuts now interface gigabit 0 0 0 you could have typed that out. 93 00:07:34,070 --> 00:07:37,670 Interface gigabit 0 slash 0 slash 0. 94 00:07:37,760 --> 00:07:44,300 I'm just using shorthand here or shortcut commands IP question mark. 95 00:07:44,300 --> 00:07:50,780 Address will allow me to configure an address on the device I'll put two S's there just to make sure 96 00:07:50,780 --> 00:07:52,890 that the full command is displayed. 97 00:07:52,890 --> 00:07:59,840 I'll use an IP address like this 10.1.1.1 space question mark what subnet mask. 98 00:07:59,840 --> 00:08:07,490 Am I going to use, I'm going to use 2 5 5 2 5 5 2 5 5 0 and press Enter now hopefully you understand about 99 00:08:07,490 --> 00:08:08,140 IP addresses. 100 00:08:08,150 --> 00:08:12,590 If you don't please review the IP addressing section of this course I explain 101 00:08:12,590 --> 00:08:14,210 IP addresses in a lot of detail. 102 00:08:15,200 --> 00:08:19,180 Now again this interface is by default shut. 103 00:08:19,200 --> 00:08:25,760 Notice red, I'm going to type no shut, which is shorthand for no shutdown. 104 00:08:26,000 --> 00:08:34,590 Notice as soon as I did that it went green and I'm told that the interface has come up type exit to 105 00:08:34,590 --> 00:08:36,539 go to global configuration mode. 106 00:08:36,900 --> 00:08:44,130 Let's give this router a name, so I'm gonna type host tab for hostname, R1 so the routers name is 107 00:08:44,130 --> 00:08:53,610 R1 type end, and I should save my configuration by using the command copy running config startup 108 00:08:53,610 --> 00:08:58,400 config and press enter to save the routers configuration. 109 00:08:58,710 --> 00:09:03,300 So what I've done is I've configured an IP address on this router let's do something similar 110 00:09:03,300 --> 00:09:10,260 on the second router, Now you might see that the names are not as I configured them so let's change that 111 00:09:10,260 --> 00:09:11,200 to R1. 112 00:09:11,370 --> 00:09:17,490 Let's change this to be S1 and let's change this to be R2 113 00:09:17,550 --> 00:09:24,600 that's just a visual name in Packet Tracer so I'll click on the router go to CLI and I'm gonna 114 00:09:24,600 --> 00:09:28,590 bypass this initial configuration dialog because it's just a nightmare. 115 00:09:28,590 --> 00:09:30,630 I'm in user mode at the moment. 116 00:09:30,630 --> 00:09:34,830 Notice the greater than sign type in, type E N press tab. 117 00:09:34,830 --> 00:09:36,780 Takes me to privilege or enable mode. 118 00:09:36,780 --> 00:09:46,720 Notice the hash, type C O N F as in configure, press tab there T tab so configure terminal. 119 00:09:47,040 --> 00:09:53,470 Let's give the router hostname so H O S T if I press question mark I can see the available command, I'll 120 00:09:53,550 --> 00:09:56,460 press tab now R2 121 00:09:56,460 --> 00:09:58,980 So that's the name of the router 122 00:09:59,010 --> 00:10:02,800 I'm gonna type I N T tab interface. 123 00:10:02,970 --> 00:10:03,690 Question mark. 124 00:10:03,750 --> 00:10:12,450 I can see a list of available commands but I can't type fast Ethernet 0 0 0 because that interface doesn't 125 00:10:12,450 --> 00:10:16,790 exist on the router, I've gotta use the right interface numbers. 126 00:10:16,830 --> 00:10:21,740 Interface gigabit 0 0 0 0. 127 00:10:21,750 --> 00:10:27,160 Once again I could look in packet tracer to see the interface number or if I type 128 00:10:27,270 --> 00:10:34,470 end once again use the command show IP interface brief to see a list of available interfaces on the 129 00:10:34,470 --> 00:10:34,920 router. 130 00:10:35,730 --> 00:10:42,290 Okay so CONF T interface G tab 0 0 0 0. 131 00:10:42,420 --> 00:10:51,070 Enter, no shutdown to enable the interface IP address 10.1.1.2 132 00:10:51,180 --> 00:11:01,240 In this example slash 24 mask type END WR, old command but much quicker way to save the config of 133 00:11:01,330 --> 00:11:02,680 the router. 134 00:11:02,680 --> 00:11:06,180 Notice Green, the side is green. 135 00:11:06,430 --> 00:11:11,960 The side is orange because a switch uses what's called spanning tree to stop loops. 136 00:11:12,100 --> 00:11:18,160 So we've got to wait 30 seconds for that to go green before we can ping from one side to the other. 137 00:11:18,670 --> 00:11:20,300 It's gone green now. 138 00:11:20,530 --> 00:11:28,490 So on router 1, I should be able to ping router 2, ping once again is basically sending a message saying 139 00:11:28,520 --> 00:11:29,300 Are you there. 140 00:11:29,420 --> 00:11:31,810 And then the device replies back saying, Yes I'm here. 141 00:11:31,970 --> 00:11:35,070 If it works this is a timeout. 142 00:11:35,150 --> 00:11:39,340 Ping requires that the response comes back in a certain amount of time. 143 00:11:39,560 --> 00:11:46,380 And in this case it didn't so it timed out and then we get some successful responses on Router 2 144 00:11:46,460 --> 00:11:50,090 I could ping router 1 and that succeeds. 145 00:11:50,090 --> 00:11:55,100 So I've now built a very basic network of a switch and two routers. 146 00:11:55,100 --> 00:11:56,200 Can you do the same. 147 00:11:56,360 --> 00:12:02,660 Please create a network like this in packet tracer using a switch and two routers and configure the 148 00:12:02,660 --> 00:12:06,550 routers with IP addresses and get them to ping each other. 149 00:12:06,560 --> 00:12:09,760 Best way to learn networking is just to do it. 150 00:12:09,800 --> 00:12:16,010 build topologies and try things in this course there are many topologies that I'm going to use to test 151 00:12:16,010 --> 00:12:18,530 your knowledge and help you learn these technologies. 152 00:12:18,560 --> 00:12:22,780 So start with a very basic topology like this and see if you can get it working.