When a user logs in to a switch through CLI, the system assigns a user interface to manage and monitor the session between the switch and user. Each user interface has a user interface view, where you can set parameters, such as the authentication mode and user level. Users logging in through the user interface are restricted by these parameters. Through the parameter configuration, uniform management of various user sessions can be implemented.
User interfaces are used to manage and monitor users who have logged in to the switch using a specific method. Although a user interface can only be used by one user at a time, the user interface is not specific to the user.
When a user logs in, the system allocates the idle user interface with the smallest number to the user based on the user's login mode. The login process is restricted by the configuration in the user interface view. For example, when user A logs in through the console port, the login process depends on the configuration in the console user interface view; however, when user A logs in through VTY 1, the login process depends on the configuration in the VTY 1 user interface view. If a user logs in to a switch using different methods, the user will be allocated different user interfaces. If a user logs in to a switch at different time, the user may be allocated different user interfaces.
If there are two consecutive occurrences in which the switch does not respond to commands on a VTY user interface for a prolonged period of time, the VTY user interface is locked. In this case, users can log in through another VTY user interface. The locked VTY user interface will become unlocked after the switch is restarted.
User interfaces are numbered in either of the following modes:
Relative numbering
The numbering format is: user interface type + number.
This mode uniquely specifies a user interface or a group of user interfaces of the same type. Relative numbering adheres to the following rules:
Console user interface numbering: CON 0. When a user logs in to a stack system through the standby switch console port, LTT 0 is displayed on the user interface.
VTY user interface numbering: The first VTY user interface is VTY 0, the second VTY user interface is VTY 1, and so on.
Absolute numbering
This mode uniquely specifies a user interface or a group of user interfaces. You can run the display user-interface command to view user interfaces and their absolute numbers supported by a switch.
Each switch supports only one console user interface and 20 VTY user interfaces. You can run the user-interface maximum-vty command in the system view to set the maximum number of VTY user interfaces. The default value is 5. By default, user interfaces numbered VTY 16 to VTY 20 are reserved by the system and are not affected by the user-interface maximum-vty command.
Table 1 lists the default absolute numbers of the console and VTY user interfaces.
User Interface |
Description |
Absolute Number |
Relative Number |
---|---|---|---|
Console user interface |
Manages and controls users who log in to a switch through the console port or mini USB port. |
0 |
0 |
VTY user interface |
Manages and controls users who log in to a switch using Telnet or STelnet. |
34 to 48, 50 to 54. Number 49 is reserved. Numbers 50 to 54 are reserved for the network management system. |
The first VTY user interface is VTY 0, the second VTY user interface is VTY 1, and so on. By default, VTYs 0 to 4 are available.
VTY 15 is reserved. VTYs 16 to 20 are reserved for the network management system. VTYs 16 to 20 can be used only when VTYs 0 to 14 are occupied and AAA authentication is configured. |
For details about authentication modes and user levels for user interfaces, see Overview of Authentication Modes and User Levels.