Inleiding
In dit document wordt beschreven hoe u het configuratieregister (config-register
Configuration Register) kunt bijwerken om het routergedrag te wijzigen.
Voorwaarden
Vereisten
Er zijn geen specifieke vereisten van toepassing op dit document.
Gebruikte componenten
Dit document is niet beperkt tot specifieke software- en hardware-versies.
De informatie in dit document is gebaseerd op de apparaten in een specifieke laboratoriumomgeving. Alle apparaten die in dit document worden beschreven, hadden een opgeschoonde (standaard)configuratie. Als uw netwerk live is, moet u zorgen dat u de potentiële impact van elke opdracht begrijpt.
Doel van het configuratieregister
Het configuratieregister kan worden gebruikt om routergedrag op diverse manieren te wijzigen, zoals:
-
Hoe de router opstart (in ROMmon, NetBoot)
-
Opstartopties (configuratie negeren, opstartberichten uitschakelen)
Opmerking: als de baudsnelheid anders is ingesteld dan de standaardsnelheid, worden oneven tekens weergegeven op de CLI. Controleer de tabel Gemeenschappelijke platformparameters om de baudsnelheden voor verschillende confreg
waarden in te stellen.
Het configuratieregister kan vanuit de configuratiemodus worden ingesteld met de opdracht config-register. Voer vanuit ROMmon het commando confreg uit. Geef de opdracht versie weergeven op om de huidige configuratie van het configuratieregister te bekijken:
Router#show version
Cisco IOS XE Software, Version 16.10.01a
Cisco IOS Software [Gibraltar], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.10.1a, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Thu 29-Nov-18 03:47 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2018 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the Cisco IOS-XE software,
or the applicable URL provided on the flyer accompanying the Cisco IOS-XE
software.
ROM: IOS-XE ROMMON
Router uptime is 2 minutes
Uptime for this control processor is 5 minutes
System returned to ROM by Reload Command
System image file is "bootflash:asr1002x-universalk9.16.10.01a.SPA.bin"
Last reload reason: Reload Command
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to 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.html
If you require further assistance please contact us by sending email to
export@cisco.com.
License Type: Smart License is permanent
License Suite: AdvUCSuiteK9
Next reload License Suite: AdvUCSuiteK9
The current throughput level is 10000000 kbps
Smart Licensing Status: UNREGISTERED/EVAL MODE
cisco ASR1002-X (2RU-X) processor (revision 2KP) with 1189381K/6147K bytes of memory.
Processor board ID FOX1719GE28
14 Gigabit Ethernet interfaces
1 Ten Gigabit Ethernet interface
32768K 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 0x2102
De fabrieksinstelling voor het configuratieregister is 0x2102. Dit geeft aan dat de router moet proberen een Cisco IOS®-software-image uit het Flash-geheugen te laden en de opstartconfiguratie moet laden.
Opmerking: de config-register-opdracht kan de baud-snelheid van de console niet wijzigen. In het oudere Cisco IOS werd de opdracht config-register inderdaad gebruikt om de baud-snelheid van de console te wijzigen, maar voor Cisco IOS XE moet u de snelheid van de lijnconsole configureren om de baud-snelheid te wijzigen.
Configuratie registreert waarden en hun betekenis
configreg
Als u de waarde van uw configuratieregister kent, kunt u de betekenis ervan bepalen. Verzamel voor informatie over het configuratieregister, potentiële problemen en oplossingen de uitvoer van de opdracht versie weergeven, of de opdracht technische ondersteuning tonen en invoer in de Cisco CLI Analyzer-tool.
Opmerking: Alleen geregistreerde Cisco-gebruikers hebben toegang tot interne tools en buginformatie.
Deze tabel bevat een aantal gemeenschappelijke parameters die op de meeste platforms geldig zijn.
Opmerking: Controleer de juiste installatiehandleiding voor de hardware om te controleren of het configuratieregister kan worden gebruikt voordat u het configuratieregister op uw router wijzigt in een van de waarden in deze tabel.
gemeenschappelijke parameters van het platform
Configuratieregister ingesteld op
|
Routergedrag
|
0x102
|
- Negeert break
- 9600 Baud-consolesnelheden
|
0x1202
|
|
0x2101
|
- Start op in bootstrap
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- 9600 Baud-consolesnelheden
|
0x2102
|
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- Snelheid van console: 9600 baud, standaardwaarde voor meeste platforms
|
0x2120
|
- Start op in ROMmon
- Snelheid van console: 19200 baud
|
0x2122
|
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- 19200 Console baud-tarieven
|
0x2124
|
- NetBoot
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- Snelheid van console: 19200 baud
|
0x2142
|
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- 9600 Baud-consolesnelheden
- Negeert de inhoud van niet-vluchtig RAM (NVRAM) (negeert configuratie)
|
0x2902
|
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- 4800 Baud-consolesnelheden
|
0x2922
|
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- 38400 Console baud-tarieven
|
0x3122
|
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- 57600 Baud-consolesnelheden
|
0x3902
|
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- 2400 Baud-consolesnelheden
|
0x3922
|
- Negeert break
- Start op in ROM als eerste opstartoptie mislukt
- 115200 Console baud-tarieven
|
Opmerking: Onthoud ook dat configuratieregister 0x2142 wordt gebruikt voor wachtwoordherstelprocedures omdat het de inhoud van NVRAM kan negeren.
Als de waarde in uw configuratieregister niet in de tabel staat, moet u bepalen welke bits zijn ingesteld om de waarde te berekenen:
bitorderwaarden
Bitnummer
|
Hex
|
betekenis
|
00-03
|
0x0000-0x000F
|
Parameters voor opstarten:
-
0x0000 – blijft bij de prompt System Bootstrap hangen.
-
0x0001 – start de eerste systeem-image op in onboard flashgeheugen (EPROM).
-
0x0002-0x000F- Hiermee geeft u een standaardbestandsnaam voor netboot op. Schakelt opstartsysteemopdrachten in die de standaard netboot-bestandsnaam negeren.
|
06
|
0x0040
|
|
07
|
0x0080
|
|
08
|
0x0100
|
|
09
|
0x0200
|
|
10
|
0x0400
|
|
5,11,12
|
0x0020, 0x0800, 0x1000
|
|
13
|
0x2000
|
|
14
|
0x4000
|
|
15
|
0x8000
|
|
opstartveld
De laagste vier bits van het register beschrijven het opstartveld; de instelling van het opstartveld bepaalt of de router een besturingssysteem laadt en waar de router het systeemimage verkrijgt:
Boot Field (bits 3, 2, 1 en 0)
|
Beschrijving
|
0000
(0x0)
|
Bij de volgende energiecyclus of het opnieuw laden start de router op naar de ROMmon (bootstrap-programma). Als u de ROMmon wilt gebruiken, moet u een terminal of pc gebruiken die is aangesloten op de poort van de routerconsole. Zie de installatiehandleiding voor de router voor informatie over het aansluiten van de router op een pc of terminal.
In de ROMmon-modus moet u het systeemimage of een ander image handmatig opstarten met de opdracht bootROMmon.
|
0001 - 1111
(0x01- 0xF)
|
Bij de volgende energiecyclus of het opnieuw laden verwerkt de router achtereenvolgens elke systeemopdracht voor het opstarten in de globale configuratiemodus die wordt opgeslagen in het configuratiebestand totdat het systeem met succes wordt opgestart. Als er geen opdrachten voor het opstartsysteem in het configuratiebestand zijn opgeslagen of als de uitvoering van deze opdrachten niet succesvol is, probeert de router het eerste imagebestand in het flashgeheugen op te starten.
|
Lijnsnelheid van console
Bits 5, 11 en 12 definiëren de Console Line Speed (baud rate), met de volgende combinaties:
BIT 5
|
BIT 11
|
Bit 12
|
Snelheid consolelijn (baud)
|
1
|
1
|
1
|
115200
|
1
|
0
|
1
|
57600
|
1
|
1
|
0
|
38400
|
1
|
0
|
0
|
19200
|
0
|
0
|
0
|
9600
|
0
|
1
|
0
|
4800
|
0
|
1
|
1
|
2400
|
0
|
0
|
1
|
1200
|
De juiste manier om de instelling voor de baud-snelheid van de console te configureren, is door de configuratiemodus voor de lijnconsole in te voeren en de snelheid aan te passen, zoals in de volgende voorbeelden wordt getoond:
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 19200
Na het opnieuw laden van de router, in beide van de vorige scenario's, wordt het config-register gewijzigd in 0x2122.
Problemen met het configuratieregister troubleshooten
Een onjuist ingestelde configuratieregister kan veel problemen veroorzaken, zoals:
Wijzig het configuratieregister in een geschikte parameter, zoals de fabrieksinstellingen 0x2102, om deze problemen op te lossen.
Problemen met de onbekende waarde van het configuratieregister oplossen
Als de waarde van het configuratieregister niet bekend is, probeer dan een Telnet- of consolesessie tot stand te brengen met de router. Vervolgens kunt u de output van de opdracht show version controleren om de waarde van het configuratieregister te bepalen:
Router#show version
Cisco IOS XE Software, Version 16.10.01a
Cisco IOS Software [Gibraltar], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.10.1a, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Thu 29-Nov-18 03:47 by mcpre
Cisco IOS XE software, Copyright (c) 2005-2018 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the Cisco IOS XE software,
or the applicable URL provided on the flyer accompanying the Cisco IOS XE
software.
ROM: IOS XE ROMMON
Router uptime is 1 minute
Uptime for this control processor is 4 minutes
System returned to ROM by Reload Command
System image file is "bootflash:asr1002x-universalk9.16.10.01a.SPA.bin"
Last reload reason: Reload Command
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to 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.html
If you require further assistance please contact us by sending email to
export@cisco.com.
License Type: Smart License is permanent
License Level: adventerprise
Next reload license Level: adventerprise
The current throughput level is 10000000 kbps
Smart Licensing Status: UNREGISTERED/EVAL MODE
cisco ASR1002-X (2RU-X) processor (revision 2KP) with 1189381K/6147K bytes of memory.
Processor board ID FOX1719GE28
14 Gigabit Ethernet interfaces
1 Ten Gigabit Ethernet interface
32768K 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
Als u geen consolesessie tot stand kunt brengen, of alleen vreemde tekens ziet, komen de snelheid van de router en de terminalemulatiesoftware mogelijk niet overeen. Wijzig in dat geval de baudrate van de terminalemulatiesoftware. Mogelijke tarieven zijn 1200, 2400, 4800, 9600, 19200, 38400, 57600 en 115200. Nadat u een sessie hebt ingesteld, kunt u de opdracht versie weergeven uitgeven om de installatie te bepalen. Als de router in de modus ROMmon staat, kunt u proberen met de opdracht boot het besturingssysteem handmatig op te starten.
rommon 4 > boot bootflash:asr1002x-universalk9.16.10.01a.SPA.bin
Verzamel voor informatie over de betekenis van de registerset van uw configuratie en potentiële problemen en oplossingen de uitvoer van de opdracht versie weergeven of de opdracht technische ondersteuning tonen en invoer in de Cisco CLI Analyzer-tool.
Opmerking: Alleen geregistreerde Cisco-gebruikers hebben toegang tot interne tools en buginformatie.
Problemen met de bekende waarde van het configuratieregister oplossen
Als u de waarde van uw configuratieregister kent, raadpleegt u de tabel Configuratieregister om het gedrag te bepalen. Als u via Telnet toegang heeft tot de router, brengt u een sessie met de router tot stand. Als dat niet het geval is, stelt u het terminalemulatieprogramma in op de baud-snelheid die wordt aangegeven in het configuratieregister dat is ingesteld om een consolesessie te maken, waarbij 9600 baud-snelheid de standaardwaarde is.
Het configuratieregister instellen
Controleer de tabel Configuratieregister om de gewenste set configuratieregisters te bepalen (meestal 0x2102).
Het configuratieregister instellen in de modus Configuration
Voer de opdracht config-register uit om het configuratieregister in te stellen:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#config-register 0x2102
Router(config)#end
Router#show version
Cisco IOS XE Software, Version 16.10.01a
Cisco IOS Software [Gibraltar], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.10.1a, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Thu 29-Nov-18 03:47 by mcpre
Cisco IOS XE software, Copyright (c) 2005-2018 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the Cisco IOS-XE software,
or the applicable URL provided on the flyer accompanying the Cisco IOS-XE
software.
ROM: IOS XE ROMMON
Router uptime is 6 minutes
Uptime for this control processor is 9 minutes
System returned to ROM by Reload Command
System image file is "bootflash:asr1002x-universalk9.16.10.01a.SPA.bin"
Last reload reason: Reload Command
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to 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.html
If you require further assistance please contact us by sending email to
export@cisco.com.
License Type: Smart License is permanent
License Level: adventerprise
Next reload license Level: adventerprise
The current throughput level is 10000000 kbps
Smart Licensing Status: UNREGISTERED/EVAL MODE
cisco ASR1002-X (2RU-X) processor (revision 2KP) with 1189381K/6147K bytes of memory.
Processor board ID FOX1719GE28
14 Gigabit Ethernet interfaces
1 Ten Gigabit Ethernet interface
32768K 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)
De nieuwe registerset voor configuratie wordt actief zodra de router opnieuw wordt geladen.
Router#reload
System configuration has been modified. Save? [yes/no]: n
Proceed with reload? [confirm]
Het configuratieregister instellen in de modus ROMmon
Stel het configuratieregister in met de opdracht confreg als de router in de modus ROMmon staat:
rommon 1 > confreg 0x2102
U moet het systeem resetten of uit- en aanzetten voordat het nieuwe configuratieregister van kracht wordt.
Gerelateerde informatie