2024年4月16日发(作者:)

华为交换机console密码配置

1. 仅password认证模式配置

system-view //进入系统视图

[Huawei]user-interface console 0 //进入用户终端配置界面

[Huawei-ui-console0]authentication-mode password //设置console0的认证模式为

password

[Huawei-ui-console0]set authentication password simple 123456

//设置明文密码123456

[Huawei-ui-console0]quit

[Huawei]quit

save //保存

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y

reboot //重启

2、aaa模式(同时配置用户名密码)

system-view

[Huawei]user-interface console 0 //进入用户接口console 0

[Huawei-ui-console0]authentication-mode aaa //配置认证模式为aaa

[Huawei-ui-console0]quit

[Huawei]aaa //进入aaa协议

[Huawei-aaa]local-user zhangsan password simple 123 //设置本地用户名zhangsan和明文密

码123

[Huawei-aaa]local-user zhangsan privilege level 15 //设置zhangsan的权限级别

[Huawei-aaa]

[Huawei-aaa]local-user zhangsan service-type terminal //设置zhangsan的服务类型

[Huawei-aaa]quit

[Huawei]quit

save

reboot //重启后验证

Username:zhangsan //输入用户名zhangsan

Password: //输入密码123

//成功进入交换机配置界面