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 Auto-Start

Example for Configuring Auto-Start

Networking Requirements

As shown in Figure 3-4, newly-delivered RouterA, RouterB, and RouterC need to be deployed in an enterprise's branches 1, 2, and 3, respectively, and communicate with RouterD in the enterprise's headquarters.

The enterprise wants to load the same system software and different configuration files on RouterA, RouterB, and RouterC. To reduce labor costs for onsite deployment, the enterprise wants to configure these routers remotely and rapidly.

Information of RouterA, RouterB, and RouterC and files to be loaded on these routers are as follows:
  • RouterA: The MAC address is 0018-82C5-AA89, ESN is 2102310CXK10B6000183, system software name is V200R007C00.cc, version is V200R007C00, and configuration file is auto_RouterA.cfg.
  • RouterB: The MAC address is 0018-82C5-AA90, ESN is 2102310CXK10B6000184, system software name is V200R007C00.cc, version is V200R007C00, and configuration file is auto_RouterB.cfg.
  • RouterC: The MAC address is 0018-82C5-AA91, ESN is 2102310CXK10B6000185, system software name is V200R007C00.cc, version is V200R007C00, and configuration file is auto_RouterC.cfg.
Figure 3-4  Networking for configuring Auto-Start

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure RouterD as the SFTP server.
  2. Make the intermediate file arstart.ini that maps each router to be configured with the system software and configuration file to be loaded.
  3. Save the intermediate file and configuration files and system software to be loaded to the working directory of the SFTP server RouterD, so that RouterA, RouterB, and RouterC can obtain these files.
  4. On RouterA, RouterB, and RouterC, configure IP addresses and SFTP server parameters (including the type and IP address of the file server, and the user name and password for accessing the file server), and enable Auto-Start.
  5. Power on the routers. The routers use Auto-Start to automatically load configuration files, system software, and patch files.
NOTE:

By default, Auto-Start is disabled on a device.

