H3C S5120清除console口密碼


 

 

 

 

 

 

1、開機啟動交換機顯示Press Ctrl-B to enter Extended Boot menu...0  字樣迅速按Ctrl-B進入如下字符介面提示:

 

Press Ctrl-B to enter Extended Boot menu...0

BootRom password: Not required. Please press Enter to continue.

 

Password recovery capability is enabled.

 

   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. Restore to factory default configuration

6. Enter BootRom upgrade menu

7. Skip current system configuration

8. Reserved

9. Set switch startup mode

0. Reboot

Ctrl+F: Format File System

Ctrl+P: Skip Super Password

Ctrl+R: Download application to SDRAM and Run

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+C: Display Copyright

 

Enter your choice(0-9):  7   (選擇7選項按回車鍵)

 

The current setting will run with current configuration file when reboot.

Are you sure you want to skip current configuration file when reboot? Yes or No

(Y/N):  Y    (選擇 Y確認)

 

Setting...Done!

 

   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. Restore to factory default configuration

6. Enter BootRom upgrade menu

7. Skip current system configuration

8. Reserved

9. Set switch startup mode

0. Reboot

Ctrl+F: Format File System

Ctrl+P: Skip Super Password

Ctrl+R: Download application to SDRAM and Run

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+C: Display Copyright

 

Enter your choice(0-9):  0   (選擇0選項重啟)

 

標注:重啟后進入交換機不需要輸入密碼,但只限這次登錄有效,如果交換機再重啟后又會加載原來配置文件,密碼依然存在。現在有兩種方法清除:

方法一:直接修改console口密碼,然后保存,但保存之后交換機原來的配置信息都清空。

方法二:臨時配置一個網口連接到筆記本,通過tftp軟件把配置文件下載下來,直接修改或刪除配置文件的console口的密碼再通過tftp上傳到交換機后

默認交換機啟動加載修改過的配置文件。這種方法可以保存交換機原來的配置信息,只是清空了console密碼。

 

采用方法二:

電腦網線接到交換機,設置一個固定IP,然后打開tftp軟件進行上傳與下載

 

 

 

<H3C>system-view

[H3C]vlan 10

[H3C-vlan10]port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/10

[H3C-vlan10]quit

[H3C]interface Vlan-interface 10

[H3C-Vlan-interface10]ip address 192.168.10.1 255.255.255.0

[H3C-Vlan-interface10]quit

[H3C]quit

<H3C>dir  /all     (顯示交換機保存的配置文件)

Directory of flash:/

 

   0     -rwh      2936  Apr 26 2000 12:41:21   private-data.txt

   1     -rw-     12203  Apr 26 2000 12:41:21   config.cwmp

   2     -rw-      3247  Apr 26 2000 12:41:23   startup.cfg

   3     -rw-  14869224  May 10 2017 16:41:58   s5120tt.bin

   4     drw-         -  Apr 26 2000 12:00:12   logfile

 

97920 KB total (81868 KB free)

 

<H3C>tftp 192.168.10.11 put startup.cfg  backup01.cfg 

  (下載交換機配置文件startup.cfg並把名字修改成backup01.cfg,通過txt文本打開backup01.cfg配置文件把密碼刪除掉)

 

 

<H3C>tftp  192.168.10.11  get  backup01.cfg   (上傳到交換機)

 

  File will be transferred in binary mode

  Downloading file from remote TFTP server, please wait...\

  TFTP:     2962 bytes received in 0 second(s)

  File downloaded successfully.

 

 

<H3C>dir  /all   (顯示交換機保存的配置文件)

Directory of flash:/

 

   0     -rw-      2962  Apr 26 2000 12:36:53   backup01.cfg

   1     -rwh      2936  Apr 26 2000 12:41:21   private-data.txt

   2     -rw-     12203  Apr 26 2000 12:41:21   config.cwmp

   3     -rw-      3247  Apr 26 2000 12:41:23   startup.cfg

   4     -rw-  14869224  May 10 2017 16:41:58   s5120tt.bin

   5     drw-         -  Apr 26 2000 12:00:12   logfile

 

97920 KB total (81862 KB free)

 

 

<H3C>display  startup  (顯示交換機啟動默認加載配置)

MainBoard:

 Current startup saved-configuration file: NULL

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

 Next backup startup saved-configuration file: NULL

 

<H3C>startup  saved-configuration  backup01.cfg

Please wait ...

Setting the master board ...

... Done!

<H3C>display  startup

MainBoard:

 Current startup saved-configuration file: NULL

 Next main startup saved-configuration file: flash:/backup01.cfg

 Next backup startup saved-configuration file: NULL

 

<H3C>reboot   (重啟交換機)

 Start to check configuration with next startup configuration file, please wait.

........DONE!

 This command will reboot the device. Current configuration will be lost, save c

urrent configuration? [Y/N]:N    (這里要選擇N不保存當前配置)

This command will reboot the device. Continue? [Y/N]:Y

 

 

 

 

 

特殊操作:

還有一種方法也可以破解console口密碼,直接把交換機系統格式化掉,再從H3C官網下載一個同型號的交換機系統文件通過tftp上傳到H3C交換機。

 

Enter your choice(0-9):

 

   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. Restore to factory default configuration

6. Enter BootRom upgrade menu

7. Skip current system configuration

8. Reserved

9. Set switch startup mode

0. Reboot

Ctrl+F: Format File System

Ctrl+P: Skip Super Password

Ctrl+R: Download application to SDRAM and Run

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+C: Display Copyright

 

Enter your choice(0-9):    (按快捷鍵Ctrl+F 格式化交換機系統)

 

 

 

1. Download application file to flash

2. Select application file to boot

3. Display all files in flash

4. Delete file from flash

5. Restore to factory default configuration

6. Enter BootRom upgrade menu

7. Skip current system configuration

8. Reserved

9. Set switch startup mode

0. Reboot

Ctrl+F: Format File System

Ctrl+P: Skip Super Password

Ctrl+R: Download application to SDRAM and Run

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+C: Display Copyright

 

Enter your choice(0-9):  1  (選擇 1 選項上傳交換機系統)

 

 

1. Download application file to flash

2. Select application file to boot

3. Display all files in flash

4. Delete file from flash

5. Restore to factory default configuration

6. Enter BootRom upgrade menu

7. Skip current system configuration

8. Reserved

9. Set switch startup mode

0. Reboot

Ctrl+F: Format File System

Ctrl+P: Skip Super Password

Ctrl+R: Download application to SDRAM and Run

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+C: Display Copyright

 

Enter your choice(0-9):  2  (選擇2 選項選擇交換機系統啟動文件)

 


免責聲明!

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



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