In this configuration example, the physical attributes, terminal attributes, user level, authentication mode, and password are configured for the console user interface. After the configuration is complete, you can log in to the device through the console port in password authentication mode.
To initialize the configurations of a new device or locally maintain the device, log in to the device through the console user interface. You can configure attributes for the console user interface based on use and security requirements.
The configuration roadmap is as follows:
Configure physical attributes for the console user interface.
Configure terminal attributes for the console user interface.
Set a user level.
Set an authentication mode and password.
The user name and password do not have default values. Other parameters have default values, which are recommended.
To complete the configuration, you need the following data:
Transmission rate of a connection: 4800 bit/s
Flow control mode: none
Parity: even
Stopbits: 2
Databits: 6
Timeout period of an idle connection: 30 minutes
Number of rows displayed on a terminal screen: 30
Buffer size for historical commands: 20
User level: 15
Authentication mode: password authentication
<HUAWEI> system-view [~HUAWEI] user-interface console 0 [~HUAWEI-ui-console0] speed 4800 [*HUAWEI-ui-console0] flow-control none [*HUAWEI-ui-console0] parity even [*HUAWEI-ui-console0] stopbits 2 [*HUAWEI-ui-console0] databits 6 [*HUAWEI-ui-console0] commit
[~HUAWEI-ui-console0] shell [*HUAWEI-ui-console0] idle-timeout 30 [*HUAWEI-ui-console0] screen-length 30 [*HUAWEI-ui-console0] history-command max-size 20 [*HUAWEI-ui-console0] commit
[~HUAWEI-ui-console0] user privilege level 15 [*HUAWEI-ui-console0] commit
[~HUAWEI-ui-console0] authentication-mode password [~HUAWEI-ui-console0] set authentication-mode password Please configure the login password (8-16) Enter Password: Confirm Password:
The password must meet the following requirements:
The password is entered in man-machine interaction mode. The system does not display the entered password.
A password is a string of 8 to 16 case-sensitive characters and must contain at least two types of the following characters: uppercase letters, lowercase letters, digits, and special characters.
For example, the password "Aa123"45"" is valid, but the password "Aa 123"45"" is invalid.
The configured password is displayed in ciphertext in the configuration file.
[*HUAWEI-ui-console0] commit [~HUAWEI-ui-console0] quit
After the console user interface has been configured, you can log in to the device through the console port in password authentication mode. For information about how to log in to the system through the console port, see Configuring Login Through a Console Port.
After completing the configurations, run the display user-interface command to view the configuration of Console 0.
<HUAWEI> display user-interface 0
Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int
+0 CON 0 9600 - 3 - P -
+ : Current user-interface is active.
F : Current user-interface is active and work in async mode.
Idx : Absolute index of user-interface.
Type : Type and relative index of user-interface.
Privi : The privilege of user-interface.
ActualPrivi : The actual privilege of user-interface.
Auth : The authentication mode of user-interface.
A : Authenticate use AAA.
N : Current user-interface need not authentication.
P : Authenticate use current UI's password.
Int : The physical location of UIs.
#
sysname HUAWEI
#
user-interface con 0
authentication-mode password
user privilege level 15
set authentication password cipher @%@%(t7h+Qu=a#pz`3Kylk1/,JXR%iy(DA!x8&+!|#b&.dEW65~.lEqGm~Np$O#2M]xJM@%@%
history-command max-size 20
idle-timeout 30 0
databits 6
parity even
stopbits 2
speed 4800
screen-length 30
#
return