Understand Configuration Register Usage On All Routers - Cisco
Có thể bạn quan tâm
Introduction
This document describes how to update the configuration register (config-register) to change router behavior.
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
This document is not restricted to specific software and hardware versions.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.
Conventions
Refer to Cisco Technical Tips Conventions for more information on document conventions.
Purpose of the Configuration Register
The configuration register can be used to change router behavior in several ways, such as:
-
How the router boots (into ROMmon, NetBoot)
-
Boot Options (ignore configuration, disable boot messages)
The configuration register can be set from configuration mode with the config-register command. From ROMmon, execute the confreg command. Issue the show version command to view the current setup of the configuration register:
Router#show versionCisco IOS XE Software, Version 16.10.01aCisco IOS Software [Gibraltar], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.10.1a, RELEASE SOFTWARE (fc2)Technical Support: http://www.cisco.com/techsupportCopyright (c) 1986-2018 by Cisco Systems, Inc.Compiled Thu 29-Nov-18 03:47 by mcpreCisco IOS-XE software, Copyright (c) 2005-2018 by cisco Systems, Inc.All rights reserved. Certain components of Cisco IOS-XE software arelicensed under the GNU General Public License ("GPL") Version 2.0. Thesoftware code licensed under GPL Version 2.0 is free software that comeswith ABSOLUTELY NO WARRANTY. You can redistribute and/or modify suchGPL code under the terms of GPL Version 2.0. For more details, see thedocumentation or "License Notice" file accompanying the Cisco IOS-XE software,or the applicable URL provided on the flyer accompanying the Cisco IOS-XEsoftware.ROM: IOS-XE ROMMONRouter uptime is 2 minutesUptime for this control processor is 5 minutesSystem returned to ROM by Reload CommandSystem image file is "bootflash:asr1002x-universalk9.16.10.01a.SPA.bin"Last reload reason: Reload CommandThis product contains cryptographic features and is subject to UnitedStates and local country laws governing import, export, transfer anduse. Delivery of Cisco cryptographic products does not implythird-party authority to import, export, distribute or use encryption.Importers, exporters, distributors and users are responsible forcompliance with U.S. and local country laws. By using this product youagree to comply with applicable laws and regulations. If you are unableto comply with U.S. and local laws, return this product immediately.A summary of U.S. laws governing Cisco cryptographic products may be found at:http://www.cisco.com/wwl/export/crypto/tool/stqrg.htmlIf you require further assistance please contact us by sending email toexport@cisco.com.License Type: Smart License is permanentLicense Suite: AdvUCSuiteK9 Next reload License Suite: AdvUCSuiteK9 The current throughput level is 10000000 kbps Smart Licensing Status: UNREGISTERED/EVAL MODEcisco ASR1002-X (2RU-X) processor (revision 2KP) with 1189381K/6147K bytes of memory.Processor board ID FOX1719GE2814 Gigabit Ethernet interfaces1 Ten Gigabit Ethernet interface32768K bytes of non-volatile configuration memory.4194304K bytes of physical memory.6684671K bytes of eUSB flash at bootflash:.0K bytes of WebUI ODM Files at webui:.Configuration register is 0x2102The factory-default setup for the configuration register is 0x2102. This indicates that the router must attempt to load a Cisco IOS® software image from Flash memory, and load the startup configuration.
Note: The command config-register cannot change the console baud rate. In legacy Cisco IOS, the config-register command was indeed used to change console baud rate, however, for Cisco IOS XE, you need to configure the line console speed to change the baud rate.
Configuration Register Values and Their Significance
configreg
If you know the value of your configuration register, you can determine its significance. For information on the configuration register, potential issues, and fixes, collect the output of the show version command, or the show tech-support command, and input into the Cisco CLI Analyzer tool.
This table contains some common parameters which are valid on most platforms.
Platform Common Parameters
Configuration Register Set At | Router Behavior |
0x102 |
|
0x1202 |
|
0x2101 |
|
0x2102 |
|
0x2120 |
|
0x2122 |
|
0x2124 |
|
0x2142 |
|
0x2902 |
|
0x2922 |
|
0x3122 |
|
0x3902 |
|
0x3922 |
|
If the value you have for the configuration register is not in the table, then determine which bits are set in order to compute the value:
Bit Order Values
Bit Number | Hex | Significance |
00-03 | 0x0000-0x000F | Boots Field Parameters:
|
06 | 0x0040 |
|
07 | 0x0080 |
|
08 | 0x0100 |
|
09 | 0x0200 |
|
10 | 0x0400 |
|
5,11,12 | 0x0020, 0x0800, 0x1000 |
|
13 | 0x2000 |
|
14 | 0x4000 |
|
15 | 0x8000 |
|
The correct way to configure the console baud rate setting is by entering the line console configuration mode and modifying the speed, as shown in the next examples:
In non-Controller mode Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#line console 0 Router(config-line)#speed 19200 Router(config-line)#end In Controller (SDWAN) mode Router#config-transaction Router(config)#line con 0 Router(config-line)#speed 19200After the reload of the router, in both of the previous scenarios, the config-register is changed to 0x2122.
Troubleshoot Configuration Register Issues
An inappropriately set configuration register can cause many problems, such as:
-
The configuration file is ignored.
-
There is no output or garbage output from the console.
-
Boot into ROMmon.
Change the configuration register to an appropriate parameter, such as the factory default 0x2102, in order to solve these problems.
Troubleshoot the Unknown Configuration Register Value
If the configuration register value is not known, try to establish a Telnet or console session with the router. You can then check the show version output to determine the value of the configuration register:
Router#show versionCisco IOS XE Software, Version 16.10.01aCisco IOS Software [Gibraltar], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.10.1a, RELEASE SOFTWARE (fc2)Technical Support: http://www.cisco.com/techsupportCopyright (c) 1986-2018 by Cisco Systems, Inc.Compiled Thu 29-Nov-18 03:47 by mcpreCisco IOS-XE software, Copyright (c) 2005-2018 by cisco Systems, Inc.All rights reserved. Certain components of Cisco IOS-XE software arelicensed under the GNU General Public License ("GPL") Version 2.0. Thesoftware code licensed under GPL Version 2.0 is free software that comeswith ABSOLUTELY NO WARRANTY. You can redistribute and/or modify suchGPL code under the terms of GPL Version 2.0. For more details, see thedocumentation or "License Notice" file accompanying the Cisco IOS-XE software,or the applicable URL provided on the flyer accompanying the Cisco IOS-XEsoftware.ROM: IOS-XE ROMMONRouter uptime is 1 minuteUptime for this control processor is 4 minutesSystem returned to ROM by Reload CommandSystem image file is "bootflash:asr1002x-universalk9.16.10.01a.SPA.bin"Last reload reason: Reload CommandThis product contains cryptographic features and is subject to UnitedStates and local country laws governing import, export, transfer anduse. Delivery of Cisco cryptographic products does not implythird-party authority to import, export, distribute or use encryption.Importers, exporters, distributors and users are responsible forcompliance with U.S. and local country laws. By using this product youagree to comply with applicable laws and regulations. If you are unableto comply with U.S. and local laws, return this product immediately.A summary of U.S. laws governing Cisco cryptographic products may be found at:http://www.cisco.com/wwl/export/crypto/tool/stqrg.htmlIf you require further assistance please contact us by sending email toexport@cisco.com.License Type: Smart License is permanentLicense Level: adventerpriseNext reload license Level: adventerpriseThe current throughput level is 10000000 kbps Smart Licensing Status: UNREGISTERED/EVAL MODEcisco ASR1002-X (2RU-X) processor (revision 2KP) with 1189381K/6147K bytes of memory.Processor board ID FOX1719GE2814 Gigabit Ethernet interfaces1 Ten Gigabit Ethernet interface32768K bytes of non-volatile configuration memory.4194304K bytes of physical memory.6684671K bytes of eUSB flash at bootflash:.0K bytes of WebUI ODM Files at webui:.Configuration register is 0x2142If you cannot establish a console session, or if you see only garbage characters, a speed mismatch between the router and the terminal emulation software could be the cause. Try to change the baud rate of your terminal emulation software. Possible rates include 1200, 2400, 4800, 9600, 19200, 38400, 57600, and 115200. Once you establish a session, you can issue the show version command to determine the setup. If the router is in ROMmon mode, you can try to issue the boot command to boot the operating system manually.
rommon 4 > boot bootflash:asr1002x-universalk9.16.10.01a.SPA.binFor information on the significance of your configuration register set, and potential issues and fixes, collect the output of the show version command, or the show tech-support command, and input into the Cisco CLI Analyzer tool.
Troubleshoot the Known Configuration Register Value
If you know the value of your configuration register, review the Configuration Register table to determine the behavior. If you can access the router through Telnet, establish a session with the router. If not, set your terminal emulation program to the baud rate indicated by the configuration register set to establish a console session, where 9600 baud rate is the default.
Set the Configuration Register
Review the the Configuration Register table to determine the desired configuration register set (usually 0x2102).
Set the Configuration Register from Configuration Mode
Issue the config-register command to set the configuration register:
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)#config-register 0x2102Router(config)#endRouter#show versionCisco IOS XE Software, Version 16.10.01aCisco IOS Software [Gibraltar], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.10.1a, RELEASE SOFTWARE (fc2)Technical Support: http://www.cisco.com/techsupportCopyright (c) 1986-2018 by Cisco Systems, Inc.Compiled Thu 29-Nov-18 03:47 by mcpreCisco IOS-XE software, Copyright (c) 2005-2018 by cisco Systems, Inc.All rights reserved. Certain components of Cisco IOS-XE software arelicensed under the GNU General Public License ("GPL") Version 2.0. Thesoftware code licensed under GPL Version 2.0 is free software that comeswith ABSOLUTELY NO WARRANTY. You can redistribute and/or modify suchGPL code under the terms of GPL Version 2.0. For more details, see thedocumentation or "License Notice" file accompanying the Cisco IOS-XE software,or the applicable URL provided on the flyer accompanying the Cisco IOS-XEsoftware.ROM: IOS-XE ROMMONRouter uptime is 6 minutesUptime for this control processor is 9 minutesSystem returned to ROM by Reload CommandSystem image file is "bootflash:asr1002x-universalk9.16.10.01a.SPA.bin"Last reload reason: Reload CommandThis product contains cryptographic features and is subject to UnitedStates and local country laws governing import, export, transfer anduse. Delivery of Cisco cryptographic products does not implythird-party authority to import, export, distribute or use encryption.Importers, exporters, distributors and users are responsible forcompliance with U.S. and local country laws. By using this product youagree to comply with applicable laws and regulations. If you are unableto comply with U.S. and local laws, return this product immediately.A summary of U.S. laws governing Cisco cryptographic products may be found at:http://www.cisco.com/wwl/export/crypto/tool/stqrg.htmlIf you require further assistance please contact us by sending email toexport@cisco.com.License Type: Smart License is permanentLicense Level: adventerpriseNext reload license Level: adventerpriseThe current throughput level is 10000000 kbps Smart Licensing Status: UNREGISTERED/EVAL MODEcisco ASR1002-X (2RU-X) processor (revision 2KP) with 1189381K/6147K bytes of memory.Processor board ID FOX1719GE2814 Gigabit Ethernet interfaces1 Ten Gigabit Ethernet interface32768K bytes of non-volatile configuration memory.4194304K bytes of physical memory.6684671K bytes of eUSB flash at bootflash:.0K bytes of WebUI ODM Files at webui:.Configuration register is 0x2142 (will be 0x2102 at next reload)The new configuration register set becomes active once the router reloads.
Router#reload System configuration has been modified. Save? [yes/no]: n Proceed with reload? [confirm]Set the Configuration Register from ROMmon
Set the configuration register with the confreg command if the router is in ROMmon mode:
rommon 1 > confreg 0x2102You must reset or power-cycle for the new configuration register to take effect.
Related Information
- Why Does My Router Lose Its Configuration During Reboot?
- Troubleshoot Password Recovery in Cisco IOS and Cisco IOS XE Routers
- Technical Support & Documentation - Cisco Systems
Từ khóa » C 0x8000
-
Subtracting 0x8000 From An Int - Stack Overflow
-
Does 0<(unsigned Short)0x8000 Hold? | C Programming
-
You May Receive Error Code 0x80004005 Or Other Error Codes When ...
-
Problem Accessing Memory Above 0x8000
-
Bitwise And - C Board
-
Whether 0x8000 Is Voilating MISRA C-2012 Rule 7.2 ?
-
Thread: What Does #define IP_RF 0x8000 Mean? - CodeGuru Forums
-
How To Fix Error Code 0x80004005 - Lifewire
-
SOLVED: How To Fix Error 0x80004005
-
Error 0x80070002 Occurs While Launching Or Installing A PC Game
-
[PDF] Code From 3c59x.c