Example for Configuring the Console User Interface

In this configuration example, the physical attributes, terminal attributes, user level, authentication mode, and password are configured for the console user interface. After the configuration is complete, you can log in to the device through the console port in password authentication mode.

Networking Requirements

To initialize the configurations of a new device or locally maintain the device, log in to the device through the console user interface. You can configure attributes for the console user interface based on use and security requirements.

Precautions

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure physical attributes for the console user interface.

  2. Configure terminal attributes for the console user interface.

  3. Set a user level.

  4. Set an authentication mode and password.

The user name and password do not have default values. Other parameters have default values, which are recommended.

Data Preparation

To complete the configuration, you need the following data:

  • Transmission rate of a connection: 4800 bit/s

  • Flow control mode: none

  • Parity: even

  • Stopbits: 2

  • Databits: 6

  • Timeout period of an idle connection: 30 minutes

  • Number of rows displayed on a terminal screen: 30

  • Buffer size for historical commands: 20

  • User level: 15

  • Authentication mode: password authentication

Procedure

  1. Configure physical attributes for the console user interface.

    <HUAWEI> system-view
    [~HUAWEI] user-interface console 0
    [~HUAWEI-ui-console0] speed 4800
    [*HUAWEI-ui-console0] flow-control none
    [*HUAWEI-ui-console0] parity even
    [*HUAWEI-ui-console0] stopbits 2
    [*HUAWEI-ui-console0] databits 6
    [*HUAWEI-ui-console0] commit

  2. Configure terminal attributes for the console user interface.

    [~HUAWEI-ui-console0] shell
    [*HUAWEI-ui-console0] idle-timeout 30
    [*HUAWEI-ui-console0] screen-length 30
    [*HUAWEI-ui-console0] history-command max-size 20
    [*HUAWEI-ui-console0] commit

  3. Set a user level for the console user interface.

    [~HUAWEI-ui-console0] user privilege level 15
    [*HUAWEI-ui-console0] commit

  4. Configure password authentication for the console user interface.

    [~HUAWEI-ui-console0] authentication-mode password
    [~HUAWEI-ui-console0] set authentication-mode password
    Please configure the login password (8-16)
    Enter Password:
    Confirm Password:

    The password must meet the following requirements:

    • The password is entered in man-machine interaction mode. The system does not display the entered password.

    • A password is a string of 8 to 16 case-sensitive characters and must contain at least two types of the following characters: uppercase letters, lowercase letters, digits, and special characters.

    • Special characters exclude question marks (?) and spaces. However, spaces are allowed in the password if the password is enclosed in quotation marks.
      • Double quotation marks cannot contain double quotation marks if spaces are used in a password.
      • Double quotation marks can contain double quotation marks if no space is used in a password.

      For example, the password "Aa123"45"" is valid, but the password "Aa 123"45"" is invalid.

    The configured password is displayed in ciphertext in the configuration file.

    [*HUAWEI-ui-console0] commit
    [~HUAWEI-ui-console0] quit

    After the console user interface has been configured, you can log in to the device through the console port in password authentication mode. For information about how to log in to the system through the console port, see Configuring Login Through a Console Port.

  5. Verify the configuration.

    After completing the configurations, run the display user-interface command to view the configuration of Console 0.

    <HUAWEI> display user-interface 0
    Idx  Type    Tx/Rx Modem Privi ActualPrivi Auth Int
    +0   CON  0   9600  -      3        -       P    -
    + : Current user-interface is active.
    F : Current user-interface is active and work in async 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.
    A : Authenticate use AAA.
    N : Current user-interface need not authentication.
    P : Authenticate use current UI's password.
    Int : The physical location of UIs.

Configuration Files

#
 sysname HUAWEI
#
user-interface con 0
 authentication-mode password
 user privilege level 15
 set authentication password cipher @%@%(t7h+Qu=a#pz`3Kylk1/,JXR%iy(DA!x8&+!|#b&.dEW65~.lEqGm~Np$O#2M]xJM@%@%
 history-command max-size 20
 idle-timeout 30 0
 databits 6
 parity even
 stopbits 2
 speed 4800
 screen-length 30
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >