This section describes how to manage a CLI administrator interface, how to set console attributes, how to configure administrator interfaces to exchange messages, and how to log out online administrators.
user-interface maximum-vty number
If the maximum number of VTY interfaces to be configured is greater than the current maximum number, the default level of the new VTY interface is 0 and the password authentication mode is used, you must set the level of the new VTY interface, set the password authentication password, or re-specify the authentication mode.
By default, the maximum number of VTY administrator interfaces is five.
user-interface [ ui-type ] first-ui-number [ last-ui-number ]
By default, the terminal service is enabled on all CLI administrator interfaces.
Operation |
Command |
|---|---|
Set the timeout period after which a connection between a FW and an administrator PC is disconnected. The default timeout period is 10 minutes. |
idle-timeout minutes [ seconds ] |
Set the maximum number of lines on each screen. By default each screen displays a maximum of 24 lines. |
screen-length screen-length |
Set the size of the historical command buffer. By default, the buffer caches a maximum of 10 historical commands. |
history-command max-size size-value |
Specify a command that a FW automatically executes after an administrator logs in to the FW. The console interface does not support this command. |
auto-execute command command |
Set the CLI administrator interface priority. |
user privilege level level |
Set the protocols supported by the CLI administrator interface. |
protocol inbound { all | ssh | telnet } |
Bind a CLI administrator interface to an access control list (ACL). You can specify either of the following parameters:
|
acl acl-number { inbound | outbound } |
If password, or AAA authentication is specified and no level is specified for an administrator account for AAA authentication, the highest level of commands that an administrator can access is determined by the CLI administrator interface level.
If AAA authentication is enabled and a level is specified for an administrator account, the highest level of commands that an administrator can access is determined by the administrator account level.
After an authentication mode is specified, the default authentication mode does not take effect. Keep the new account and password (if configured) secure.
Configure an authentication mode.
Configure AAA authentication.
Specify the AAA authentication mode.
Configure password authentication.
Specify the password authentication mode.
Specify the password.
set authentication password [ cipher password ]
The interactive mode is recommended for creating administrator passwords because the passwords configured by the cipher password command are not safe.
An administrator can log in to the console interface through a console port on a FW. The FW must have the same console port settings as an administrator host to log in to the FW.
user-interface console interface-number
Operation |
Command |
|---|---|
Set the transmission rate. The default rate is 9600 bit/s. |
speed speed-value |
Specify a flow control mode. The default mode is none. |
flow-control { hardware | none | software } |
Specify a parity mode. The default mode is none. |
parity { even | mark | none | odd | space } |
Set stop bits. The default stop bit is 1. |
stopbits { 1.5 | 1 | 2 } |
Set data bits. The default data bits are 8. |
databits { 5 | 6 | 7 | 8 } |
Administrator interfaces can exchange messages.
send { all | ui-type ui-number | ui-number }
You can log out an online administrator that has logged in to another administrator interface.
free user-interface { ui-number | ui-type ui-number }
When multiple users log in to the FW to configure the device, configuration conflict may occur. To prevent these conflicts from affecting services, you can enable the configuration locking function. This allows only one user to configure the device at a time.
Before configuring configuration locking, you can run the display configuration-occupied user command to check whether the configuration set is locked by another user. If no user has locked the configuration set, you can exclusively lock the configuration.
configuration exclusive
After enabling the configuration locking function, you have the exclusive authority to perform configurations on the FW.
You can run this command in any view.
system-view
configuration-occupied timeout timeout-value
After the timeout period expires, the configuration is automatically unlocked, and other users can configure the device.
By default, the timeout period is 30s.