210 likes | 601 Views
Configuration register. Configuration register. Is located in NVRAM Is inspected during bootstrap process Controls configuration of the router Is a 16-bit register Setting can be inspected using the show version command. Configuration register layout. 0x2102.
E N D
Configuration register • Is located in NVRAM • Is inspected during bootstrap process • Controls configuration of the router • Is a 16-bit register • Setting can be inspected using the show version command
Configuration register layout 0x2102 • The prefix 0x has no value other than indicating that “the following values are in hex” • The 16-bits are represented as four hex numbers each four bits long
Configuration register composition 0x2102 Hex Binary 2 1 0 2 0010 0001 0000 0010 boot field
Standard configuration register settings 0x2102 Binary 0010 0001 0000 0010 Rom boot enable Console speed 9600 baud Break enabled Ignore configuration disabled Boot from Flash memory
Running Startup IOS POST configuration configuration Configuration reads reads BOOTSTRAP register loads IOS loads running configuration Router start-up sequence NVRAM RAM ROM
Password recovery on 2500 series routers • Restart the router • (type reload or power cycle the router) • Hit Cntl + Break keys within 60 seconds • Note: This will only work in some terminal emulations (e.g. QVT term) • Set the configuration register to 0x2142 • on 2500 routers issue o/r 0x2142 • This will set the configuration register bit 6 and ignore the startup-configuration
Password recovery on 2500 series routers - II • Type i to reload the router • The router will boot and ignore the startup-config • Enter enable mode • Change the enable secret password in the running-config • Change the configuration register to 0x2102 • Copy the running-config into the startup-config • This reverses the earlier setting and the router will use the new enable password in future logins
Password recovery on 2600 series routers • Restart the router • (type reload or power cycle the router) • Hit Cntl + Break keys within 60 seconds • Note: This will only work in some terminal emulations (e.g. QVT term) • The prompt will show ROM monitor mode • Issue the command confreg to change the configuration register settings • Menu-driven process in which [y/n] answers are used to specify “ignore startup-config”
Password recovery on 2600 series routers - II • Type reset to reload the router • The router will boot and ignore the startup-config • Enter enable mode • Change the enable secret password in the running-config • Change the configuration register to 0x2102 • Copy the running-config into the startup-config • This reverses the earlier setting and the router will use the new enable password in future logins