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

S12700 V200R013C00 Configuration Guide - Basic Configuration

This document describes the configurations of Basic, including CLI Overview, EasyDeploy Configuration, USB-based Deployment Configuration, Logging In to a Device for the First Time, CLI Login Configuration, Web System Login Configuration, File Management, Configuring System Startup, ISSU Configuration, BootLoad Menu Operation.
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).
Configuring Login Through the Console or Mini USB Port

Configuring Login Through the Console or Mini USB Port

Local login through the console or Mini USB port is of high rights. If you cannot log in to a switch remotely, connect a PC to the console or Mini USB port of the switch for local login.

NOTE:

The device connection method for mini USB port login is different from that for console port login but the communication parameters during login and configurations after login are the same. The console port login is described as an example.

Common Configurations for Login Through the Console Port

By default, you can directly log in to a switch using the user name for the first login and the changed password without any extra configuration. To add a console user or change user information, perform the following steps:

  1. Set an authentication mode for accessing the console user interface.
  2. Configure authentication information and a user level for the console user interface.

Procedure

  1. Set an authentication mode for accessing the console user interface.

    <HUAWEI> system-view
    [HUAWEI] user-interface console 0    //Enter the console user interface.
    [HUAWEI-console0] authentication-mode aaa    //Set the authentication mode to AAA authentication. By default, AAA authenticaiton is used.
    [HUAWEI-console0] quit
    

  2. Configure authentication information and a user level for the console user interface.

    [HUAWEI] aaa
    [HUAWEI-aaa] local-user admin123 password irreversible-cipher abcd@123    //Create a local user admin123 and set the password to abcd@123.
    [HUAWEI-aaa] local-user admin123 privilege level 15    //Set the level of the local user admin123 to 15.
    [HUAWEI-aaa] local-user admin123 service-type terminal    //Set the access type of the local user admin123 to terminal user, namely, console user.

    If you configure the console user interface after login through the console port, the configuration takes effect at your next login.

  3. Connect to the switch through the console port and enter the user name and password as prompted to log in to the switch. (In this example, the user name is admin123 and the password is abcd@123.)

    Login authentication
    
    
    Username:admin123 
    Password: 
    <HUAWEI>         

Besides the preceding AAA authentication, password authentication and none authentication are also supported. If password authentication is selected, the configuration file is as follows.

#
user-interface con 0
 authentication-mode password    //Set the authentication mode for accessing the console user interface to password authentication.
 set authentication password cipher $1c$ohcJ$SBKv8$:s>w=0a2XM4N3MW7j8r8O_/P"4_>FX,6$b-^UKPR$    //Set the login password.
#
return
NOTE:
  • If non-authentication is used, any user can be successfully authenticated without the need of entering the user name and password. In actual scenarios, AAA authentication is more secure and is therefore recommended.
  • If you configure the console user interface after login through the console port, the configuration takes effect at your next login.
  • For device security purposes, change the password periodically.

Related Commands

For detailed command description, see Command Reference.

Table 6-5  Common commands

Function

Command

Description

Set an authentication mode for accessing a console user interface.

authentication-mode { aaa | password | none }

If AAA authentication is selected, you need to configure information about the local AAA user.

By default, AAA authentication is used.

If AAA authentication is selected, you need to configure information about the local AAA user as follows:
  • Run the local-user user-name { password { cipher | irreversible-cipher } password command to create a local user and set a password for the user.
  • Run the local-user user-name { privilege level level } command to set the level of the local user.
  • Run the local-user user-name service-type { http | ssh | telnet | terminal } * command to set the access type of the local user.

Configure the login password for accessing a console user interface.

set authentication password [ cipher password ] If password authentication is selected, you need to use this command to set the authentication password.

Set the level of users who are allowed to access a console user interface.

user privilege level level

The default user level is 15.

The user level set using this command does not take effect for AAA users. The level of AAA users depends on the local user level in the AAA configuration information.

Table 6-6  Other commands

Function

Command

Description

Set the flow control mode of a console user interface.

flow-control { hardware | none | software } By default, the flow control mode is none, namely, flow control is not performed.

Set the data bit of a console user interface.

databits { 5 | 6 | 7 | 8 } The default data bit is 8.

Set the parity bit of a console user interface.

parity { even | mark | none | odd | space } By default, the parity bit is none, namely, parity is not performed.

Set the stop bit of a console user interface.

stopbits { 1 | 1.5 | 2 } The default stop bit is 1.

Set the baud rate of a console user interface.

speed speed-value The default transmission rate is 9600 bit/s.

Set the console user interface inactivity timeout.

idle-timeout minutes [ seconds ] The default timeout value is 10 minutes.

Set the number of lines displayed on a terminal screen.

screen-length screen-length The default number of lines displayed on a terminal screen is 24.

Set the number of columns displayed on a terminal screen.

screen-width screen-width The default number of columns displayed on a terminal screen is 80.

Set the size of the historical command buffer on a console user interface.

history-command max-size size-value By default, a maximum of 10 historical commands can be saved in the buffer.
Translation
Download
Updated: 2019-04-08

Document ID: EDOC1100065643

Views: 10855

Downloads: 33

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