Inleiding
In dit document wordt beschreven hoe u de oorspronkelijke fabrieksinstellingen van een Cisco-router herstelt.
Voorwaarden
Vereisten
Om de procedures uit te voeren die in dit document worden beschreven, moet u toegang tot de router inschakelen (ook bekend als geprivilegieerde EXEC).
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.
Conventies
Raadpleeg Cisco Technical Tips Conventions (Conventies voor technische tips van Cisco) voor meer informatie over documentconventies.
Instructies voor het opnieuw instellen van een Cisco-router Terug naar fabrieksinstellingen
Er zijn twee hoofdmethoden om een Cisco-router terug te brengen naar de oorspronkelijke fabrieksinstellingen. Deze twee methoden worden hierna beschreven.
Opmerking: Als u informatie wilt bekijken over de opdrachten in dit artikel, raadpleegt u de Cisco IOS® Configuration Fundamentals Command Reference.
Methode 1
Deze methode gebruikt de opdracht config-register 0x2102 in globale configuratiemodus.
- Geef de opdracht show version op om het configuratieregister op de router te controleren.
De instelling van het configuratieregister wordt weergegeven in de laatste regel van de opdracht versie weergeven en moet worden ingesteld op 0x2102:
Router#show version
Cisco IOS Software, VG3X0 Software (VG3X0-UNIVERSALK9-M), Version 15.4(3)M3, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2015 by Cisco Systems, Inc.
Compiled Fri 05-Jun-15 17:29 by prod_rel_team
ROM: System Bootstrap, Version 15.4(3r)M1a, RELEASE SOFTWARE (fc1)
Router uptime is 1 day, 14 hours, 14 minutes
System returned to ROM by power-on
System image file is "flash0:vg3x0-universalk9-mz.SPA.154-3.M3.bin"
Last reload type: Normal Reload
Last reload reason: power-on
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.
Cisco VG320 (revision 1.0) with 1003520K/45056K bytes of memory.
Processor board ID FGL2023103U
2 Gigabit Ethernet interfaces
1 Virtual Private Network (VPN) Module
DRAM configuration is 32 bits wide with parity enabled.
255K bytes of non-volatile configuration memory.
255488K bytes of ATA System CompactFlash 0 (Read/Write)
License Info:
License UDI:
-------------------------------------------------
Device# PID SN
-------------------------------------------------
*0 VG320 FGL2023103U
Technology Package License Information for Module:'vg3x0'
------------------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------
ipbase ipbasek9 None ipbasek9
security securityk9 RightToUse securityk9
uc None None None
data datak9 RightToUse datak9
NtwkEss None None None
CollabPro None None None
Configuration register is 0x2102
Als dit niet het geval is, voert u de opdracht config-register 0x2102 eenmaal in globale configuratiemodus in.
Router#configure terminal
Router(config)#config-register 0x2102
Router(config)#end
Router#
Als de opdracht versie weergeven opnieuw wordt gegeven, kan dezelfde regel in de opdrachtuitvoer (0x2102 bij volgende herladen) aan de huidige registerinstelling worden toegevoegd.
2. Wis de huidige opstartconfiguratie op de router met de opdracht Schrijven wissen.
3. Laad de router opnieuw met de opdracht Opnieuw laden. Wanneer u wordt gevraagd naar save
de configuratie, NIET:
Router#reload
System configuration has been modified. Save
?
[yes/no]: n
Proceed with reload? [confirm]
Zodra de router opnieuw is geladen, wordt het dialoogvenster Systeemconfiguratie weergegeven:
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
De router wordt nu teruggezet naar de oorspronkelijke fabrieksinstellingen.
Methode 2
Deze methode gebruikt de opdracht config-register 0x2142 in globale configuratiemodus.
-
Voer de opdracht config-register 0x2142 in in de globale configuratiemodus:
Router(config)#config-register 0x2142
Dit zorgt ervoor dat de router de opstartconfiguratie negeert bij de volgende herlading. Als u een weergaveversie opnieuw uitvoert, is deze (0x2142 bij volgende herladen) toegevoegd aan het huidige configuratieregister setting:
Router#show version
Cisco IOS Software, VG3X0 Software (VG3X0-UNIVERSALK9-M), Version 15.4(3)M3, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2015 by Cisco Systems, Inc.
Compiled Fri 05-Jun-15 17:29 by prod_rel_team
ROM: System Bootstrap, Version 15.4(3r)M1a, RELEASE SOFTWARE (fc1)
Router uptime is 1 day, 14 hours, 19 minutes
System returned to ROM by power-on
System image file is "flash0:vg3x0-universalk9-mz.SPA.154-3.M3.bin"
Last reload type: Normal Reload
Last reload reason: power-on
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.
Cisco VG320 (revision 1.0) with 1003520K/45056K bytes of memory.
Processor board ID FGL2023103U
2 Gigabit Ethernet interfaces
1 Virtual Private Network (VPN) Module
DRAM configuration is 32 bits wide with parity enabled.
255K bytes of non-volatile configuration memory.
255488K bytes of ATA System CompactFlash 0 (Read/Write)
License Info:
License UDI:
-------------------------------------------------
Device# PID SN
-------------------------------------------------
*0 VG320 FGL2023103U
Technology Package License Information for Module:'vg3x0'
------------------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------
ipbase ipbasek9 None ipbasek9
security securityk9 RightToUse securityk9
uc None None None
data datak9 RightToUse datak9
NtwkEss None None None
CollabPro None None None
Configuration register is 0x2102 (will be 0x2142 at next reload)
- Laad de router opnieuw met de opdracht Opnieuw laden in de activeringsmodus. Het is niet nodig om gegevens op te slaan wanneer u wordt gevraagd de systeemconfiguratie op te slaan.
Router#reload
System configuration has been modified. Save
? [yes/no]: n
Proceed with reload? [confirm]
Nadat de router opnieuw is geladen, verschijnt het dialoogvenster Systeemconfiguratie.
-
Voer nee in op de vraag: Wilt u het eerste configuratiedialoogvenster openen?
-
Wijzig het configuratieregister setting
terug naar 0x2102 met de opdracht config-register 0x2102, eenmaal ingevoerd in globale configuratiemodus.
-
Geef de opdracht Schrijfgeheugen in de inschakelmodus op om de huidige opstartconfiguratie te overschrijven met de configuratie die momenteel wordt uitgevoerd.
-
Laad de router opnieuw met de opdracht Opnieuw laden in de activeringsmodus.
-
Zodra de router opnieuw is geladen, verschijnt het dialoogvenster Systeemconfiguratie:
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
De router wordt nu teruggezet naar de oorspronkelijke fabrieksinstellingen.
Opmerking: de volgende configuraties worden opgeslagen in ROMMON en de opdrachten Schrijven wissen of Config-register 0x2142 kunnen ze niet terugzetten naar de fabrieksinstellingen.
Verificatie
Deze sectie bevat informatie die u kunt gebruiken om te controleren of uw router is teruggekeerd naar de fabrieksinstellingen:
-
show running-config — Gebruik deze opdracht om te controleren of de vorige configuratie die de router heeft uitgevoerd, is gewist. De output moet resulteren in een skeletconfiguratie. Er mogen bijvoorbeeld geen IP-adressen of beschrijvingen worden geconfigureerd onder een interface op de router, geen hostnaam of instellingen die specifiek zijn voor uw omgeving.
-
versie weergeven — Gebruik deze opdracht om te controleren of het configuratieregister is ingesteld op de standaardwaarde 0x2102.
Gerelateerde informatie