华为QUIDWAY系列交换机的console重置

作者:邓聪聪

华为QUIDWAY系列交换机的console重置

这里以华为QUIDWAY S3700密码清除为例;

各位看官请自行注意,这是两个不同版本设备的重置方法。

一:方法1

首先在电脑上新建一个空的文本文档,修改文件名称为a.cfg 重启交换机按CTRL+B进入到bootrom菜单,进入bootrom菜单时需要输入密码:

Press Ctrl+B to enter BOOTROM menu... 2 #出现此提示时按Ctrl+B password: #输入密码  (默认一般都是huawei)

MAIN MENU

1. Boot with default mode

2. Enter serial submenu

3. Enter startup submenu

4. Display flash files

5. Modify BOOTROM password

6. Reboot Enter your choice(1-6): 2 #选择2进入到 serial submenu 菜单

SERIAL SUBMENU

1. Download file to SDRAM through serial interface and boot

2. Download file to Flash through serial interface

3. Modify serial interface boot parameter

4. Return to main menu Enter your choice(1-4): 2 #选择2把电脑上的a.cfg发送到交换机中Please select file. XMODEM 

用CRT之类的终端工具在发送文件弹出菜单中的文件名输入a.cfg的路径,协议选择Xmodem,点击发送,把a.cfg上传到交换机

 

正在传输 a.cfg... download to SDRAM successfully

please input a new filename: a.cfg #输入文件名称a.cfg

Writing Flashdone

File length: 0 bytes

Took time : 0s

SERIAL SUBMENU

1. Download file to SDRAM through serial interface and boot

2. Download file to Flash through serial interface

3. Modify serial interface boot parameter

4. Return to main menu Enter your choice(1-4): 4 #选择4回到MAIN MENU菜单

MAIN MENU

1. Boot with default mode

2. Enter serial submenu

3. Enter startup submenu

4. Display flash files

5. Modify BOOTROM password 

6. Reboot Enter your choice(1-6): 3 #选择3进入Startup Configuration Submenu菜单

Startup Configuration Submenu

1. Display startup configuration

2. Modify startup configuration

3. Return to main menu Enter your choice(1-3): 1 #选择1查看交换机当前启动使用的配置文件

Current startup configuration

startup type : Flash

startup file : s2300-v100r002c02spc100.cc

configuration file: vrpcfg.cfg #查看到交换机当前启动使用的配置文件为vrpcfg.cfg

license file : 

patch package : 

Startup Configuration Submenu

1. Display startup configuration

2. Modify startup configuration

3. Return to main menu Enter your choice(1-3): 2  #选择2修改交换机的启动配置文件选2后回车几次,直到出现current: vrpcfg.cfg时在new后输入新的启动文件名

current: vrpcfg.cfg new : a.cfg  #输入a.cfg,使交换机下次启动使用此文件

Startup Configuration Submenu

1. Display startup configuration

2. Modify startup configuration

3. Return to main menu Enter your choice(1-3): 3  #选择3返回到MAIN MENU菜单

MAIN MENU

1. Boot with default mode

2. Enter serial submenu

3. Enter startup submenu

4. Display flash files 

5. Modify BOOTROM password

6. Reboot

Enter your choice(1-6): 6 #选择6重启交换机,即可以空配置文件启动,有的交换机重启的菜单号是7。

Reboot... 交换机启动后通过more vrpcfg.cfg查看交换机的配置内容,复制除console和vty外的配置内容,交换机的配置视图下粘贴把配置还原。

<Quidway>more vrpcfg.cfg //复制除console和vty外的配置内容

<Quidway>system-view //进入到配置视图

[Quidway] //粘贴除console和vty外的配置内容

[Quidway]undo startup saved-configuration //删除交换机启动文件

重新配置交换机console和vty的认证方式和用户名密码,然后保存配置即可。

 

二:方法2

交换机软件版本为:

Software Version : VRP (R) Software, Version 5.70 (V100R006C05) 

<Quidway>reboot

Info: The system is now comparing the configuration, please wait. 

System will reboot! Continue?[Y/N]:y 

Jan 1 2008 00:09:13+08:00 Quidway %%01CMD/4/REBOOT(l)[1]:The user chose Y when deciding whether to reboot the system. Info: system is rebooting ,please wait... Jan 1 2008 00:09:14+08:00 Quidway %%01SRM/4/MSTRSCURST(l)[2]:Master SCU is reset. Jan 1 2008 00:09:14+08:00 Quidway %%01SRM/4/ResetReason(l)[3]: Board reset by VRP command or net manager . System reboot at 00:09:15 BIOS LOADING ... Copyright (c) 2008-2011 HUAWEI TECH CO., LTD. (Ver349, Mar 15 2013, 11:00:55)  

Press Ctrl+B to enter BOOTROM menu ... 2 

显示到此处时,按CTRL+B进入BOOTROM

password:  # 输入BOOTROM密码,此处的密码为 Admin@huawei.com 早期版本的为huawei 

BOOTROM MENU 

1. Boot with default mode 

2. Enter serial submenu 

3. Enter startup submenu 

4. Enter ethernet submenu 

5. Enter filesystem submenu 

6. Modify BOOTROM password 

7. Clear password for console user 

8. Reboot 

Enter your choice(1-8): 7  #选择7,清除CONSOLE密码

 Note: Clear password for console user? Yes or No(Y/N):y

Clear password for console user successfully. Choose "1" to boot, then set a new password. Note: Do not choose "8. Reboot" or power off the device, otherwise this operation will not take effect. 

注意看清上面的提示,选择1为缺省启动.

BOOTROM 

MENU 

1. Boot with default mode 

2. Enter serial submenu 

3. Enter startup submenu 

4. Enter ethernet submenu 

5. Enter filesystem submenu 

6. Modify BOOTROM password 

7. Clear password for console user 

8. Reboot 

Enter your choice(1-8): 1 #选择1并回车,交换机重新启动

Decompressing Image file ... done There is no record in region Exception. 

Initialize FSP Task 

PPI DEV SysInit..................OK 

Hard system init.................OK 

Begin to start the system, please waiting ...... 

VOS VFS init.....................OK 

Startup File Check...............OK 

VOS monitor init.................OK 

CFM init advance.................OK 

PAT init ........................OK 

HA S2M init......................OK 

VOS VFS init hind ...............OK 

VRP_Root begin... 

VRP_InitializeTask begin... 

Init the Device Link.............OK 

CFG_PlaneInit begin..............OK 

CFM_Init begin...................OK 

CLI_CmdInit begin................OK 

VRP_RegestAllLINKCmd begin.......OK 

create task begin................ 

task init begin... 

Recover configuration...OK! 

Press ENTER to get started. 

重启完毕,回车后要求配置登陆密码(密码也有复杂性要求的,如不符合会提示)

Please configure the login password (6-16) 

Enter Password: 

Confirm Password: 

<Quidway>

原文地址:https://www.cnblogs.com/dengcongcong/p/8310790.html