1 00:00:00,150 --> 00:00:06,420 So we've been told in this network that the operating system of the router has been lost. 2 00:00:15,680 --> 00:00:23,240 Clicking on the router, I can see that the router has booted into ROM monitor mode, help shows us various 3 00:00:23,240 --> 00:00:26,090 commands that we can use in ROM MON mode. 4 00:00:26,610 --> 00:00:28,160 One of them is DIR 5 00:00:28,490 --> 00:00:31,580 and we can look at the flash of the router. 6 00:00:31,880 --> 00:00:35,200 At the moment, no files are available in flash. 7 00:00:35,600 --> 00:00:40,460 So if I use the command reset, the boot process fails 8 00:00:41,420 --> 00:00:43,430 and we're back in ROM monitor mode. 9 00:00:44,620 --> 00:00:48,160 Help again, shows us various commands that are available. 10 00:00:48,850 --> 00:00:58,330 One of those is TFTP download, which allows us to download an image from a TFTP server. In this network 11 00:00:58,750 --> 00:01:03,130 we have at TFTP Server, which has the operating system. 12 00:01:03,680 --> 00:01:09,760 The TFTP server has an IP address of 10.1.1.100. 13 00:01:10,570 --> 00:01:16,220 So again, IP config shows us the IP address of the TFTP server. 14 00:01:16,780 --> 00:01:22,450 So we should be able to connect to the TFTP server via the switch. 15 00:01:23,230 --> 00:01:28,750 That assumes that the ports on the switch are in the same VLAN. 16 00:01:29,350 --> 00:01:32,500 So on this switch show IP interface brief. 17 00:01:36,350 --> 00:01:37,340 This port is up. 18 00:01:37,900 --> 00:01:42,350 This is the port connected to the TFTP server, this port is down. 19 00:01:42,650 --> 00:01:45,260 This is the port connected to the router. 20 00:01:45,710 --> 00:01:52,460 You can view that by going to options preferences, show port labels, and that will show you the port 21 00:01:52,460 --> 00:01:53,860 labels in the diagram. 22 00:01:54,050 --> 00:01:59,510 I'm going to turn that off, but if you prefer, you can display the port labels. 23 00:02:03,660 --> 00:02:04,440 So again 24 00:02:06,660 --> 00:02:09,130 this is the portal interface connected to the router. 25 00:02:09,630 --> 00:02:13,350 This is the interface connected to the server. 26 00:02:14,350 --> 00:02:22,460 Show run allows us to view the running configuration, we can see that Portfast is enabled on 27 00:02:22,480 --> 00:02:23,150 this port. 28 00:02:23,740 --> 00:02:30,160 That's important because when the router boots up, it's going to try and connect to the TFTP server 29 00:02:30,610 --> 00:02:33,760 and we don't want the routers connection to timeout. 30 00:02:34,270 --> 00:02:37,750 So we want the port on the switch to start forwarding immediately. 31 00:02:39,020 --> 00:02:46,820 So I'll run the TFTP download command, notice the help that it's going to give us this quite a bit 32 00:02:46,820 --> 00:02:47,270 of help. 33 00:02:47,810 --> 00:02:54,110 We're told that we need to enter some information to use the command. 34 00:02:54,800 --> 00:03:02,260 We're also told to only use this command for disaster recovery when recovering an image from a TFTP server. 35 00:03:02,630 --> 00:03:04,850 That's what I want to do in this lab. 36 00:03:05,720 --> 00:03:13,550 We need to configure some variables using this syntax and we can use the set command to show the current 37 00:03:13,660 --> 00:03:17,660 variables, these variables are required, 38 00:03:18,170 --> 00:03:19,570 these are optional. 39 00:03:20,210 --> 00:03:26,300 So set at the moment shows us that only that option is currently configured. 40 00:03:26,900 --> 00:03:29,990 So what I'm going to do is copy IP address 41 00:03:33,420 --> 00:03:42,060 and paste that into the router and set the IP address of the router to a value such as 10.1.1.1. 42 00:03:42,810 --> 00:03:50,430 I'm sending it to 10.1.1.1 because the TFTP server has its default gateway configured with that IP 43 00:03:50,430 --> 00:03:50,880 address 44 00:03:52,380 --> 00:03:53,700 and the switch 45 00:03:55,650 --> 00:04:03,720 is configured with this IP address, you don't have to use 10.1.1.1 you just need to make 46 00:04:03,720 --> 00:04:05,580 sure that you have IP connectivity. 47 00:04:06,560 --> 00:04:09,500 So use an IP address in the same subnet. 48 00:04:10,810 --> 00:04:16,130 Subnet mask will be set to 255.255.255.0 49 00:04:16,570 --> 00:04:17,860 and that's because 50 00:04:19,130 --> 00:04:22,550 that's the subnet used on the TFTP server 51 00:04:23,790 --> 00:04:24,480 and 52 00:04:26,010 --> 00:04:29,760 that's the subnet used on the switch. 53 00:04:30,330 --> 00:04:39,720 So you're going to want to configure the router in the same subnet as the TFTP server or configure a default 54 00:04:39,780 --> 00:04:43,730 gateway that has IP connectivity to the TFTP server 55 00:04:44,550 --> 00:04:49,020 but in this example, because the devices are on the same subnet. 56 00:04:50,000 --> 00:04:57,260 A default gateway is not required for IP connectivity, but it is required for this command. 57 00:04:58,110 --> 00:05:02,120 So I'm going to specify the default gateway as the TFTP server. 58 00:05:02,780 --> 00:05:05,090 I'm going to configure the TFTP server 59 00:05:07,010 --> 00:05:16,940 as 10.1.1.100, that again is the IP address of the TFTP server, in our network. Important 60 00:05:16,940 --> 00:05:18,830 part is which file name 61 00:05:19,400 --> 00:05:23,150 are we going to retrieve from the TFTP server? 62 00:05:24,560 --> 00:05:28,640 We're told to use this file, so I'm going to copy that. 63 00:05:31,230 --> 00:05:43,710 You need to make sure that that is actually the correct filename on the TFTP server, so C2900 Universal K9 64 00:05:44,400 --> 00:05:50,940 NZed or NZ, if you prefer SPA 151 4 M4 bin. 65 00:05:52,240 --> 00:05:53,070 That looks right. 66 00:05:54,020 --> 00:06:01,520 So I'm going to paste that in and then I can use the set command to verify what I've done, so those 67 00:06:01,610 --> 00:06:03,380 values are now configured 68 00:06:05,190 --> 00:06:15,090 and then we can use the TFTP download command to download the operating system from the TFTP server 69 00:06:15,510 --> 00:06:16,980 to the flash of the router. 70 00:06:17,850 --> 00:06:21,710 Now notice that the interface on the router is currently down. 71 00:06:22,470 --> 00:06:25,230 So, yes, that interface goes green 72 00:06:25,680 --> 00:06:30,590 and because of port fast on the switch, the interface went green as well 73 00:06:30,990 --> 00:06:38,880 and the router was able to connect to the TFTP server and pull down the operating system and put 74 00:06:38,880 --> 00:06:39,750 it into flash. 75 00:06:40,720 --> 00:06:49,450 So DIR flash now shows us that we have that operating system in flash, reset will allow us to 76 00:06:49,450 --> 00:06:52,380 reboot the router and notice the difference. 77 00:06:52,390 --> 00:06:56,790 It's now loading the operating system. 78 00:06:57,670 --> 00:07:04,030 Previously we went straight into ROM monitor mode or ROM MON, but now the router has successfully booted 79 00:07:04,030 --> 00:07:04,300 up. 80 00:07:05,760 --> 00:07:10,410 So Show Flash shows us the file stored in Flash. 81 00:07:11,510 --> 00:07:20,840 Show IP Interface Brief shows us that the router has an IP address configured on Gigabit 00, that configuration 82 00:07:20,840 --> 00:07:28,100 was retrieved from the start up configuration, not from the TFTP download set commands that we 83 00:07:28,100 --> 00:07:28,750 used. 84 00:07:29,390 --> 00:07:35,210 So at this point, notice the router can ping the switch and 85 00:07:36,120 --> 00:07:37,440 the TFTP server. 86 00:07:38,430 --> 00:07:41,730 If I use the command, reload to reload the router. 87 00:07:42,700 --> 00:07:47,220 What it should do is, again, retrieve the operating system prompt flash 88 00:07:49,450 --> 00:07:56,430 load that into memory, load the startup configuration and apply that to running configuration, 89 00:07:56,910 --> 00:07:57,790 which it's done. 90 00:07:58,440 --> 00:08:05,870 Notice the IP address has been applied to gigabit 0/0 and the router has been restored. 91 00:08:06,450 --> 00:08:14,460 So I've now verified that the router boots correctly and I've made sure that it can ping both the TFTP 92 00:08:14,460 --> 00:08:16,610 server and the switch. 93 00:08:17,280 --> 00:08:19,980 So I'm happy with the lab at this point. 94 00:08:20,670 --> 00:08:21,540 How did you do? 95 00:08:22,020 --> 00:08:24,120 Were you able to complete the lab? 96 00:08:24,660 --> 00:08:27,190 Did you get the operating system restored? 97 00:08:27,780 --> 00:08:34,669 It's important that you understand the differences between startup-config, running configuration, ROM 98 00:08:34,679 --> 00:08:41,460 monitor mode or ROM MON and the booting of the operating system from Flash.