简介
本文档描述如何将 Cisco 路由器恢复到其原始出厂默认设置。
先决条件
要求
要执行本文档中介绍的步骤,您必须拥有对路由器的启用(也称为特权EXEC)访问。
Router# <<< Privileged EXEC mode
使用的组件
本文档不限于特定的软件和硬件版本。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
规则
有关文件规则的更多信息请参见“ Cisco技术提示规则”。
将 Cisco 路由器重置为出厂默认设置的说明
有两种主要方法可以将 Cisco 路由器恢复到其原始出厂默认设置。下面将介绍这两种方法。
注:要查看有关本文中命令的任何信息,请参阅《Cisco IOS®配置基础命令参考》。
方法 1
该方法在全局配置模式下使用config-register 0x2102命令。
- 发出show version命令检查路由器上的配置寄存器。
配置寄存器设置显示在show version命令输出的最后一行,必须设置为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
如果不是这种情况,请在全局配置模式下输入config-register 0x2102命令一次。
Router#configure terminal
Router(config)#config-register 0x2102
Router(config)#end
Router#
如果再次发出show version命令,则命令输出中的同一行可以将(0x2102 at next reload)附加到当前寄存器设置中。
2.使用write erase命令清除路由器上的当前启动配置。
3.使用reload命令重新加载路由器。当系统提示save
提示配置时,DO NOT
Router#reload
System configuration has been modified. Save
?
[yes/no]: n
Proceed with reload? [confirm]
路由器重新加载后,系统将显示System Configuration对话框。
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
现在,路由器已重置为原始出厂默认设置。
方法 2
该方法在全局配置模式下使用config-register 0x2142命令。
-
在全局配置模式下输入config-register 0x2142命令。
Router(config)#config-register 0x2142
这使路由器在下次重新加载时忽略启动配置。如果再次运行show version,则它将(下次重新加载时为0x2142)附加到当前配置寄存器 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)
- 在启用模式下使用 reload命令重新加载路由器。系统提示时
save
不需要进 save
行配置。
Router#reload
System configuration has been modified. Save
? [yes/no]: n
Proceed with reload? [confirm]
路由器重新加载后,会出现系统配置对话框。
-
对于问题:是否要进入初始配置对话,请输入no?
-
setting
使用config-register 0x2102 命令将配置寄存器更改回0x2102,在全局配置模式下输入一次。
-
在启用模式下发出write memory命令,以使用当前运行的配置覆盖当前启动配置。
-
启动模式下,请使用 reload 命令重新加载路由器。
-
路由器重新加载后,系统将显示系统配置对话框。
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
现在,路由器已重置为原始出厂默认设置。
注意:后续配置存储在ROMMON中,并且write erase and/orconfig-register 0x2142命令无法将其重置为出厂默认 settings
值。
确认
本部分提供您可用于验证您的路由器是否已恢复到出厂默认设置的信息。
注意:内部和漏洞信息只能由注册的思科客户端访问。
相关信息