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

CLI-based Configuration Guide - Basic Configuration

AR500, AR510, AR531, AR550, AR1500, and AR2500 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
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).
Logging In to a Device Through Redirection

Logging In to a Device Through Redirection

This section describes how to configure the redirection function and use this function to log in to a remote device.

Context

To manage a remote device that can transmit data only through a serial port, configure the redirection function on the current device.

A remote device can be a router, a switch, an electricity terminal, a finance terminal, or other terminals that use serial ports to transmit data.

  • Managing remote routers and switches

    As shown in Figure 9-7, there are two routers and two switches connected to the device. The redirection function on the device can be used to manage remote devices that can only be managed through serial ports. The asynchronous serial port on the device is connected to the serial ports on the remote devices for users to manage and maintain the remote devices.

    Figure 9-7  Diagram for login through redirection (1)

  • Managing terminals such as intelligent electricity meters, intelligent water meters, and automatic teller machines

    As shown in Figure 9-8, the redirection function is enabled on the device. The device listens to the specified TCP port and receives data packets from the terminals through serial ports. After receiving data packets, the device encapsulates the packets into Ethernet frames so that they can be transmitted over an Ethernet network. This implements the remote data transmission and management on the terminals.

    Figure 9-8  Diagram for login through redirection (2)

Procedure

  1. Enable the redirection function on the router.
    1. Run system-view

      The system view is displayed.

    2. Run interface async interface-number

      The asynchronous interface view is displayed.

    3. Run async mode flow

      The asynchronous serial interface is configured to work in flow mode.

      By default, an asynchronous serial interface works in protocol mode.

    4. Run quit

      Exit from the asynchronous serial interface view.

    5. Run:user-interface console 0

      The console user interface view is displayed.

      Or run:

      user-interface tty tty-number

      The TTY user interface view is displayed.

      When configuring the TTY user interface, pay attention to the following points:
      • After an 8AS interface card registers successfully, the device generates random numbers for TTY user interfaces. To view the TTY user interface number mapped to an asynchronous serial port, run the display user-interface command.
      • If the modem function is enabled on a TTY user interface, the redirection function does not take effect on the TTY user interface.

    6. (Optional)Run authentication-mode { password | aaa }

      A user authentication mode is specified.

      For details on configuration of the authentication mode, see Configuring an Authentication Mode for the Console or TTY User Interface.

    7. Run redirect [ ssh ] enable

      The redirection function is enabled.

      By default, the redirection function is disabled.

    8. (Optional)Run transparent-mode enable

      The transparent transmission mode for redirection on the serial port is enabled.

      By default, the transparent transmission mode for redirection on a serial port is disabled.

      The device checks data redirected by a serial port and discards unidentifiable data, damaging the original data. You can run this command to ensure the original data integrity. The device will transparently transmit data without checking it.

    9. Run undo shell

      The terminal service is disabled on the user interface.

      By default, the terminal service is disabled on a TTY user interface.

    10. (Optional) Run redirect binding vpn-instance vpn-instance-name

      The redirection function is associated with a VPN instance.

      By default, the redirection function is not associated with any VPN instance, and all users on public and private networks can use the redirection function to log in to remote devices.

    11. (Optional) Run redirect [ ssh ] listen-port port-number

      A port number is specified for setting up connections through the redirection function.

      By default, the port number that the local device uses to set up a connection with a remote device is 2000 plus tty-number. When the default port number is used by another service, perform this step to set a new port number.

      Port 2000 is used on the console user interface view.

  2. Log in to a device from a terminal through redirection.

    • Telnet mode

      Log in to a device from a terminal through redirection in Telnet mode. The Windows command line is used as an example.

      1. Open the command line window.

      2. Run the telnet host-name port-number command to log in to the device through redirection.

        In the command, host-name is the IP address or host name of the router with the redirection function enabled, and port-number is the default listening port number (2000 plus tty-number) or the port number configured using the redirect listen-port command. (The following information is only for reference.)

        C:\Documents and Settings\Administrator> telnet 10.1.1.1 2042
        Press CTRL_] to quit telnet mode
          Trying 10.1.1.1...
          Connected to 10.1.1.1...
        Login authentication
        
        
        Password:
         <Router>
        
    • STelnet mode

      Log in to a device from a terminal through redirection in STelnet mode. The third-party software PuTTY is used as an example.

      # Log in to the device using PuTTY. Set the protocol type to SSH, Host Name to the IP address or host name of the redirection-enabled router, and Port to the default port number (2000 plus TTY number) or the port number specified using the redirect ssh listen-port command. (The following information is only for reference.)

      Figure 9-9  Using Putty to redirect to a device in STelnet mode

      # Click Open. Enter the user name and password at the prompt, and press Enter. You have logged in to the device. (The following information is only for reference.)

      login as: client001
      client001@10.1.1.1's password:
      
      <Router>
      

Verifying the Configuration

Run the display tcp status command to check the current TCP connection status.

Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034225

Views: 44820

Downloads: 100

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