H3C S5120清除console口密码

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 S5120清除console口密码

<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 S5120清除console口密码

<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 选项选择交换机系统启动文件)

上一篇:峰Spring4学习(6)spring AOP的应用例子


下一篇:03-Git常用命令演示、冲突演示