No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

AR500, AR510, and AR530 V200R007 Commands Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
UI Configuration Commands

UI Configuration Commands

acl (user interface view)

Function

The acl command uses an ACL to restrict login rights of users on a terminal.

The undo acl command cancels the configuration.

By default, login rights are not restricted.

Format

acl [ ipv6 ] acl-number { inbound | outbound }

undo acl [ ipv6 ] { inbound | outbound }

Parameters

Parameter Description Value
ipv6

Indicates an ACL6 number.

-
acl-number

Specifies the number of an ACL.

The value is an integer ranging from 2000 to 3999.
  • 2000-2999: restricts the source address using the basic ACL.
  • 3000-3999: restricts the source and destination addresses using the advanced ACL.
inbound

Restricts users with an address or within an address segment to log in to the device.

-
outbound

Restricts users that have logged in to the device from logging in to other devices.

-

Views

User interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command restricts the login rights of a user interface based on the source IP address, destination IP address, source port, or destination port. You can use this command to permit or deny access to a destination or from a source.

Prerequisites

Before running this command, run the acl (system view) in the system view and run the rule (basic ACL view) or rule (advanced ACL view) command to configure an ACL.

If no rule is configured, login rights on the user interface are not restricted when the acl command is executed.

Precautions

After the configurations of the ACL take effect, all users on the user interface are restricted by the ACL.

You can configure all of the following ACL types: IPv4 inbound, IPv4 outbound, IPv6 inbound, and IPv6 outbound on a user interface. Only one ACL of each type can be configured on a user interface, and only the latest configuration of an ACL takes effect.

Example

# Restrict the Telnet login rights on user interface VTY 0.

<Huawei> system-view
[Huawei] acl 3001
[Huawei-acl-adv-3001] rule deny tcp source any destination-port eq telnet
[Huawei-acl-adv-3001] quit
[Huawei] user-interface vty 0
[Huawei-ui-vty0] acl 3001 outbound

# Remove the restriction on the Telnet login rights on user interface VTY 0.

<Huawei> system-view
[Huawei] user-interface vty 0
[Huawei-ui-vty0] undo acl outbound
Related Topics

authentication-mode (user interface view)

Function

The authentication-mode command configures the authentication mode for accessing the user interface.

The undo authentication-mode command deletes the authentication mode for accessing the user interface.

By default, no authentication mode for accessing the user interface is configured. For the users logging in to the interface, an authentication method must be configured; otherwise, users cannot log in.

Format

authentication-mode { aaa | password }

undo authentication-mode

Parameters

Parameter Description Value
aaa Indicates the AAA authentication mode. -
password Indicates the password authentication mode. -

Views

User interface view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When a user logs in to the device using the console interface for the first time, the system prompts the user to set the login password. After the user logs in to the device, the user can run the authentication-mode command to change the authentication mode.

Before Telnet or SSH users log in to the device using VTY user interface, they must run the authentication-mode command to configure the authentication mode.

Precautions

To ensure that users can log in to the device successfully, configure the authentication mode.

  • After you set the authentication mode for accessing a user interface to password, run the set authentication password command to configure an authentication password. Keep the password safe. You need to enter the password when logging in to the device. The levels of commands accessible to a user depend on the level configured for the user interface to which the user logs in.

  • When the authentication mode is set to aaa, the authentication password is deleted at the same time. Users are required to enter the login user name and password to log in to the device. After login, the level of the commands the user can run depends on the level of the local user specified in AAA configuration.

  • If the current login channel has a password, enter the password when you want to modify or delete the authentication mode of a VTY channel range that contains the current login channel.

Example

# Configure the authentication mode for accessing the user interface.

<Huawei> system-view
[Huawei] user-interface vty 0
[Huawei-ui-vty0] authentication-mode aaa

auto-execute command

Function

The auto-execute command command configures auto-run commands.

The undo auto-execute command command cancels auto-run commands.

