忆龙2009:恢复H3C系列交换机控制台登陆口令

76 篇文章 0 订阅
22 篇文章 0 订阅
 

如果用户设置的控制台登录口令丢失,可以通过使用BOOT菜单中的“跳过配置文件启动”功能进行恢复。

(1) 使用配置线缆将计算机的串口与H3C系列交换机的Console口进行连接,配置终端仿真程序,重新启动交换机。

(2) 在交换机完成自检后,在下面的界面键入进入BOOT菜单。

            Board checking.......................................LSA1LTSG

            SDRAM fast selftest.......................................OK!

            Flash fast selftest.......................................OK!

            CPLD selftest.............................................OK!

            Switch chip selftest......................................OK!

            Slot 1/1/1 has no module or get slot type error

            Slot 1/1/2 has no module or get slot type error

            Slot 1/1/3 has no module or get slot type error

            Slot 1/1/4 has no module or get slot type error

            PHY selftest..............................................OK!

            Please check port leds..............................finished!

            The switch Mac is: 000f-e200-3900

Press Ctrl-B to enter Boot Menu... 5

password:                           

说明:缺省情况下,进入BOOT菜单的口令为空。如果用户设置了BOOT菜单口令,但该口令已经丢失,请与代理商联系。

(3) 进入BOOT菜单后,键入“7”,选择“跳过配置文件启动”功能。

         BOOT  MENU

1. Download application file to flash

2. Select application file to boot

3. Display all files in flash

4. Delete file from flash

5. Modify bootrom password

6. Enter bootrom upgrade menu

7. Skip current configuration file

8. Set bootrom password recovery

9. Set switch startup mode

0. Reboot

Enter your choice(0-9): 7

The current setting is running configuration file when reboot.

Are you sure to skip current configuration file when reboot? Yes or No(Y/N) y

Setting......done! 

(4) 回到BOOT菜单后,输入“0”重新启动交换机。

         BOOT  MENU

1. Download application file to flash

2. Select application file to boot

3. Display all files in flash

4. Delete file from flash

5. Modify bootrom password

6. Enter bootrom upgrade menu

7. Skip current configuration file

8. Set bootrom password recovery

9. Set switch startup mode

0. Reboot

Enter your choice(0-9): 0

^@System rebooting...           

(5) 再次启动时,交换机会跳过配置文件,即跳过对控制台口令的配置,用户可以直接登录交换机。

**************************************************************************

* Copyright (c) 2004-2007 Hangzhou H3C Tech. Co., Ltd. All rights reserved.*

* Without the owner's prior written consent,                                   *

* no decompiling or reverse-engineering shall be allowed.                    *

**************************************************************************

Configuration file is skipped.

User interface aux0 is available.

Press ENTER to get started.

                      

(6) 用户登录后,可以使用display startup命令查看启动配置文件,并使用more命令查看该配置文件中的控制台口令配置。

display startup

  Current startup saved-configuration file:          NULL

  Next startup saved-configuration file:             flash:/vrpcfg.cfg 

more vrpcfg.cfg

……(略)

#

user-interface aux 0

authentication-mode password

set authentication password simple test

user-interface vty 0 4

authentication-mode none

user privilege level 3

idle-timeout 0 0

#

return

   

说明:如果用户设置的口令为明文,则口令将直接显示在配置文件中;如果用户设置了密文的口令,则将显示为转换后的密文字符,此时需要用户自行将密文转换为明文。

(7) 用户可以使用FTP或TFTP将启动配置文件发送到PC上,使用文本编辑软件(例如Windows系统的“记事本”或“写字板”软件)对配置文件进行编辑,修改认证口令或修改认证方式为None,再将配置文件上传到交换机上覆盖原有文件。再次启动后,交换机将使用更新后的配置文件,用户可以重新进行口令配置,同时其他原有配置不会丢失。

说明:以上操作适用于在Password方式或Scheme方式中的本地方式下恢复登录口令。如果用户使用Scheme方式中的Radius方式进行认证,用户的登录口令将在Radius服务器上进行设置,当登录口令丢失或Radius服务器不可用时,也会造成登录失败;这种情况下,用户可以通过上面描述的方式编辑配置文件,修改认证方式为None,即可跳过认证直接登录,但登录口令需要用户在Radius服务器上进行恢复。

(8) 需要注意的是,在第三步操作中选择的“跳过配置文件”选项会保存在BootRom中,如果不进行修改,则此后每次重启设备都会跳过配置文件。因此,需要用户手工重启设备,并再次进入BOOT菜单选择“跳过配置文件”选项,在提示确认的时候输入“N”,才能恢复启动时加载配置文件。

         BOOT  MENU

1. Download application file to flash

2. Select application file to boot

3. Display all files in flash

4. Delete file from flash

5. Modify bootrom password

6. Enter bootrom upgrade menu

7. Skip current configuration file

8. Set bootrom password recovery

9. Set switch startup mode

0. Reboot

Enter your choice(0-9): 7

The current setting is running configuration file when reboot.

Are you sure to skip current configuration file when reboot? Yes or No(Y/N) n

Setting......done! 

 

 

该方法适用于以下交换机:

  • S2126-EI
  • S3100
  • S3100-52P
  • S3600
  • S3610
  • S5100
  • S5500
  • S5510
  • S5600
  • E126/E126A/E152/E352/E328
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值