1 00:00:05,320 --> 00:00:10,090 Now, for this demonstration, I'm no longer gonna use this old Toshiba laptop. 2 00:00:10,160 --> 00:00:13,880 Very few laptops today have built in serial ports. 3 00:00:13,880 --> 00:00:21,050 So I'm gonna demonstrate how to connect to a Cisco router and two Cisco switches over there using 4 00:00:21,050 --> 00:00:24,460 this more modern ASUS laptop. 5 00:00:24,560 --> 00:00:27,070 I'm going to show you two ways to connect to the devices. 6 00:00:27,080 --> 00:00:34,130 First method is using this USB to RJ45 rollover cable. 7 00:00:34,130 --> 00:00:40,820 So, I'm gonna connect this to one of the ports on this laptop connect that to one of the devices let's 8 00:00:40,820 --> 00:00:47,000 say a switch and then I'm going to show you how to use two USB cables to connect to the router and to 9 00:00:47,000 --> 00:00:47,650 the switch. 10 00:00:47,690 --> 00:00:51,060 So much easier with a USB cable. 11 00:00:51,080 --> 00:00:55,100 So this device is actually gonna have three console connections. 12 00:00:55,100 --> 00:01:00,900 Please note once again that this laptop does not have Ethernet ports on it. 13 00:01:00,950 --> 00:01:06,060 You do not connect a console cable to an Ethernet port on a laptop. 14 00:01:06,080 --> 00:01:13,270 This is using a serial or USB connection to the router or a switch not an Ethernet port. 15 00:01:13,280 --> 00:01:15,630 This laptop only supports Wi-Fi. 16 00:01:16,040 --> 00:01:17,590 It has no Ethernet ports. 17 00:01:17,600 --> 00:01:22,520 I'm not gonna use Ethernet on the laptop once again, please forgive me for emphasizing this, I've just 18 00:01:22,520 --> 00:01:28,570 seen too many people and heard too many horror stories of people blowing their console ports on their 19 00:01:28,570 --> 00:01:34,310 routers and switches because they connect to the Ethernet port on a laptop or PC please don't do that 20 00:01:34,670 --> 00:01:42,750 use either a USB or a USB to console connect to like this, Okay 21 00:01:42,760 --> 00:01:45,740 So the first thing I need to do is power up the devices. 22 00:01:45,740 --> 00:01:49,790 So I'm gonna plug in the power on the router, powered on 23 00:01:54,760 --> 00:02:03,340 switches like these used what's called a kettle lead in the U.K., so a connection like this. 24 00:02:03,580 --> 00:02:05,670 This will depend on which country you're in. 25 00:02:05,710 --> 00:02:10,660 So the US will be slightly different, but basically I need to just plug in the power of these devices 26 00:02:11,050 --> 00:02:12,970 and as you can see they booting up. 27 00:02:17,160 --> 00:02:17,470 okay, 28 00:02:17,480 --> 00:02:27,160 So the next thing I need to do is connect the USB console cable to the PC and then, I'll connect it 29 00:02:27,160 --> 00:02:30,280 to the console of one of the switches. 30 00:02:30,280 --> 00:02:37,780 So I've got USB to console, USB cables are a lot simpler than that. 31 00:02:37,810 --> 00:02:40,510 All I need to do is connect 32 00:02:42,880 --> 00:02:51,760 USB to USB on the device much simpler or again USB 33 00:02:55,000 --> 00:02:59,830 to USB on the router. 34 00:03:01,360 --> 00:03:09,460 So what I've got is USB on the router, console cable in one switch, USB on the one switch. 35 00:03:09,700 --> 00:03:13,350 And I've got three connections on the laptop now. 36 00:03:13,400 --> 00:03:18,550 I'll plug these out and demonstrate them individually so that you can see how we can work out which 37 00:03:18,550 --> 00:03:27,430 devices, which basically what happens is we see that device as a additional device on the laptop. 38 00:03:27,790 --> 00:03:31,900 So I'll do this individually so that you can see how I do it. 39 00:03:31,900 --> 00:03:32,530 One by one. 40 00:03:32,560 --> 00:03:33,950 But that's sort of the idea. 41 00:03:35,070 --> 00:03:40,000 So I've turned on the Cisco router it's making a bit of noise but hopefully it won't disturb the video 42 00:03:40,000 --> 00:03:40,960 too much. 43 00:03:41,140 --> 00:03:49,930 So I am now going to connect the Windows laptops console connection to one of the switches just to show 44 00:03:49,930 --> 00:03:55,030 you the full process, I'm remotely controlling that Windows laptop from my MAC here. 45 00:03:55,040 --> 00:04:02,450 It just makes it easier with the recordings but I'm physically working on that laptop, Okay. 46 00:04:02,470 --> 00:04:12,760 So, hopefully not too noisy, what I'm going to do now is connect the console port to the USB connection 47 00:04:12,760 --> 00:04:23,000 of the laptop so hopefully you can see that clearly, I've now connected USB to laptop and the next step 48 00:04:23,000 --> 00:04:27,240 is to connect to the console of the switch. 49 00:04:27,380 --> 00:04:37,520 So hopefully you can see that console connection to the switch, USB on a laptop over there so 50 00:04:37,520 --> 00:04:40,320 USB laptop console switch. 51 00:04:40,530 --> 00:04:49,120 Got my first device connected let's set up the laptop now so that we can actually configure the device 52 00:04:49,580 --> 00:04:56,550 and to do that I'm going to use PuTTY, PuTTY is what we're going to use to connect to the device, Okay. 53 00:04:56,560 --> 00:04:59,040 The Cisco router has quietened down quite a bit now. 54 00:04:59,230 --> 00:05:04,410 Took a while, made a bit of noise but once it did it successfully booted up it quietened down. 55 00:05:04,600 --> 00:05:11,380 What I now need to do is download a terminal emulation program so, I've physically connected the laptop 56 00:05:11,380 --> 00:05:12,980 to the switch. 57 00:05:13,150 --> 00:05:20,280 But I need a terminal emulation program to connect to the console port, so in my browser I'm going to simply 58 00:05:20,280 --> 00:05:22,250 look for PuTTY. 59 00:05:22,260 --> 00:05:25,220 This is free software that you can download. 60 00:05:25,290 --> 00:05:37,400 So the first hit in Google, I'm going to go to download stable release so greenend.org.uk in 61 00:05:37,400 --> 00:05:41,990 my example I want to download the 64bit exe 62 00:05:44,990 --> 00:05:54,590 I'm not going to download an MSI installer, I'm simply going to download a 64bit exe, so generally, that's 63 00:05:54,590 --> 00:05:57,100 the software that you want if you're using Windows. 64 00:05:57,110 --> 00:06:03,050 If you're using a Windows computer this is the terminal emulation software that I suggest you use, free 65 00:06:03,050 --> 00:06:06,420 software used by millions of people around the world. 66 00:06:06,440 --> 00:06:11,780 If you've got a MAC you've got a built-in console or terminal application and the same on Linux but 67 00:06:11,780 --> 00:06:14,210 on windows this is probably the easiest. 68 00:06:14,240 --> 00:06:21,920 So that's now downloaded, it's a simple exe file that you download and I'm gonna double click on that 69 00:06:23,760 --> 00:06:28,360 Windows is complaining but I'm going to install this anyway and run it. 70 00:06:28,500 --> 00:06:32,820 And notice we told that we could use Telnet as an example we could use SSH. 71 00:06:32,940 --> 00:06:39,750 But what we want to use is a serial interface so which serial port do we use. 72 00:06:40,110 --> 00:06:43,050 So to find that right click on windows start. 73 00:06:43,140 --> 00:06:53,550 Go to device manager go to Port (Com and LPT) and what you'll see is we've got a USB to serial port here 74 00:06:55,150 --> 00:06:55,470 now. 75 00:06:55,520 --> 00:07:04,700 If you're using a converter like this they generally come with some installation software or you have 76 00:07:04,700 --> 00:07:06,040 to download it. 77 00:07:06,050 --> 00:07:09,410 So really old way of doing it we've got a CD ROM here. 78 00:07:09,410 --> 00:07:15,620 You'd have to install the driver software on your laptop to get that working. 79 00:07:15,860 --> 00:07:20,390 Follow the instructions that you get with the converter 80 00:07:20,630 --> 00:07:23,170 I mean the instructions are fairly simple. 81 00:07:23,360 --> 00:07:28,130 It's basically telling us that we need to install the drivers to be able to use this. 82 00:07:28,130 --> 00:07:32,130 So make sure that you have your drivers installed. 83 00:07:32,240 --> 00:07:38,900 Generally, you get the drivers if it's a reputable vendor such as this or you can download them. 84 00:07:38,930 --> 00:07:42,580 In my experience the cheap stuff often causes problems. 85 00:07:42,590 --> 00:07:48,460 Fortunately today we have USB connections on the Cisco devices which makes it a lot easier. 86 00:07:48,510 --> 00:07:53,770 So you don't have to mess around with us but notice the computer's COM7. 87 00:07:54,530 --> 00:07:59,560 So in PuTTY, I need to set this to com seven leave everything. 88 00:07:59,560 --> 00:08:04,940 I'll set the defaults so 9600 bits per second as an example click open. 89 00:08:04,940 --> 00:08:09,840 And what we should have when I press enter now is a connection to the switch. 90 00:08:10,160 --> 00:08:11,540 And there you go. 91 00:08:11,540 --> 00:08:13,710 I've got a connection to the device. 92 00:08:13,910 --> 00:08:19,040 Now this is known as user mode and I typed enable to go to privilege mode. 93 00:08:19,040 --> 00:08:22,670 The switch already has a configuration on it. 94 00:08:22,670 --> 00:08:27,050 If I log right out you would see something like this. 95 00:08:27,050 --> 00:08:30,800 And we would be asked to press return to get started. 96 00:08:30,890 --> 00:08:40,010 And when I press into or return, I see what's called a user-mode or user prompt if I use question marks 97 00:08:40,010 --> 00:08:41,860 I just type question mark there. 98 00:08:42,980 --> 00:08:46,610 I see a list of available commands on the device. 99 00:08:46,820 --> 00:08:52,920 If I press enter it shows me one more available command so I notice more here. 100 00:08:53,120 --> 00:09:00,710 If I press enter here it shows one additional command or line of output if, I press spacebar I chose a whole 101 00:09:00,710 --> 00:09:02,810 page of output. 102 00:09:02,810 --> 00:09:12,140 Now just to demonstrate this I'm gonna erase the configuration of this device that command E N is enable 103 00:09:12,290 --> 00:09:15,030 that takes me to what's called privilege mode. 104 00:09:15,110 --> 00:09:24,660 This is shorthand for enable and then I type a few characters and press tab to auto-complete the command. 105 00:09:24,770 --> 00:09:26,080 Don't worry too much about this. 106 00:09:26,120 --> 00:09:33,080 I'll show you these commands in more detail in a moment but I wanted to show you what a brand new device 107 00:09:33,080 --> 00:09:33,710 would look like. 108 00:09:33,740 --> 00:09:40,190 So I've basically raised the configuration of that switch and it's now rebooting and I'll show you what 109 00:09:40,190 --> 00:09:41,450 it looks like in a moment. 110 00:09:41,450 --> 00:09:50,270 once it reboots, so what I'll do is while we're waiting for that to reboot is let's connect the next device 111 00:09:52,780 --> 00:10:02,170 so for this demonstration, I'm going to use a console cable, standard USB cable so, I'm gonna simply 112 00:10:02,170 --> 00:10:08,170 connect it to a port on the PC. 113 00:10:08,170 --> 00:10:17,440 So something like this simple connection to USB port and I'll connect it to the switch. 114 00:10:17,440 --> 00:10:27,940 So notice now I have USB on the switch, USB cable on the PC and I've also got a console cable connected 115 00:10:27,940 --> 00:10:28,740 to the switch. 116 00:10:29,590 --> 00:10:39,680 So two connections on the PC, okay so, as you can see now this switch is booting up and it's booting what's 117 00:10:39,680 --> 00:10:41,780 called a Bin image. 118 00:10:41,780 --> 00:10:45,600 That's the operating system of the switch. 119 00:10:45,640 --> 00:10:54,380 So while that's waiting once again, I'll right click on windows start and go to device manager and what 120 00:10:54,480 --> 00:10:57,680 you'll notice is under comports. 121 00:10:57,870 --> 00:11:03,150 We now have two comports, this is my USB too serial connection. 122 00:11:03,150 --> 00:11:06,200 And here's a new USB serial device. 123 00:11:06,210 --> 00:11:07,720 Com3. 124 00:11:07,770 --> 00:11:17,300 So what I can do is run PuTTY again, so that I've got two instances of PuTTY running, so I've got my original 125 00:11:17,300 --> 00:11:19,070 PuTTY running in the background. 126 00:11:19,250 --> 00:11:23,990 That's showing the device booting up and I've got another PuTTY session. 127 00:11:24,030 --> 00:11:32,540 So basically all I've done now is start PuTTY twice on this second session the comport that I need to 128 00:11:32,540 --> 00:11:41,770 use is com3, so I'm going to specify serial there and change this to com3 now actually what's 129 00:11:41,770 --> 00:11:46,980 happened at this point is my PC has blue screen. 130 00:11:47,110 --> 00:11:51,220 This is one of the problems when devices boot up. 131 00:11:51,220 --> 00:11:54,460 I've seen this happen so many times on Windows devices. 132 00:11:54,580 --> 00:11:57,290 So notice blue screen here. 133 00:11:57,460 --> 00:12:03,220 So what I would suggest you do is unplug the console cable while it's booting up. 134 00:12:03,640 --> 00:12:05,610 And then once it's booted plug it back in again. 135 00:12:05,650 --> 00:12:09,890 If you have that issue seeing that happen on Windows machines many times. 136 00:12:10,000 --> 00:12:10,220 Okay. 137 00:12:10,240 --> 00:12:14,070 So let's start again. 138 00:12:14,190 --> 00:12:19,530 I'm trying to make this real world and that's a real-world issue that you'll often encounter, Okay 139 00:12:19,540 --> 00:12:22,870 So going to downloads what I'll do is start PuTTY again 140 00:12:26,030 --> 00:12:37,180 on the windows start menu go to device manager, go to comports notice I've got com 7 and com 3. 141 00:12:37,210 --> 00:12:40,940 Now I must say I've seen them many times with USB to roll over cables 142 00:12:40,940 --> 00:12:46,440 happens a lot, doesn't happen as often with a USB cable so much better much easier today. 143 00:12:46,610 --> 00:12:47,920 But it is something to be aware of. 144 00:12:47,920 --> 00:12:51,970 If you're using a USB to roll over cable. 145 00:12:52,100 --> 00:12:59,340 Okay so the first one USB to Serial, this is a serial interface and it's com 7. 146 00:12:59,730 --> 00:13:07,490 So press enter and as you can see when the device is booted up fully we see a system configuration dialog 147 00:13:08,180 --> 00:13:12,880 and you can enter what's called the initial configuration dialog. 148 00:13:12,920 --> 00:13:16,220 I strongly suggest that you say no right there. 149 00:13:16,220 --> 00:13:21,020 I will demonstrate the initial configuration dialog so that you can see the full process but for the 150 00:13:21,020 --> 00:13:26,010 real world I suggest you don't do that you simply type No. 151 00:13:26,240 --> 00:13:29,900 And then the mode that you'll end up in is user mode. 152 00:13:29,930 --> 00:13:34,580 So if I press enter multiple times here I see switch with the greater than sign like this. 153 00:13:34,580 --> 00:13:38,950 This is a user mode, press question mark once again, shows me a list of commands. 154 00:13:38,960 --> 00:13:46,550 Press spacebar shows me a page of commands, I can type E N press question mark at this point it shows 155 00:13:46,550 --> 00:13:54,800 me the commands available, if I type E Question mark, I've got multiple commands E N question mark only 156 00:13:54,800 --> 00:14:01,370 command available at the moment is enable, I'll press tab that re-types the command and completes 157 00:14:01,370 --> 00:14:07,730 it there and press enter that takes me to what's called privilege mode, if I press question mark here 158 00:14:08,300 --> 00:14:17,510 I see a list of additional commands and once again pressing Enter shows me one command at a time, pressing 159 00:14:17,510 --> 00:14:26,600 spacebar shows me one page of commands at a time many more commands available in that mode and once 160 00:14:26,600 --> 00:14:34,940 again my laptop has crashed so either there's a problem with the drivers on this USB cable so let's 161 00:14:35,030 --> 00:14:39,680 unplug that so I either need to update the drivers or something else is happening. 162 00:14:40,280 --> 00:14:51,890 So for the moment, I'm going to unplug this USB to rollover cable and I'm going to use straight USB 163 00:14:52,330 --> 00:14:53,680 and let's see if that solves the problem 164 00:14:56,860 --> 00:15:04,630 I don't want to make this video too long by trying to deal with a buggy driver. 165 00:15:04,630 --> 00:15:07,720 So once again on downloads start PuTTY 166 00:15:11,430 --> 00:15:19,730 or run PuTTY go to serial but I need to know which comport to use. 167 00:15:19,730 --> 00:15:23,480 So the two comports are 3 and 8. 168 00:15:23,480 --> 00:15:30,310 Now notice it's changed because I'm no longer using a USB to rollover cable I'm using straight USB 169 00:15:30,340 --> 00:15:31,170 here. 170 00:15:31,780 --> 00:15:35,290 So comport has changed so this will be com 8 now 171 00:15:35,300 --> 00:15:39,680 and there we go we're back on that switch. 172 00:15:39,730 --> 00:15:43,990 Notice the switch says, console media is USB. 173 00:15:44,020 --> 00:15:52,130 So once again pressing question mark, I can see a page of commands at a time when using spacebar. 174 00:15:52,270 --> 00:15:57,010 Many, many more commands in privilege mode or enable mode than in user mode. 175 00:15:57,010 --> 00:16:01,470 If I type disable that takes me back to user mode. 176 00:16:01,510 --> 00:16:08,140 Okay but let's get the other device connected so Com 3 in PuTTY, I can right-click at the top here and 177 00:16:08,140 --> 00:16:21,310 say new session, serial and the serial port that I want to use here is Com 3 so this will give me a 178 00:16:21,310 --> 00:16:23,140 connection to my second device. 179 00:16:24,890 --> 00:16:28,110 Notice I typed enable here to go to enable mode. 180 00:16:28,280 --> 00:16:32,840 Now in this device I could use the command show version to see what kind of switch it is. 181 00:16:32,840 --> 00:16:36,250 I'm told that it's a 3560C switch. 182 00:16:36,320 --> 00:16:42,740 This is the version of operating system so that's similar to saying Windows 10 or Windows 8 or Windows 183 00:16:42,740 --> 00:16:44,050 7 or whatever. 184 00:16:44,540 --> 00:16:47,920 This is the version of operating system on the device. 185 00:16:48,110 --> 00:16:52,150 The device has been up for 25 minutes at this point. 186 00:16:52,340 --> 00:16:56,840 Press spacebar shows me additional information about this device. 187 00:16:56,960 --> 00:16:58,260 Whole bunch of information here. 188 00:16:58,280 --> 00:17:00,650 You'll learn about this as we go through the course. 189 00:17:01,370 --> 00:17:08,210 But once again show version is a command that shows me the model of switch. 190 00:17:08,220 --> 00:17:10,670 Let's do that on the other switch. 191 00:17:10,670 --> 00:17:15,160 So show version here. 192 00:17:15,260 --> 00:17:19,200 This is a 3560 CX switch. 193 00:17:19,400 --> 00:17:21,990 So let's give it a name. 194 00:17:22,369 --> 00:17:30,460 And in PuTTY if I highlight it's actually copying that information conf T or configured terminal 195 00:17:30,460 --> 00:17:38,290 so type C O N F press question mark shows me that the command available is configure and I press 196 00:17:38,290 --> 00:17:44,430 tab now, question mark shows me that I can configure this device multiple ways one of them is terminal. 197 00:17:44,440 --> 00:17:50,870 So I'm gonna press T, press tab that takes me to what's called Global configuration mode on the switch and 198 00:17:50,890 --> 00:17:59,920 if I use the command host press tab to order complete and right-click now it's pasted the name that 199 00:17:59,920 --> 00:18:07,780 I copied previously and notice the switches name has not changed on the other switch I'll do something 200 00:18:07,780 --> 00:18:08,800 similar. 201 00:18:09,220 --> 00:18:11,500 So show version on the switch. 202 00:18:11,500 --> 00:18:20,310 This is my 3560 C switch, I'm gonna press q to quit the output here. 203 00:18:20,450 --> 00:18:22,700 So how do I configure a switch. 204 00:18:22,700 --> 00:18:24,420 What's the command, can you remember it? 205 00:18:24,920 --> 00:18:35,780 It's conf T for shorthand or C O N F tab T tab configure terminal and I can use the command host for 206 00:18:35,780 --> 00:18:38,970 shorthand or I can type it out fully if I want to. 207 00:18:38,990 --> 00:18:41,430 That changes the name of the host. 208 00:18:41,450 --> 00:18:46,940 This is what's called Global configuration mode once again that allows me to globally configure the 209 00:18:46,940 --> 00:18:47,900 device. 210 00:18:47,900 --> 00:18:54,860 If I type END it takes me back to what's called privilege or enable mode of press Enter here again and 211 00:18:54,860 --> 00:19:02,330 then I can use the command copy running config startup config to save the configuration. 212 00:19:02,330 --> 00:19:09,540 This is basically saving a configuration from memory to hard drive. 213 00:19:09,620 --> 00:19:11,140 This is a flash drive. 214 00:19:11,180 --> 00:19:17,790 So basically saving it to NV Ram is what it's called non-volatile RAM. 215 00:19:18,040 --> 00:19:25,120 I'm saving the configuration of the device now there is an older command that I find a lot easier. 216 00:19:25,120 --> 00:19:29,400 So on the first switch the 3560 CX switch. 217 00:19:29,740 --> 00:19:37,570 If I type END that takes me back to privilege mode and I used a very quick command this let me do that 218 00:19:37,570 --> 00:19:45,390 again W R is an old command that writes the configuration basically saves the config again. 219 00:19:45,460 --> 00:19:52,390 That's an older command and an easier command to use then copy running-config, startup-config for the 220 00:19:52,390 --> 00:19:56,490 exam know this command copy running-config, startup-config for the real world. 221 00:19:56,500 --> 00:19:59,730 I would know W R, okay 222 00:19:59,760 --> 00:20:05,990 So I've now shown you how to connect to the console of two switches let's connect to the console of 223 00:20:05,990 --> 00:20:06,530 the router.