Huawei switch console port setting password and status view command
Enterprise
2021-01-19 22:10:12
views: null
1. Set password for switch conlose port
<Huawei>system-view //Try to enter the system
[Huawei]user-interface console 0 //Enter the console port view
[Huawei-ui-console0]authentication-mode password //Use password authentication
Please configure the login password (maximum length 16):mf88855514 //Set the password as: mf88855514
[Huawei-ui-console0]user privilege level 15 //conlose port defaults to level 15 This step can be omitted
2. The switch conlose port uses AAA local authentication
<Huawei>system-view //Try to enter the system
[Huawei]user-interface console 0 //Enter the console port view
[Huawei-ui-console0]authentication-mode password //Use AAA (user name and password) authentication method
[Huawei]aaa //Enter AAA view
[Huawei-aaa]local-user mingfeng password cipher mf88855514 //Set the password of user mingfeng to mf88855514
Info: Add a new user.
[Huawei-aaa]local-user mingfeng service-type telnet //Set the user's service type to Telnet
[Huawei-aaa]local-user mingfeng privilege level 15 //conlose port defaults to level 15 This step can be omitted
3. View user login information in the user interface
<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. View user interface information
<Huawei>dis user-interface console 0
Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int
+ 0 WITH 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. View the attribute information of the local user
<Huawei>dis local-user
----------------------------------------------------------------------------
User-name State AuthMask AdminLevel
----------------------------------------------------------------------------
admin A H -
mingfeng A T 15
----------------------------------------------------------------------------
Total 2 user(s)
6. View online user information
<Huawei>dis access-user
Info: No online user.
Origin blog.51cto.com/2764044/2596542