Procedure

  1. Configure RouterD as the SFTP server.

    # Configure the SFTP server function and related parameters.

    <Huawei> system-view
    [Huawei] sysname SFTP Server
    [SFTP Server] sftp server enable
    [SFTP Server] rsa local-key-pair create
    The key name will be: Host                                                      
    RSA keys defined for Host already exist.                                        
    Confirm to replace them? (y/n):y                                                
    The range of public key size is (512 ~ 2048).                                   
    NOTES: If the key modulus is less than 2048,                                    
           It will introduce potential security risks.                              
    Input the bits in the modulus[default = 2048]:2048                              
    Generating keys...                                                              
    ................................................................+++             
    .............................................+++                                
    ..............................++++++++                                          
    .........................++++++++
    

    # Configure the user interface for SSH login.

    [SFTP Server] user-interface vty 0 4
    [SFTP Server-ui-vty0-4] authentication-mode aaa
    [SFTP Server-ui-vty0-4] protocol inbound all
    [SFTP Server-ui-vty0-4] user privilege level 15
    [SFTP Server-ui-vty0-4] quit

    # Configure an SSH user.

    [SFTP Server] aaa
    [SFTP Server-aaa] local-user huawei password irreversible-cipher huawei2012
    [SFTP Server-aaa] local-user huawei privilege level 15
    [SFTP Server-aaa] local-user huawei service-type ssh
    [SFTP Server-aaa] local-user huawei ftp-directory sd1:
    [SFTP Server-aaa] quit
    [SFTP Server] ssh user huawei authentication-type password

    # Configure the IP address of the SFTP server.

    [SFTP Server] interface gigabitethernet 1/0/0
    [SFTP Server-GigabitEthernet1/0/0] ip address 192.168.1.6 255.255.255.0
    [SFTP Server-GigabitEthernet1/0/0] quit

  2. Make the intermediate file arstart.ini.

    # Create a text file and name it arstart.ini. The contents and format of the intermediate file are as follows:

    MAC=0018-82C5-AA89;ESN=2102310CXK10B6000183;vrpfile=V200R007C00.cc;vrpver=V200R007C00;cfgfile=auto_RouterA.cfg;
    MAC=0018-82C5-AA90;ESN=2102310CXK10B6000184;vrpfile=V200R007C00.cc;vrpver=V200R007C00;cfgfile=auto_RouterB.cfg;
    MAC=0018-82C5-AA91;ESN=2102310CXK10B6000185;vrpfile=V200R007C00.cc;vrpver=V200R007C00;cfgfile=auto_RouterC.cfg;

  3. Upload the intermediate file, configuration files, and system software to the working directory sd1 of the SFTP server.
  4. Configure IP addresses and SFTP server parameters, and enable Auto-Start on RouterA, RouterB, and RouterC.

    # Take RouterA as an example. The configurations of RouterB and RouterC are similar to the configuration of RouterA, and are not mentioned here. For details, see the configuration files.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ip address 192.168.1.1 24
    [RouterA] autostart
    [RouterA-autostart] servertype SFTP
    [RouterA-autostart] ipaddress 192.168.1.6
    [RouterA-autostart] username huawei password huawei2012
    [RouterA-autostart] quit
    [RouterA] autostart enable
    [RouterA] quit
    <RouterA> save
    

  5. Start the routers. The routers then start the Auto-Start process.
  6. Verify the configuration.

    # After the Auto-Start process ends, log in to routers to be configured and run the display startup command to view the startup system software and configuration file. The command output on RouterA is used as an example.
    <RouterA> display startup
    MainBoard: 
      Startup system software:                   sd1:/V200R007C00.cc
      Next startup system software:              sd1:/V200R007C00.cc
      Backup system software for next startup:   null
      Startup saved-configuration file:          sd1:/auto_RouterA.cfg
      Next startup saved-configuration file:     sd1:/auto_RouterA.cfg
      Startup license file:                      null
      Next startup license file:                 null
      Startup patch package:                     null
      Next startup patch package:                null
      Startup voice-files:                       null
      Next startup voice-files:                  null

  7. Disable Auto-Start.

    # After successfully deploying a router using Auto-Start, disable Auto-Start to prevent the router from starting the Auto-Start process again after it starts the next time. The command output on RouterA is used as an example.

    <RouterA> system-view
    [RouterA] undo autostart enable
    [RouterA] quit
    <RouterA> save

Configuration Files

  • RouterD configuration file

    #
     sysname SFTP Server
    #
    aaa
     local-user huawei password irreversible-cipher %^%#Wdb-1<0^vO:5yT'Ht^dTY)(+wZ<x>!GshQKAr7<Lo$fY)(.Y%^%#
     local-user huawei privilege level 15
     local-user huawei ftp-directory sd1:
     local-user huawei service-type ssh
    #
    interface GigabitEthernet1/0/0                      
     ip address 192.168.1.6 255.255.255.0 
    #
     sftp server enable
    #
    user-interface vty 0 4
     authentication-mode aaa
     user privilege level 15
    #
    return
  • RouterA configuration file

    #
     sysname RouterA
    #
    interface GigabitEthernet1/0/0
     ip address 192.168.1.1 255.255.255.0
    #
     autostart enable
    autostart
     servertype sftp
     ipaddress 192.168.1.6
     username huawei password %^%#B(Wv8+v`a~b%7c-8L^7G,$)"%^%#
    #
    return
  • RouterB configuration file

    #
     sysname RouterB
    #
    interface GigabitEthernet1/0/0
     ip address 192.168.1.2 255.255.255.0
    #
     autostart enable
    autostart
     servertype sftp
     ipaddress 192.168.1.6
     username huawei password %^%#B(Wv8+v`a~b%7c-8L^7G,$)"%^%#
    #
    return
  • RouterC configuration file

    #
     sysname RouterC
    #
    interface GigabitEthernet1/0/0
     ip address 192.168.1.3 255.255.255.0
    #
     autostart enable
    autostart
     servertype sftp
     ipaddress 192.168.1.6
     username huawei password %^%#B(Wv8+v`a~b%7c-8L^7G,$)"%^%#
    #
    return
Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034225

Views: 45144

Downloads: 100

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