華爲QUIDWAY系列交換機的console重置

做者:鄧聰聰工具

華爲QUIDWAY系列交換機的console重置ui

這裏以華爲QUIDWAY S3700密碼清除爲例;this

各位看官請自行注意,這是兩個不一樣版本設備的重置方法。spa

一:方法1ci

首先在電腦上新建一個空的文本文檔,修改文件名稱爲a.cfg 重啓交換機按CTRL+B進入到bootrom菜單,進入bootrom菜單時須要輸入密碼:文檔

Press Ctrl+B to enter BOOTROM menu... 2 #出現此提示時按Ctrl+B password: #輸入密碼  (默認通常都是huawei)rpc

MAIN MENUget

1. Boot with default modeinput

2. Enter serial submenuflash

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>

相關文章
相關標籤/搜索