华为交换机console口设置密码及状态查看命令

1.交换机conlose口设置密码

<Huawei>system-view //进入系统试图

[Huawei]user-interface console 0 //进入console 口视图

[Huawei-ui-console0]authentication-mode password //使用密码认证方式

Please configure the login password (maximum length 16):mf88855514 //设置密码为:mf88855514

[Huawei-ui-console0]user privilege level 15 //conlose 口默认为level 15 此步可以省略

2.交换机conlose口使用AAA本地认证方式

<Huawei>system-view //进入系统试图

[Huawei]user-interface console 0 //进入console 口视图

[Huawei-ui-console0]authentication-mode password //使用AAA(用户名和密码)认证方式

[Huawei]aaa //进入AAA视图

[Huawei-aaa]local-user mingfeng password cipher mf88855514 //设置用户mingfeng的密码为mf88855514

Info: Add a new user.

[Huawei-aaa]local-user mingfeng service-type telnet //设置用户的服务类型为Telnet

[Huawei-aaa]local-user mingfeng privilege level 15 //conlose 口默认为level 15 此步可以省略

3.查看用户界面的用户登录信息

<Huawei>dis users all

User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag

+ 0 CON 0 00:00:00 pass

Username : Unspecified

129 VTY 0

Username : Unspecified

130 VTY 1

Username : Unspecified

131 VTY 2

Username : Unspecified

4.查看用户界面信息

<Huawei>dis user-interface console 0

Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int

+ 0 CON 0 9600 - 15 15 P -

+ : Current UI is active.

F : Current UI is active and work in async mode.

Idx : Absolute index of UIs.

Type : Type and relative index of UIs.

Privi: The privilege of UIs.

ActualPrivi: The actual privilege of user-interface.

Auth : The authentication mode of UIs.

A: Authenticate use AAA.

N: Current UI need not authentication.

P: Authenticate use current UI's password.

Int : The physical location of UIs.

5.查看本地用户的属性信息

<Huawei>dis local-user

----------------------------------------------------------------------------

User-name State AuthMask AdminLevel

----------------------------------------------------------------------------

admin A H -

mingfeng A T 15

----------------------------------------------------------------------------

Total 2 user(s)

6.查看在线连接的用户信息

<Huawei>dis access-user

Info: No online user.

猜你喜欢

转载自blog.51cto.com/2764044/2596542