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).
Example for Configuring the Device as the Telnet Client to Log In to Another Device

Example for Configuring the Device as the Telnet Client to Log In to Another Device

Networking Requirements

As shown in Figure 9-25, the PC and Router1 have reachable routes to each other; Router1 and Router2 have reachable routes to each other. The user needs to manage and maintain Router2 remotely. However, the PC cannot directly log in to Router2 through Telnet because it has no reachable route to Router2. The user can log in to Router1 through Telnet, and then log in to Router2 from Router1. To prevent unauthorized devices from logging in to Router2 through Telnet, an ACL needs to be configured to allow only the Telnet connection from Router1 to Router2.

Figure 9-25  Networking diagram of configuring the device as the Telnet client to log in to another device

NOTE:

The Telnet protocol poses a security risk, and therefore the STelnet V2 protocol is recommended.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure the Telnet authentication mode and password on Router2.
  2. Configure the Router2 to allow Router1 access with ACL.
  3. Log in to Router2 from Router1 through Telnet.

Procedure

  1. Configure the Telnet authentication mode and password on Router2.

    <Huawei> system-view
    [Huawei] sysname Router2
    [Router2] telnet server enable
    [Router2] user-interface vty 0 4
    [Router2-ui-vty0-4] user privilege level 3
    [Router2-ui-vty0-4] authentication-mode aaa
    [Router2-ui-vty0-4] quit

  2. Configure the login user information.

    [Router2] aaa
    [Router2-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789
    [Router2-aaa] local-user admin1234 service-type telnet
    [Router2-aaa] local-user admin1234 privilege level 3
    [Router2-aaa] quit

  3. Configure the Router2 to allow Router1 access with ACL.

    [Router2] acl 2000
    [Router2-acl-basic-2000] rule permit source 10.1.1.1 0
    [Router2-acl-basic-2000] quit
    [Router2] user-interface vty 0 4
    [Router2-ui-vty0-4] acl 2000 inbound
    [Router2-ui-vty0-4] quit
    NOTE:

    It is optional to configure an ACL for Telnet services.

  4. Verify the configuration.

    # After the preceding configuration, you can log in to Router2 from Router1 through Telnet. You cannot log in to Router2 from other devices. The following information is for reference only.

    <Huawei> system-view
    [Huawei] sysname Router1
    [Router1] quit
    <Router1> telnet 10.2.1.1
    Login authentication
    
    Username:admin1234
    Password:
    
    <Router2>

Configuration Files

Router2 configuration file

#
 sysname Router2
#
acl number 2000
 rule 5 permit source 10.1.1.1 0
#
aaa
 local-user admin1234 password irreversible-cipher %^%#*~Br";[g6Pv5Zf>$~{hY+N!`{$<[Y{;l02P)B,EBz\1FN!c+%^%#
 local-user admin1234 privilege level 3
 local-user admin1234 service-type telnet
#
 telnet server enable
#
user-interface vty 0 4
 acl 2000 inbound
 authentication-mode aaa
 user privilege level 3
#
return
Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034225

Views: 44495

Downloads: 100

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