Cisco 交换机密码重置步骤
1.PC机有break键的方法1.1中断设备启动 ctrl+break键步骤:关闭设备,重启:Self decompressing the image :启动设备时按ctrl+Break键##########################monitor: command "boot" aborted due to user interrupt1.2更改配置寄存器的值为0x2142 (两个寄存器值:0x2102 (正常),0x2142(不读取保存的配置))步骤:rommon 1 > confreg 0x2142 配置配置寄存器的值为0x21421.3重启设备步骤: rommon 2 > reset 重启设备
1.4 查看保存的配置文件中enable密码步骤:Continue with configuration dialog? : n 不再加载startup-configRouter#show startup-config 查看以前的密码Router#copy startup-config running-config 将以前的配置加载到内存1.5重设enable密码步骤:Router#config t进入全局配置模式Router(config)#enable password cisco 将密码重置1.6保存配置步骤:Router#copy running-config startup-config将更改完密码的配置保存Destination filename ?Building configuration...1.7更改配置寄存器的值为0x2102步骤:Router#Router#show version查看配置寄存器的值Configuration register is 0x2142Router#conf tEnter configuration commands, one per line.End with CNTL/Z.Router(config)#conft Router(config)#config-register 0x2102 重新配置寄存器值
附:寄存器值意义 0x2102: 运行过程中中断键被屏蔽,设备会查看NVRAM中配置的内容以确定启动次序,如果启动失败会采用缺省的ROM软件进行启动。 0x2142:恢复密码时候使用。忽略NVRAM配置信息而进入初始配置对话模式中去。
2.PC机没有break键的方法2.1 中断设备启动Ctrl+C (5秒)步骤:Self decompressing the image :启动设备时按ctrl+C键##########################monitor: command "boot" aborted due to user interruptrommon 1 > 【interrupt】2.2 进去ROMmon 模式开始使用命令配置如下步骤:rommon 1 > confreg 下面选择Y或者N 单词不好 我就按选择的顺序告诉Y 或者N了 见谅下
顺序如下:1.Y 2.N 3.N 4.N 5.N 6.N 7.Y 8.N 9.N 10.N
2.3更改配置寄存器的值为0x2142步骤:rommon1 > confreg 0x2142
2.4重启设备步骤:rommon1 > reset
2.5查看更改的寄存器的值对不对步骤:rommon1 > show version
里面有一句话;Configuration register is 0x2142 如果有值就对了
2.6 查看原来的配置并且保存步骤:Router #show startup-config 查看以前的配置Router#config t进入全局配置模式Router(config)#show configure memory 保存以前的配置2.7重设enable密码步骤:Router(config)#no enable password删除原有密码Router(config)#enable password cisco 配置新密码2.8更改配置寄存器的值为0x2102并且保存步骤:Router(config)#config-register 0x2102
Router(config)#exit
Router#write 保存
页:
[1]