By default, the auto-run function is disabled.

Format

auto-execute command command

undo auto-execute command

Parameters

Parameter Description Value
command Specifies an auto-run command. -

Views

User interface view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the auto-execute command command to make the device run a command automatically on the corresponding interface.

You can run the auto-execute command command to enable automatic execution for the Telnet command.

Precautions

  • The auto-execute command command is applicable to the VTY user interface.

  • When you log in to the device, the device automatically runs the commands that are configured by the auto-execute command command. The user's terminal disconnects from the device.

  • Before saving the configuration of the auto-execute command command, ensure that you can log in to the device in other ways so that you can cancel the command configuration.

  • If you use the auto-execute command command, you cannot configure the device in the user interface view. Therefore, use this command with caution.

Example

# Configure the telnet 10.110.100.1 command to automatically run after a user logs in to the device using the VTY0 interface.

<Huawei> system-view
[Huawei] user-interface vty 0
[Huawei-ui-vty0] auto-execute command telnet 10.110.100.1 
Warning: The system will not be configured through ui-vty0.Continue? [Y/N]: y

databits

Function

The databits command sets the number of data bits of the user interface.

The undo databits command restores the default number of data bits.

By default, the number of data bits of the user interface is 8.

Format

databits { 5 | 6 | 7 | 8 }

undo databits

Parameters

Parameter Description Value
5 Indicates that the number of data bits is 5. -
6 Indicates that the number of data bits is 6. -
7 Indicates that the number of data bits is 7. -
8 Indicates that the number of data bits is 8. -

Views

User interface view

Default Level

3: Management level

Usage Guidelines

Use this command only when necessary. If the number of data bits of a device's user interface is changed, ensure that the same number of data bits is set on the HyperTerminal used for login.

The setting is valid only when the serial port is configured to work in asynchronous mode.

NOTE:

The data bit of the console user interface does not support 5 and 6.

Example

# Set the number of data bits to 7.

<Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] databits 7

display mib-index interface

Function

The display mib-index interface command displays the index value of an interface in the MIB.

Format

display mib-index interface [ interface-type [ interface-number ] ]

Parameters

Parameter Description Value
interface-type interface-number
Specifies the interface for which the index value is displayed.
  • interface-type: specifies the interface type, for example, Ethernet.

    If the interface type is not specified, the index values of all interfaces are displayed.

  • interface-number: specifies the number of an interface. It is used with interface-type to specify an interface.

    If the interface number is not specified, the index values of all interfaces of the type are displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display mib-index interface command as an NMS user to view the index values of interfaces.

Example

# Display indexes of all interfaces.

<Huawei> display mib-index interface
IfName                          IfIndex   PortIndex
--------------------------------------------------
Atm0/0/0                        7         --      
Cellular0/0/0                   9         --      
Ethernet0/0/0                   3         --      
Ethernet0/0/1                   4         1       
Ethernet0/0/2                   5         2       
Ethernet0/0/3                   6         3       
NULL0                           2         --      
Tunnel0/0/1                     10        --      
Vlanif1                         8         --      
Table 2-14  Description of the display mib-index interface command output

Item

Description

IfName

Interface name.

IfIndex

Index value of an interface.

PortIndex

Index value of a port.

display user-interface

Function

The display user-interface command displays information about a user interface.

Format

display user-interface [ ui-type ui-number1 | ui-number ] [ summary ]

Parameters

Parameter Description Value
ui-type Displays information about a specified user interface. The value can be Console or VTY.
ui-number1 Displays information about a user interface with a specified relative number. The minimum value is 0. The maximum value is smaller by 1 than the number of user interfaces the system supports.
ui-number Displays information about a user interface with a specified absolute number.

The value is an integer ranging from 0 to 177. The value varies according to the device type.

summary Displays the summary of a user interface. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Using the display user-interface command, you can view detailed configuration information about all user interfaces or a specified user interface.

Example

# Display detailed information about the user interface with the absolute number 0.

