< Home

user-interface maximum-vty

Function

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.

Format

user-interface maximum-vty number

undo user-interface maximum-vty

Parameters

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.

Views

System view

Default Level

3: Management level

Usage Guidelines

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

  • The default maximum number of VTY interfaces that can be used is 5.
  • The user-interface maximum-vty command sets the maximum number of Telnet and SSH login users.
  • Value 0 means that a FW prevents Telnet or SSH logins.

Example

# Set the maximum number of available VTY interfaces to 7.

<sysname> system-view
[sysname] user-interface maximum-vty 7
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >