The user-interface maximum-vty command sets the maximum number of VTY interfaces that can be used.
The undo user-interface maximum-vty command restores the default maximum number of VTY interfaces that can be used.
| Parameter | Description | Value |
|---|---|---|
| number | Specifies the maximum number of VTY interfaces that can be used. | The value is an integer ranging from 0 to 15. The default value is 5. |
Usage Scenario
Each VTY channel consumes some system resources. If all VTY channels are used, they will consume lots of system resources. To save system resources, run the user-interface maximum-vty command to set the maximum number of VTY users, that is, the maximum number of VTY channels. Then the system assigns VTY channel IDs ranging from 0 to number - 1 to login users.
Configuration Impact
After this command is run, the VTY node indexes of login users must be smaller than number that has been configured. Otherwise, users cannot log in.
Precautions