<Huawei> display user-interface 0
  Idx  Type     Tx/Rx      Modem Privi ActualPrivi      Auth  Int
  0    CON 0    9600       -     3     -                 P     -
  +    : Current UI is active.
  F    : Current UI is active and work in async mode.
  Idx  : Absolute index of UIs.
  Type : Type and relative index of UIs.
  Privi: The privilege of UIs.
  ActualPrivi: The actual privilege of user-interface.
  Auth : The authentication mode of UIs.
  A    : Authenticate use AAA.
  N    : Current UI need not authentication.
  P    : Authenticate use current UI's password.
  Int  : The physical location of UIs.

# Display detailed information about all user interfaces.

<Huawei> display user-interface
  Idx  Type     Tx/Rx      Modem Privi ActualPrivi       Auth  Int
  0    CON 0    9600          -     3     -              P     -
+ 129  VTY 0                  -     3     3              A     -
+ 130  VTY 1                  -     1     2              A     -
+ 131  VTY 2                  -     3     2              A     -
  132  VTY 3                  -     1     -              P     -
  133  VTY 4                  -     1     -              A     -
...
UI(s) not in async mode -or- with no hardware support:
1-128
  +    : Current UI is active.
  F    : Current UI is active and work in async mode.
  Idx  : Absolute index of UIs.
  Type : Type and relative index of UIs.
  Privi: The privilege of UIs.
  ActualPrivi: The actual privilege of user-interface.
  Auth : The authentication mode of UIs.
  A    : Authenticate use AAA.
  N    : Current UI need not authentication.
  P    : Authenticate use current UI's password.
  Int  : The physical location of UIs.
Table 2-15  Description of the display user-interface command output

Parameter

Description

+

Active user interface.

F

Active user interface in asynchronous mode.

Idx

Absolute number of a user interface.

Type

Type and relative number of a user interface.

Tx/Rx

Data transfer rate of the user interface.

Modem

Type of the modem.

Privi

Authority configured on a user interface.

ActualPrivi

Actual permission of a user interface. In the case of the AAA authentication mode, the level of a local user in AAA configuration is the actual permission.

Auth

Authentication mode on a user interface.

Int

User interface.

A

AAA authentication.

N

No authentication on the current user interface.

P

Password authentication.

Related Topics

display user-interface maximum-vty

Function

The display user-interface maximum-vty command displays the maximum number of VTY users.

Format

display user-interface maximum-vty

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display user-interface maximum-vty command to view the maximum number of users who connect to the device using Telnet or SSH. By default, the total number of Telnet users and SSH users is five maximum.

Example

# Display the maximum number of VTY users.

<Huawei> display user-interface maximum-vty
Maximum of VTY user : 5
Table 2-16  Description of the display user-interface maximum-vty command output

Parameter

Description

Maximum of VTY user

Maximum number of VTY users.

The maximum number of VTY users can be configured using the user-interface maximum-vty command.

display users

Function

The display users command displays login information for each user interface.

Format

display users [ all ]

Parameters

Parameter Description Value
all Displays information about all users who log in to the device through user interfaces, including information about user interfaces that are not used. If the all parameter is not used, the command displays only information about user interfaces that have been connected. -

Views

All views

Default Level

3: Management level

Usage Guidelines

You can run this command to view information about users who are connected to the device. The information includes the user name, IP address, and authentication and authorization information.

Example

# Run the display users command to view information about users who log in to the device through the user interface.

<Huawei> display users
  User-Intf   Delay     Type   Network Address     AuthenStatus    AuthorcmdFlag
  129 VTY 0   00:00:00  TEL    10.164.6.10            pass            
Username : user1
+ 130 VTY 1   00:00:00  TEL    10.164.6.15            pass            
Username : user2
Table 2-17  Description of the display users command output

Item

Description

+

Terminal line in use.

User-Intf

