Parameter | Description | Value |
---|---|---|
ui-type | Specifies the type of a user interface.
|
The value can be console or VTY. |
first-ui-number | Specifies the number of the first user interface. |
|
last-ui-number | Specifies the number of the last user interface. When you select this parameter, you enter multiple user interface views at the same time. This parameter is valid only when ui-type is set to VTY. The last-ui-number value must be larger than the first-ui-number number. If the maximum number of VTY users has been set using the user-interface maximum-vty command in the system view before ui-type is selected, the last-ui-number value is smaller than or equal to the maximum number of VTY user interfaces minus one. |
- |
Usage Scenario
When a network administrator logs in to a device using the console interface, Telnet, or SSH, the network administrator can set parameters, such as an authentication more and user level, on the user interface to allow the device to centrally manage user sessions.
Precautions
Only users at level 15 can use this command.
The user interface varies according to the login mode. The user interface views can be numbered using absolute numbers or relative numbers. Table 1 describes absolute and relative numbers of user interfaces.
User Interface |
Description |
Absolute Number |
Relative Number |
---|---|---|---|
Console user interface |
Manages and controls users who log in to the device using the console interface. |
0 |
0 |
VTY user interface |
Manages and controls users who log in to the device using Telnet or SSH. |
34 to 48 and 50 to 54 |
The first one is VTY 0, the second one is VTY 1, and so forth.
VTY 15 is reserved for the system. VTY 16 to VTY 20 are reserved for the NMS. Only when VTY 0 to VTY 14 are all used, AAA authentication is configured for users, VTY 16 to VTY 20 can be used. |
After you log in to the device, you can run the display user-interface command to view the supported user interfaces and the corresponding relative and absolute numbers.
# Enter the Console 0 user interface.
<HUAWEI> system-view
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0]
# Enter the VTY 1 user interface.
<HUAWEI> system-view
[HUAWEI] user-interface vty 1
[HUAWEI-ui-vty1]
# Enter the VTY 1 to VTY 3 user interfaces.
<HUAWEI> system-view
[HUAWEI] user-interface vty 1 3
[HUAWEI-ui-vty1-3]