Il problema accade quando in configurazione di un router Cisco (magari refurbished) al reload del sistema, non parte la configurazione inserita, ma riparte sempre “pulito” ovvero con la configurazione di default.
Questa cosa accade perchè il router non sta leggendo la configurazione dal registro di memoria corretto, ma magari dopo un’operazione di ROMMon è rimasto configurato il registro sbagliato (ovvero quello che bypassa la configurazione di startup presente nella NVRAM.
Come ci si accorge di questo?
Beh per prima cosa, cambiando qualunque cosa, al reload lo troviamo azzerato!
A parte questo ovvio particolare, ci si può accorgere della cosa facendo uno “show version” dal router Cisco, dove si vedrà una cosa del genere:
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 IOS-XE software, or the applicable URL provided on the flyer accompanying the 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 [email protected]. 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 0x2142
Il registro di configurazione è settato su 0x2142 (oppure in altre versioni è indicato con 0x142) questo significa che sta bypassando la normale procedura di funzionamento come si vede anche dalla tabella sotto indicata (fonte Cisco.com)
Configuration Register Set At | Router Behavior |
0x102 |
|
0x1202 |
|
0x2101 |
|
0x2102 |
|
0x2120 |
|
0x2122 |
|
0x2124 |
|
0x2142 |
|
0x2902 |
|
0x2922 |
|
0x3122 |
|
0x3902 |
|
0x3922 |
|
Per rimettere le cose apposto si procede quindi a configurare l’apparato per caricare i dati dal registro corretto.
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#config-register 0x2102 Router(config)#end
Ecco che facendo uno “show version” si vedrà quanto segue:
…
Configuration register is 0x2142 (will be 0x2102 at next reload)
Al prossimo riavvio del router il sistema partirà con le impostazioni corrette!
Enjoy!