The number in the first column indicates the absolute number of the user interface, and the number in the second column indicates the relative number of the user interface.

Delay

Interval from the user's latest input to the current time, in seconds.

Type

Connection type.
  • Console
  • Telnet
  • SSH
  • Web

Network Address

IP address of the login user.

Username

User name for logging in to the device. If the user name is not specified, Unspecified is displayed.

AuthenStatus

Whether the authentication succeeds.

AuthorcmdFlag

Command line authorization status.

display vty mode

Function

The display vty mode command displays the current VTY mode.

Format

display vty mode

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

VTY modes are classified into the man-to-machine mode and machine-to-machine mode.

Example

# Display the VTY mode.

<Huawei> display vty mode
current VTY mode is Human-Machine interface

display vty lines

Function

The display vty lines command lists the number of rows displayed on the VTY screen.

Format

display vty lines

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# List the number of lines displayed on the VTY screen.

<Huawei> display vty lines
Current VTY lines is 24.
Related Topics

flow-control

Function

The flow-control command configures the flow control mode.

The undo flow-control command restores the default flow control mode.

The default flow control mode is none, that is, flow control is disabled.

NOTE:

Only the AR503&AR509 support this command.

Format

flow-control { hardware | none }

undo flow-control

Parameters

Parameter Description Value
hardware Specifies that the flow control mode is hardware flow control, and it applies only to the console port. -
none Specifies that the flow control mode is no flow control. -

Views

User interface view

Default Level

3: Management level

Usage Guidelines

The configuration is effective only when the serial interface works in asynchronous interaction mode.

Example

# Set the flow control mode to hardware flow control in the user view.

<Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] flow-control hardware

free user-interface

Function

The free user-interface command disconnects the device from a specified user interface.

Format

free user-interface { ui-number | ui-type ui-number1 }

Parameters

Parameter Description Value
ui-number Specifies the absolute number of a user interface.

The value is an integer ranging from 0 to 177. The value varies according to the device type.

ui-type Specifies the type of a user interface. The value can be Console, or VTY.
ui-number1 Specifies the relative number of a user interface. The minimum value is 0. The maximum value is smaller by 1 than the number of user interfaces the system supports.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If a user logs in to the device and does not perform an operation or you want to forbid a user from performing operations on the device, you can run the free user-interface command to disconnect a specified user's terminal from the device. After the command is executed, the device logs out the user.

Precautions

The free user-interface command cannot be executed on the current user interface. For example, if the current user interface is VTY 2, the free user-interface vty 2 command fails to be executed on VTY 2 and an error message is displayed.

Example

# Disconnect the device from user-interface 0.

<Huawei> free user-interface 0
Warning: User interface Console1 will be freed. Continue? [Y/N]:y
Related Topics

history-command max-size

Function

The history-command max-size command sets the size of the historical command buffer.

The undo history-command max-size command restores the default size of the historical command buffer.

By default, a maximum of 10 previously-used commands can be saved in the buffer.

Format

history-command max-size size-value

undo history-command max-size

Parameters

Parameter Description Value
size-value Specifies the size of the historical command buffer. The value is an integer ranging from 0 to 256.

Views

User interface view

Default Level

2: Configuration level

Usage Guidelines

The CLI can automatically save the historical commands that you enter. This function is similar to that of Doskey. You can invoke and run the historical commands at any time.

Example

# Set the size of the historical command buffer to 20.

<Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] history-command max-size 20

idle-timeout

Function

The idle-timeout command sets the timeout duration for disconnection from a user interface.

The undo idle-timeout command restores the default timeout duration.

By default, the timeout duration is 5 minutes.

Format

idle-timeout minutes [ seconds ]

undo idle-timeout

Parameters

Parameter Description Value
minutes Specifies the idle timeout duration, in minutes. The value is an integer ranging from 0 to 35791, in minutes.
seconds Specifies the idle timeout duration, in seconds. The value is an integer ranging from 0 to 59, in seconds.

Views

