华为交换机重置console账户密码
重启设备
Backup U-Boot ............................................................. donePress Ctrl+B or Ctrl+E to enter BootLoad menu: 1 Password: ##按Ctrl+Bpassword:Admin@The default password is used now. Change the password.BootLoad Menu1. Boot with default mode2. Enter serial submenu3. Enter startup submenu4. Enter ethernet submenu5. Enter filesystem submenu6. Enter password submenu7. Clear password for console user8. Reboot(Press Ctrl+E to enter diag menu)Enter your choice(1-8): 7 ##输入7Note: Clear password for console user? Yes or No(Y/N): y #输入y ###又回到bootload menu,输入1###正常通过console登录,按需修改账户密码
如需恢复默认设置如下:
<Huawei>reset saved-configuration Warning: The action will delete the saved configuration in the device.The configuration will be erased to reconfigure. Continue? [Y/N]:y<Huawei>rebootInfo: The system is now comparing the configuration, please wait.Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file . Continue? [Y/N]:nInfo: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.System will reboot! Continue?[Y/N]:y###默认console账户密码admin/admin@##或者如下恢复出厂设置<Huawei>reset factory-configuration Warning: The command will delete all the configurations and files (except the startup, patch, module, and license files) from the device. Continue? [Y/N]:yWarning: The system will reboot after configurations and files are deleted. Continue? [Y/N]:y