華爲交換機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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章