User interface view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If a user logs in to the device and does not perform an operation, the user interface is occupied unnecessarily. You can run the idle-timeout command to disconnect the user's terminal from the device.

Precautions

  • If you set the time to zero, then the line connection remains alive until you close it.
  • If the user interface disconnection function is not configured, other users may fail to log in to the device.
  • If the idle timeout interval is set to 0 or a large value, the terminal will remain in the login state, resulting in security risks. You are advised to run the lock command to lock the current connection.
  • You are advised to set the timeout duration to 10-15 minutes.
NOTE:

If AAA authentication is required for login users, the timeout duration configured by the local-user idle-timeout command takes effect. If no timeout duration is configured or the undo local-user idle-timeout command is executed in the AAA view, the timeout duration configured by the idle-timeout command on the user interface takes effect.

Example

# Set the timeout duration to 1 minute and 30 seconds.

<Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] idle-timeout 1 30

parity

Function

The parity command sets the parity bit of a user interface.

The undo parity command disables the parity check.

By default, no parity check is configured.

Format

parity { even | none | odd }

undo parity

Parameters

Parameter Description Value
even Specifies even parity check. -
none Specifies no parity check. -
odd Specifies odd parity check. -

Views

User interface view

Default Level

3: Management level

Usage Guidelines

The setting is valid only when the serial port is configured to work in asynchronous mode.

Example

# Set the transmission parity bit on the console interface to odd parity.

<Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] parity odd

protocol inbound

Function

The protocol inbound command specifies the protocols that the VTY user interface supports.

By default, the system supports SSH and Telnet.

Format

protocol inbound { all | ssh | telnet }

Parameters

Parameter Description Value
all Indicates that all protocols including SSH and Telnet are supported. -
ssh Indicates that only SSH is supported. -
telnet Indicates that only Telnet is supported. -

Views

User interface view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To manage and monitor login users, configure the VTY user interface for login users and run the protocol inbound command to configure the protocols that the VTY user interface supports.

Prerequisites

If SSH is configured for the user interface using the protocol inbound command, you must configure the authentication-mode aaa authentication mode to ensure successful logins. If the password authentication mode is configured, the protocol inbound ssh command cannot be executed.

Precautions

  • The configuration takes effect at the next login.

  • Telnet is an insecure protocol. Using SSH is recommended.
  • When SSH is specified for the VTY user interface, if the SSH server has been enabled and the RSA/DSA/ECC key is not configured then the users can log in to the SSH server using temporary key.
    NOTE:

    You are advised to use a securer ECC authentication algorithm for higher security.

Example

# Configure SSH for user interfaces VTY0 to VTY4.

<Huawei> system-view
[Huawei] user-interface vty 0 4
[Huawei-ui-vty0-4] authentication-mode aaa
[Huawei-ui-vty0-4] protocol inbound ssh

screen-length

Function

The screen-length command sets the number of lines on each terminal screen after you run a command.

The undo screen-length command restores the default configuration.

By default, the number of lines to be displayed on a terminal screen is 24.

Format

In the user interface view:

screen-length screen-length [ temporary ]

undo screen-length [ temporary ]

In the user view:

screen-length screen-length temporary

undo screen-length temporary

Parameters

Parameter Description Value
screen-length Specifies the number of lines displayed on a terminal screen. The value is an integer that ranges from 0 to 512. The value 0 indicates that all command output is displayed on one screen.
temporary Specifies the number of lines temporarily displayed on a terminal screen. -

Views

User interface view, user view

Default Level

3: Management level

Usage Guidelines

If you run a command and its output is displayed in more lines than you can see on one screen, you can reduce the number of lines displayed on each screen.

In general, you do not need to change the number of lines displayed on each screen. Setting the number of lines to 0 is not recommended. The configuration takes effect after you log in to the system again.

NOTE:

In the user view, the temporary parameter is mandatory and this command is at the Monitoring level. The configured value takes effect only on the current VTY user interface but does not take effect on the next login on the same user interface or login on other VTY user interfaces.

