【思科路由器密码恢复方法 思科路由恢复出厂设置】拓扑图:
文章插图
Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R1R1(config)#interface g 0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#no shutdownR1(config-if)#enable secret asdf%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to upR1(config)#exitR1#%SYS-5-CONFIG_I: Configured from console by consoleR1#wrBuilding configuration…[OK]R1#
- 2 重启路由器reload
- 3 在加载系统过程中,使用 Ctrl+Break 键或者 Ctrl+C 键,修改 confreg 寄存器的值,使路由器绕过配置文件进入系统
rommon 1 > helpboot boot up an external processconfreg configuration register utilitydir list files in file systemhelp monitor builtin command helpreset system resetset display the monitor variablestftpdnld tftp image downloadunset unset a monitor variablerommon 2 > confreg 0x2142rommon 3 > reset
- 4 此时已可以不输入密码即可进入系统,这时我们重新配置密码 。配置密码完成后,修改 confreg 寄存器的值,引导系统正常启动 。
Router>enRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R1R1(config)#enable secR1(config)#enable secret 123abcR1(config)#config-register 0x2102R1(config)#endR1#%SYS-5-CONFIG_I: Configured from console by consoleR1#wrBuilding configuration…[OK]