1 00:00:00,770 --> 00:00:06,950 The configuration register contains different options, and one of them determines how a router boots. 2 00:00:08,090 --> 00:00:15,740 When we use the show version command and we press spaceball to scroll down, we can see what the configuration 3 00:00:15,740 --> 00:00:23,480 register of the router is configured as at the moment, it's using the default of 0x210 4 00:00:23,480 --> 00:00:23,930 2. 5 00:00:24,680 --> 00:00:30,110 Whenever you see 0x you need to know that the numbers that follow are hexadecimal. 6 00:00:31,120 --> 00:00:41,170 So in other words, we have four hexadecimal values here, so 0x2102 equates in binary 7 00:00:42,640 --> 00:00:50,830 to 0010 0001 followed by 0000 0010. 8 00:00:51,970 --> 00:01:02,680 This last hexadecimal value determines how a router boots, so as an example, on this second router show version 9 00:01:04,120 --> 00:01:06,450 it's also set to the default value. 10 00:01:07,150 --> 00:01:11,080 But what I'll do now is change the configuration register 11 00:01:14,360 --> 00:01:23,030 to a value of 0x2100 and I won't save the config, I'm going to use the command 12 00:01:23,030 --> 00:01:23,570 show version. 13 00:01:25,520 --> 00:01:31,340 So notice at the moment that is the configuration register value, that this is what it's going to be 14 00:01:31,370 --> 00:01:37,820 at next reload. I'm not going to save the config but what I'm going to do is I'm going to power off 15 00:01:37,820 --> 00:01:38,430 that router. 16 00:01:39,000 --> 00:01:44,090 So I'm going to say immediate off in my APC power management system. 17 00:01:47,180 --> 00:01:48,750 So I've powered off router 1, 18 00:01:49,520 --> 00:01:55,910 so now when I press enter, I'm getting no response on the router, what I'll do now is power it on 19 00:01:57,670 --> 00:02:05,830 so you can see the router is booting up, but notice it booted immediately into ROM Monitor mode rom or 20 00:02:05,830 --> 00:02:12,980 read only memory contains ROM monitor mode and the router has now booted into this mode because we set 21 00:02:13,000 --> 00:02:17,920 the configuration register to 0x2100. 22 00:02:18,430 --> 00:02:26,380 The last hexadecimal value is called the boot field and that determines how the router booted it, booted 23 00:02:26,380 --> 00:02:31,690 in this example directly into ROM monitor mode because we configured 24 00:02:33,210 --> 00:02:37,500 the config register as follows, we didn't have to save it, 25 00:02:37,740 --> 00:02:42,930 it's saved immediately and when the routr is booted, it booted straight into a monitor mode. 26 00:02:44,700 --> 00:02:51,690 Now, ROM monitor mode doesn't have the same commands as you get in the Cisco iOS, so notice the output 27 00:02:51,690 --> 00:02:56,070 is very different to what we see in typical Cisco iOS commands. 28 00:02:57,400 --> 00:03:02,140 The conf reg command allows you to specify the configuration register. 29 00:03:03,700 --> 00:03:10,270 So in this example, I'm going to set it back to 2102 and we're told that we need to reset 30 00:03:10,270 --> 00:03:17,270 or power cycle the router to take effect so we can use the reset command or we can simply power cycle 31 00:03:17,290 --> 00:03:17,740 a router. 32 00:03:19,180 --> 00:03:25,570 So in this example, I'll use the reset command and what you'll notice is it doesn't boot directly into 33 00:03:25,570 --> 00:03:30,640 ROM monitor mode it is loading the Cisco operating system. 34 00:03:31,840 --> 00:03:33,670 So ROM MON is initialized 35 00:03:36,230 --> 00:03:42,920 but notice the Cisco iOS image is decompressed and is being loaded by the router. 36 00:03:45,230 --> 00:03:48,140 Because we changed the configuration register 37 00:03:49,090 --> 00:03:52,000 to use normal boot, it's going to boot 38 00:03:53,120 --> 00:04:00,890 the operating system and start up the router as normal, notice here is the Cisco iOS image that the 39 00:04:00,890 --> 00:04:04,070 router is booting and there we go 40 00:04:04,070 --> 00:04:05,330 the router is now booted up. 41 00:04:08,060 --> 00:04:14,630 Interfaces are coming up, OSPF neighbor relationships are being formed in this example, show Flash 42 00:04:14,810 --> 00:04:24,110 confirms the operating system stored in Flash and show version shows us which operating system was booted 43 00:04:24,500 --> 00:04:25,430 from Flash. 44 00:04:27,430 --> 00:04:32,590 Notice the configuration register is back to 0x2102. 45 00:04:34,430 --> 00:04:37,460 The configuration register is a 16-bit number 46 00:04:37,490 --> 00:04:40,910 once again, that resides in the NVRAM of a router 47 00:04:41,450 --> 00:04:43,250 it affects router behavior. 48 00:04:43,910 --> 00:04:49,820 The least significant 4-bits of the configuration register are called the boot field 49 00:04:50,330 --> 00:04:54,110 and this determines how the router locates Cisco iOS software. 50 00:04:54,890 --> 00:05:01,020 The configuration register is 16 bits in size but is displayed once again in hexadecimal. 51 00:05:01,940 --> 00:05:07,370 You'll have access to the configuration register software, which is part of this course 52 00:05:08,930 --> 00:05:15,530 and this allows you to see the various options of the binary bits that make up the configuration register 53 00:05:16,160 --> 00:05:21,400 the default value of the configuration register is once again 0x2102. 54 00:05:22,130 --> 00:05:27,080 We can see that there are 16 bits that make up the configuration register. 55 00:05:27,620 --> 00:05:33,580 The least significant bit is bit-0 and that goes up to bit-15. 56 00:05:34,280 --> 00:05:38,860 So this first number in hexadecimal is the most significant. 57 00:05:39,470 --> 00:05:45,470 These last two contains the least significant 4-bits, which is the boot field. 58 00:05:46,190 --> 00:05:52,310 We can configure the configuration register as follows through the Cisco iOS 59 00:05:54,170 --> 00:06:01,670 but you can change the values. So as an example, if you want to set the speed of the console to 1 60 00:06:01,670 --> 00:06:08,720 15 200 bits per second, rather than the default of 9600 bits per second, you could configure 61 00:06:08,720 --> 00:06:10,760 the configuration registers follows. 62 00:06:12,430 --> 00:06:18,340 Sending it back to default, the speed is now changed back to 9600 bits per second. 63 00:06:19,820 --> 00:06:29,840 If you change it to 2142 that means that bit 6 is set, which means ignore NVRAM. 64 00:06:31,150 --> 00:06:37,900 That means that the router will boot up and not load the startup-config, which is very useful when 65 00:06:37,900 --> 00:06:39,300 doing password recovery. 66 00:06:41,660 --> 00:06:43,260 There are various other options here. 67 00:06:43,640 --> 00:06:46,340 You can also look at the Cisco documentation 68 00:06:49,330 --> 00:06:50,380 which shows you 69 00:06:51,560 --> 00:06:53,990 what the configuration register values mean. 70 00:06:55,530 --> 00:07:04,320 So if you want to see this on a Web page, there's an example of 0x2142 which means ignore nonvolatile 71 00:07:04,320 --> 00:07:04,770 RAM. 72 00:07:05,130 --> 00:07:10,640 So it ignores the configuration and the speed is set to 9600 bits per second. 73 00:07:11,640 --> 00:07:16,950 But otherwise, you can use the software, which you get as part of the course if you want to see what 74 00:07:16,950 --> 00:07:18,120 various options are. 75 00:07:18,690 --> 00:07:27,750 So once again, if we change the speed to 115200, notice these bits are set, bit-12, bit-11, 76 00:07:28,860 --> 00:07:29,700 bit-5 77 00:07:30,600 --> 00:07:31,500 and bit-1. 78 00:07:33,560 --> 00:07:36,560 If we change the speed to 19200, 79 00:07:39,680 --> 00:07:46,880 notice other values are set, bit-12 in this example is not set, but if I check that option, notice 80 00:07:46,880 --> 00:07:53,780 the speed of the console port is changed. For the CCNA course the values that you want to know are 81 00:07:53,780 --> 00:07:56,900 2102, which means normal boot. 82 00:07:58,790 --> 00:08:04,730 If we change it to 2100, that means that the router is going to boot into ROM monitor mode. 83 00:08:06,600 --> 00:08:07,920 2142, 84 00:08:09,470 --> 00:08:11,870 means bypass startup-configuration, 85 00:08:15,080 --> 00:08:23,450 and 2101 means boot into RX boot mode if supported, on older Cisco routers, they had 86 00:08:23,450 --> 00:08:26,180 a mini iOS called RX Boot. 87 00:08:26,750 --> 00:08:28,280 Modern routers don't have that. 88 00:08:28,850 --> 00:08:35,780 A value of 2101 means that the router will boot up using the first operating system in flash.