Example

# Set the number of lines on each screen of the terminal to 30.

<Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] screen-length 30

screen-width

Function

The screen-width command sets the number of columns displayed on a terminal screen.

The undo screen-width command restores the default configuration.

By default, 80 columns are displayed on a terminal screen.

Format

screen-width screen-width

undo screen-width

Parameters

Parameter Description Value
screen-width Specifies the width of a terminal screen. The value is an integer ranging from 60 to 512.

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When logging in to a device using the terminal tool, you can run this command to adjust the screen width on the device to the same as that specified by the terminal tool to prevent garbled lines.

Precautions

The number of columns set using the screen-width command is valid only for the current interface. The setting is not saved after you log out. When you log in to the device from the console interface and configure this command, if you log out of the console interface and log in to the device again, the default width is used for the terminal screen.

Example

# Set the screen width to 100.

<Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] screen-width 100

set authentication password

Function

The set authentication password command configures a local authentication password.

By default, the local authentication password is not configured for the device.

Format

set authentication password cipher

Parameters

Parameter Description Value
cipher Indicates a password in cipher text. -

Views

User interface view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If password authentication is configured for users, you can run the set authentication password command to change the password or set a password in cipher text.

Pre-configuration Tasks

Before running the set authentication password command, ensure that password authentication has been configured for the user interface.

