路由器设置console认证:
<Huawei>
<Huawei>sys //进入系统视图
[Huawei]sys HW-R1 //设置路由器名称HW-R1
[HW-R1]user-interface con 0 //设置console认证
[HW-R1-ui-console0]set authentication password cipher zxcvbnm //设置认证密码
[HW-R1-ui-console0]dis th //查看当前配置
[V200R003C00]
#
user-interface con 0
authentication-mode password
set authentication password cipher %$%$!x#7XszupLgv{~PF+'2S,#I~$=oa5BHFA;=SB[~)43:L#IB,%$%$
user-interface vty 0 4
user-interface vty 16 20
#
Return

验证:
Login authentication
Password:
<HW-R1>dis user-interface
Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int

  • 0 CON 0 9600 - 15 15 P -

交换机设置console认证:
[Huawei]sys //进入系统视图
[Huawei]sysname HW-SW1 //设置交换机名称HW-SW1
[HW-SW1]user-interface console 0 //设置console认证
[HW-SW1-ui-console0]set authentication password cipher zxcvbnm //设置认证密码
[HW-SW1-ui-console0]authentication-mode password //设置认证模式为密码认证
[HW-SW1-ui-console0]dis th //查看当前配置
#
user-interface con 0
authentication-mode password
set authentication password cipher hUwS'"lAp*Hj<w)JO!C@PJS#
user-interface vty 0 4
#
Return

验证:
Login authentication
Password:
<HW-SW1>dis user-interface
Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int

  • 0 CON 0 9600 - 3 3 P -