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

Configuration Guide - Basic Configuration

S9300, S9300E, and S9300X V200R011C10

This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
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).
Example for Configuring Login Through a Console Port

Example for Configuring Login Through a Console Port

Networking Requirements

If you cannot log in to a device remotely, you can log in to the device locally through the console port. The default authentication mode for login through the console port is AAA authentication. To prevent unauthenticated users from logging in to the device, you can change the user name and password for AAA authentication in the console user interface.

Figure 5-7  Networking diagram for configuring login through a console port

Configuration Roadmap

The configuration roadmap is as follows:

  1. Use terminal emulation software to log in to the device through the console port.
  2. Change the user name and password for AAA authentication in the console user interface.

Procedure

  1. Connect the DB9 female connector of the console cable to the serial port (COM) on the PC, and connect the RJ45 connector to the console port on the device, as shown in Figure 5-8.

    Figure 5-8  Connecting to the device through the console port

    NOTE:

    If the device has two main processing units (MPUs), you can log in to the device through the console port on either of the two MPUs.

    If a maintenance terminal (PC) does not have a DB9 serial port, purchase a USB-to-DB9 cable that has a DB9 male connector with nuts. Connect the DB9 female connector of the console cable to the DB9 male connector of the USB-to-DB9 cable, and then connect the USB connector to the USB port of the maintenance terminal.

  2. Start the terminal emulation software on the PC. Create a connection, select the port for connection, and set communication parameters. (This section uses the third-party software SecureCRT as an example.)
    1. Click to establish a connection, as shown in Figure 5-9.

      Figure 5-9  Establishing a connection

    2. Set the port for connection and communication parameters, as shown in Figure 5-10.

      Select the port for connection. For example, you can view port information in Device Manager in the Windows operating system, and select the port for connection.

      Communication parameters of the terminal emulation software must be consistent with the default attribute settings of the console user interface on the device, which are 9600 bit/s baud rate, 8 data bits, 1 stop bit, no parity check, and no flow control.

      NOTE:

      By default, no flow control mode is configured on the device. Because RTS/CTS is selected in the software by default, you need to deselect RTS/CTS; otherwise, you cannot enter commands.

      Figure 5-10  Setting the port for connection and communication parameters

  3. Click Connect. The following information will be displayed, prompting you to enter the user name and password. (In password authentication, the system prompts you to enter the password. The following output is only for reference.)

    Login authentication
    
    
    Username:admin 
    Password: 
    <Quidway>         
    NOTE:

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

  4. Change the user name and password for AAA authentication in the console user interface.

    <Quidway> system-view
    [Quidway] sysname Switch
    [Switch] user-interface console 0
    [Switch-ui-console0] authentication-mode aaa
    [Switch-ui-console0] quit
    [Switch] aaa
    [Switch-aaa] undo local-user admin    //Delete the local user whose name is admin
    [Switch-aaa] local-user admin123 password irreversible-cipher abcd@123    //Set the login password of the local account admin123 to abcd@123
    [Switch-aaa] local-user admin123 privilege level 15
    [Switch-aaa] local-user admin123 service-type terminal

    When logging in to the device again through the console port after completing the preceding configuration, enter the user name admin123 and password abcd@123 to pass identity authentication and log in to the device successfully.

Configuration File

Switch configuration file

#
sysname Switch
#
aaa
 undo local-user admin
 local-user admin123 password irreversible-cipher $1a$aVW8S=aP=B<OWi1Bu'^R[=_!~oR*85r_nNY+kA(I}[TiLiVGR-i/'DFGAI-O$
 local-user admin123 privilege level 15
 local-user admin123 service-type terminal
#
user-interface con 0
 authentication-mode aaa
#
return
Translation
Download
Updated: 2019-04-17

Document ID: EDOC1000178413

Views: 68000

Downloads: 109

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