Precautions

  • The passwords must meet the following requirements:
    • The password is a string of 8 to 128 case-sensitive characters.

    • The password must contain at least two of the following characters: upper-case character, lower-case character, digit, and special character.

      The special characters include spaces and the following:

      `~!@#$%^&*()-_=+\|[{}];:'",<.>/?

  • Password entered in interactive mode is not displayed on the screen.

  • Users can press CTRL_C to cancel password modification in the interaction mode.

  • If the current login channel has a password, enter the password when you want to set an authentication password for a VTY channel range that contains the current login channel.

  • If the password authentication is configured but the password is not configured for the user interface, the user cannot log in to the device.

  • If the set authentication password command is executed multiple times, the latest configuration overrides the previous ones. You can run the set authentication password command to change the local authentication password. After the password is changed, a user who wants to log in to the device must enter the latest password for identity authentication.

Example

# Set the local authentication password for the user interfaces VTY 0-4.
<Huawei> system-view
[Huawei] user-interface vty 0 4
[Huawei-ui-vty0-4] set authentication password cipher
Enter Password(<8-128>):
Confirm Password:
[Huawei-ui-vty0-4]

shell

Function

The shell command enables terminal services on a user interface.

The undo shell command disables terminal services on a user interface.

By default, terminal services are enabled on a VTY user interface.

Format

shell

undo shell

Parameters

None

Views

User interface view

Default Level

3: Management level

Usage Guidelines

You can use the shell command on a user interface to enable terminal services. This command enables users to enter commands through this interface to query device information and configure the device.

You can use the undo shell command on the user interface to disable terminal services. This command does not allow users to perform any operations through this interface. After using the undo shell command in the VTY view, this user interface does not provide Telnet, STelnet, and SFTP access.

NOTE:

The console user interface does not support this command.

AR510 series routers do not support the TTY user interface.

On the AR509GW-L-D-H, if you run the undo shell or shell command on the console user interface, or use the config button to switch between undo shell and shell on the console user interface, the corresponding configuration will be saved to a specified area in the flash memory and will not be lost regardless of whether you run the save command to save the configuration. Therefore, the undo shell and shell configurations of the console user interface in the outputs of the display saved-configuration and display current-configuration commands may be different after the device restarts. The actual configuration is the same as that in the display current-configuration command output.

Example

# Disable terminal services on VTY 0 to VTY 4.

<Huawei> system-view
[Huawei] user-interface vty 0 4
[Huawei-ui-vty0-4] undo shell

speed (user interface view)

Function

The speed command sets the data transfer rate of a user interface.

The undo speed command restores the default data transfer rate of a user interface.

By default, the data transfer rate is 9600 bit/s.

Format

speed speed-value

undo speed

Parameters

Parameter Description Value
speed-value Specifies the data transfer rate of a user interface.

The value is expressed in bit/s.

The asynchronous serial interface supports the following data transfer rates:

  • 600 bit/s

  • 1200 bit/s

  • 4800 bit/s

  • 9600 bit/s

  • 19200 bit/s

  • 38400 bit/s

  • 57600 bit/s

  • 115200 bit/s

NOTE:
  • The console user interface does not support 600 bit/s and 1200 bit/s.
  • AR502G-L-D-H, AR502GR-L-D-H does not support 600 bit/s and 1200 bit/s.

Views

User interface view

Default Level

3: Management level

Usage Guidelines

The setting is valid only when the serial port is configured to work in asynchronous mode.

Example

# Set the data transfer rate of a user interface to 115200 bit/s.

<Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] speed 115200

stopbits

Function

The stopbits command sets the stop bit of a user interface.

The undo stopbits command restores the default stop bit of a user interface.

By default, the stop bit is 1.

Format

stopbits { 1.5 | 1 | 2 }

undo stopbits

Parameters

Parameter Description Value
1.5 Sets the stop bit to 1.5. -
1 Sets the stop bit to 1. -
2 Sets the stop bit to 2. -

Views

User interface view

Default Level

3: Management level

Usage Guidelines

If the stop bit is 1, the corresponding data bit is 7 or 8.

If the stop bit is 1.5, the corresponding data bit is 5.

If the stop bit is 2, the corresponding data bit is 6, 7, or 8.

The setting is valid only when the serial port is configured to work in asynchronous mode.

NOTE:

On the console user interface, the stop bit 1.5 is not supported.

Example

# Set the stop bit of a user interface to 2.

<Huawei> system-view
[Huawei] user-interface console 0
[Huawei-ui-console0] stopbits 2

user privilege

Function

The user privilege command configures the user level.

The undo user privilege command restores the default user level.

By default, users who log in to the device using the console interface are at level 15 and other users are at level 0.

Format

user privilege level level

undo user privilege level

Parameters

Parameter Description Value
level level Specifies the user level.
NOTE:

The larger the value, the higher the priority.

The value is an integer ranging from 0 to 15.

Views

User interface view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The system manages users at levels to control their access permissions. Users who log in to the device can use only commands at the same or lower level than their own levels.

Commands are classified into the visit level, monitoring level, configuration level, and management level that map levels 0, 1, 2, and 3, as listed in Table 2-18.

Table 2-18  Introduction to command levels

User Level

Command Level

Name

Description

0

0

Visit

Commands at this level are diagnosis commands such as ping and tracert commands and commands that are used to access a remote device such as Telnet clients.

1

0 and 1

Monitoring

Commands at this level are system maintenance commands such as display commands.

NOTE:

Some display commands are not at this level. For example, the display current-configuration and display saved-configuration commands are at level 3.

2

0, 1, and 2

Configuration

Commands at this level are service configuration commands.

3-15

0, 1, 2, and 3

Management

Commands at this level are system basic operation commands that support services, including file system, FTP, TFTP, user management commands, command level configuration commands, and debugging commands.

Precautions

If refined right management is required, run the command-privilege level command to upgrade command levels.

Example

# Set the user level on the VTY0 user interface to 2.

<Huawei> system-view
[Huawei] user-interface vty 0
[Huawei-ui-vty0] user privilege level 2

# Log in to the device using Telnet and view detailed information about the VTY0 user interface.

<Huawei> display user-interface vty 0
  Idx  Type     Tx/Rx      Modem Privi ActualPrivi Auth  Int     
+ 129   VTY 0               -     2     15           N     -       
  +    : Current UI is active.
  F    : Current UI is active and work in async mode.
  Idx  : Absolute index of UIs.
  Type : Type and relative index of UIs.
  Privi: The privilege of UIs.
  ActualPrivi: The actual privilege of user-interface.
  Auth : The authentication mode of UIs.
      A: Authenticate use AAA.
      N: Current UI need not authentication.
      P: Authenticate use current UI's password.
  Int  : The physical location of UIs.
Table 2-19  Description of the user privilege level command output.

Item

Description

+

Current user interface is active.

F

Current user interface is active and work is in asynchronous mode.

Idx

Absolute index of user interface.

Type

Type and relative index of user interface.

Privi

The privilege of user interface.

ActualPrivi

The actual privilege of user interface.

Auth

The authentication mode of user interface.

Int

The physical location of UIs.

A

Authenticate use AAA.

N

The current user interface need not be authenticated.

P

Authenticates the user using the password configured on the current user interface.

user-interface

Function

The user-interface command displays one or multiple user interface views.

Format

user-interface [ ui-type ] first-ui-number [ last-ui-number ]

Parameters

Parameter Description Value
ui-type
Specifies the type of a user interface.
  • If the user interface is specified, the relative number is used.
  • If the user interface is not specified, the absolute number is used.
The value can be console or vty.
first-ui-number Specifies the number of the first user interface.
  • If ui-type is set to console, the first-ui-number value is 0.
  • If ui-type is set to vty, the first-ui-number value ranges from 0 to the maximum number of VTY user interfaces.
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.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When the network administrator logs in to the device using the console interface, Telnet, or SSH, the system manages and monitors the session between the user and the device on the corresponding user interface. Each user interface corresponds a user interface view. The network administrator can set parameters such as authentication and user level to manage sessions in a unified manner.

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 2-20 describes absolute and relative numbers of user interfaces.

NOTE:
  • The relative numbering uniquely specifies a user interface or a group of user interfaces of the same type.
  • The absolute numbering specifies a user interface or a group of user interfaces.
Table 2-20  Absolute and relative numbers of user interfaces

User Interface

Description

Absolute Number

Relative Number

Console user interface

Manages and controls users that log in to the device using the console interface.

0

0

VTY user interface

Manages and controls users that log in to the device using Telnet or SSH.

129 to 143

The first one is VTY 0, the second one is VTY 1, and so forth.

Absolute numbers 129 to 143 map relative numbers VTY 0 to VTY 14.

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.

Example

# 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]

user-interface current

Function

The user-interface current command displays the current user interface view.

Format

user-interface current

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To enter the current user interface view, run the display user-interface command without the user interface number.

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 2-20 describes absolute and relative numbers of user interfaces.

NOTE:
  • The relative numbering uniquely specifies a user interface or a group of user interfaces of the same type.
  • The absolute numbering specifies a user interface or a group of user interfaces.

Example

# Enter the current user view.

<Huawei> system-view
[Huawei] user-interface current
[Huawei-ui-vty1]

user-interface maximum-vty

Function

The user-interface maximum-vty command configures the maximum number of login users.

The undo user-interface maximum-vty command restores the default maximum number of login users.

By default, the maximum number of Telnet and SSH users is 5.

Format

user-interface maximum-vty number

undo user-interface maximum-vty

Parameters

Parameter Description Value
number Specifies the maximum number of Telnet and SSH users. The value is an integer ranging from 0 to 15.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The user-interface maximum-vty command configures the maximum number of login users.

Precautions

  • If the maximum number that you set is smaller than the number of current online users, the system displays a configuration failure message.

  • The maximum number of login users set by the user-interface maximum-vty command is the total number of Telnet and SSH users.

  • If the maximum number of login users is set to 0, no user is allowed to log in to the device using Telnet or SSH.

Example

# Set the maximum number of Telnet users to 7.

<Huawei> system-view
[Huawei] user-interface maximum-vty 7
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 50002

Downloads: 102

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next