華為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>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM