华为交换机忘记console的密码,怎么恢复出厂设置

优质老薛主机推荐:15%终身付款折扣:xwseo15 25%首次付款折扣 : xwseo115 点击下图进入购买

1、首先用console线连接交换机和主机,打开终端,然后重启交换机,然后在终端上会显示bai很多东西,当出现下面红框内的话是,按CTRL+B;

2、输入BOOTROM的密码:Admin@huawei.com(A必须是大写)

盒式交换机的某些款型支持使用快捷键“Ctrl+E”进入BootROM主菜单,请根据设备的界面提示操作。

华为交换机忘记console的密码,怎么恢复出厂设置

盒式交换机在V100R006C03之前的版本,BootROM默认密码为huawei;在V100R006C03及其之后的版本,默认密码为Admin@huawei.com。(A必须是大写)

框式交换机在V100R006C03之前的版本,BootROM默认密码为9300;在V100R006C03及其之后的版本,默认密码为Admin@huawei.com。(A必须是大写)

3、出现下图内容后,选择“7. Clear password for console user”,在底部光标出输入“7”;

4、出现下图内容后,选择“1. Boot with default mode”,在底部光标出输入“1”

5、稍等片刻即可完成,此时交换机是没有密码的,接下来通过命令给交换机增加密码,确保交换机的安全性。

具体操作代码小魏整理如下:

<huawei_s5720>Enabling DDR ECC correction

Press Ctrl+T to Start Memory Test: 0
DRAM: 1.9 GB
NAND: (ONFI), 128 KB blocks, 2 KB pages, 16B OOB, 8bit width
NAND: chipsize 512 MB
PCIe port in RC mode
PCIe port 0 is not active
In: serial
Out: serial
Err: serial
Net: registering eth
Detected spi flash with page size 4 KB, total 4 MB

Boot from main : boot num[1]

Starting kernel …

Get log address 0xf1e80050
INIT: version 2.88 booting
Starting udev
Starting Bootlog daemon: bootlogd.
Populating dev cache
INIT: Entering runlevel: 3ge = 5
Starting syslogd/klogd: done

reserved 125, need 128, need to format ubifs
Stopping Bootlog daemon: bootlog
Wind River Linux 6.0.0.34 localhost console

localhost login: root (automatic login)

Jan 8 2019, 09:35:31
BootLoad version : 020b.0a05
Backup U-Boot ……………………………………………………. done
ifconfig: SIOCSIFHWADDR: Device or resource busy

Press Ctrl+B or Ctrl+E to enter BootLoad menu: 2

Password:
The password is wrong
Password:
The password is wrong
Password:
The default password is used now. Change the password.

BootLoad Menu

1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Enter ethernet submenu
5. Enter filesystem submenu
6. Enter password submenu
7. Clear password for console user
8. Reboot
(Press Ctrl+E to enter diag menu)

Enter your choice(1-8): 7

Note: Clear password for console user? Yes or No(Y/N): y
Clear password for console user successfully.
Note: Choose “1. Boot with default mode” to boot, then set a new password

BootLoad Menu

1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Enter ethernet submenu
5. Enter filesystem submenu
6. Enter password submenu
7. Clear password for console user
8. Reboot
(Press Ctrl+E to enter diag menu)

Enter your choice(1-8): 1
Now, the current startup file is flash:/s5720ei-v200r011c10spc600.cc

Info: Check signature, please wait…………….

patch load bin,no need to update.

System total memory is 0x5f400000

Start to initialize the LSW …
Initializing the LSW ……………………………………………… done
Initializing netlink ……………………………………………… done
Initializing fast netlink …………………………………………. done
Backup BootLoad ………………………………………………….. done
Backup Kernel ……………………………………………………. done
Backup RamDisk …………………………………………………… done

Stack status : enable
ECM Stack status : run

Stack status : enable
Stack mode : Card

Initializing FSP task begin …

Initializing DEV module …………………………………………… done

Initializing hardware system ………………………………………. done
Begin to start the system …

Registering IPC and VP callback to platform …………………………. done

Initializing VFS ………………………………. Done
Checking startup system-software …………………………………… done
Reading PAF file …………………………………………………. done
Initializing VOS monitor ……………………….. Done
CFM initialization advance ……………………… done
Initializing PAT ………………………………. Done
Initializing HA ……………………………….. done
VFS registering to HA ………………………….. Done
VRP root begin …
VRP root end
CFG initialization begin ……………………….. done
CFM initialization begin ……………………….. done
CLI initialization begin ……………………….. done
Registering VRP all link command begin …………… Done
Creating task begin …
Creating task end
Task initialization begin …
Task initialization end

ECMM status : run
Cmd registering begin …
Cmd registering end

Task awake begin …
Task awake end

Recover configuration begin …
Recover configuration end
Press ENTER to get started.

Warning: There is a risk on the user-interface which you login through. Please change the configuration of the user-interface as soon as possible.

<HUAWEI>
[HUAWEI]user-
[HUAWEI]user-interface co
[HUAWEI]user-interface console 0  (重置console口密码)
[HUAWEI-ui-console0]au
[HUAWEI-ui-console0]authentication-mode pa
[HUAWEI-ui-console0]authentication-mode password
[HUAWEI-ui-console0]
Dec 8 2020 17:46:05 HUAWEI DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 2, the change loop count is 0, and the maximum number of records is 4095.
[HUAWEI-ui-console0]set au
[HUAWEI-ui-console0]set authentication pa
[HUAWEI-ui-console0]set authentication password c
[HUAWEI-ui-console0]set authentication password cipher wwwhuawei@bg01(设置密码为wwwhuawei@bg01)
[HUAWEI-ui-console0]
Dec 8 2020 17:46:55 HUAWEI DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 3, the change loop count is 0, and the maximum number of records is 4095.
[HUAWEI-ui-console0]

扩展资料:

1、一般情况下由于密码忘记我们会被阻挡在交换机telnet远程管理界面之外。

2、虽然可以尝试console线连接交换机的控制接口,但是很多时候这个密码也被网络管理员进行了设置,不巧的是如果这个密码忘记也会被阻挡在console控制台之外。

3、我们保持终端连接交换机,然后重新启动该设备,在启动阶段看到显示“press ctrl-b to enter boot menu”界面时按Ctrl和B键。这样将进入启动菜单,一般这个密码是不会被设置的,默认是空口令,直接回车即可。如果这个密码也被设置那么我们就只有将设备返厂维修了。

4、当交换机显示出boot menu界面时,我们会看到有9个选项我们要恢复密码的话就选择skip current configuration file(启动加载时跳过当前配置文件)即可。

5、选择skip current configuration file(启动加载时跳过当前配置文件)后我们继续选择reboot来重新启动交换机,不过这次启动和以往不同的是将不加载当前的configuration file配置文件,也就是说里面设置的密码验证都将暂时无效。

6、再次启动交换机自检完毕后就会显示startup configuration is skipped,user interface aux0 is available的信息,这表明当前的配置文件没有加载,用户顺利进入aux0即console控制台管理界面,我们不用输入任何密码就可以近来了。

7、通过user-interface aux 0进入console设置模式,然后通过authentication-mode none将控制台验证密码取消。最后千万不要忘记使用save将修改保存,否则重新启动后又将回到之前的配置文件,同样需要密码验证了。

赞 (22)
分享到:更多 ()