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 of Configuring System Startup

Example of Configuring System Startup

Networking Requirements

As shown in Figure 12-4, the current system software cannot meet user needs. The device must load new software version with more features. Then the device software needs to be upgraded remotely.

Figure 12-4  Configuring System Startup Networking

Configuration Roadmap

The configuration roadmap is as follows:

  1. Upload the new system software to the root directory of the device.

  2. Save the current configuration so that it remains active after upgrade.

  3. Specify the system software for next startup.

  4. Specify the configuration file for next startup of the device.

  5. Restart the device to complete upgrade.

Procedure

  1. Upload the new system software to the root directory of the device.

    Before configuration, run the display startup command to view the files for next startup.

    <Huawei> system-view
    [Huawei] sysname Router
    [Router] quit
    <Router> display startup
    MainBoard:
      Startup system software:                   flash:/basicsoft.cc
      Next startup system software:              flash:/basicsoft.cc
      Backup system software for next startup:   null
      Startup saved-configuration file:          flash:/vrpcfg.zip
      Next startup saved-configuration file:     flash:/vrpcfg.zip
      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 

    # Upload the new system software to the device. This example uses FTP to transfer the system software. Configure the device as an FTP server and upload the system software to the device from the FTP client. Make sure there is enough space in the storage device before uploading files. If the space is insufficient, delete unnecessary files to free up space in the storage device.

    <Router> system-view
    [Router] ftp server enable
    [Router] aaa
    [Router-aaa] local-user huawei password irreversible-cipher Helloworld@6789
    [Router-aaa] local-user huawei service-type ftp
    [Router-aaa] local-user huawei ftp-directory flash:
    [Router-aaa] local-user huawei privilege level 15
    [Router-aaa] quit
    [Router] quit
    

    # Run the ftp 10.1.1.1 command in the command line window of the PC to set up an FTP connection with the device. Run the put command to upload new system software newbasicsoft.cc. After the upload completes, run the dir command to check the system software.

    <Router> dir
    Directory of flash:/
    
      Idx  Attr     Size(Byte)  Date        Time       FileName
        0  drw-              -  Apr 16 2012 13:19:58   logfile
        1  -rw-     85,925,409  Apr 16 2012 13:18:02   basicsoft.cc
        2  -rw-              4  Oct 27 2011 17:25:22   snmpnotilog.txt
        3  -rw-          6,033  Jul 16 2012 16:40:02   private-data.txt
        4  -rw-          3,275  Jul 14 2012 14:18:08   vrpcfg.zip
        5  drw-              -  Nov 14 2011 19:14:26   sysdrv 
        6  drw-     88,239,759  Jul 16 2012 19:14:26   newbasicsoft.cc
    ...
    
    468,304 KB total (208,272 KB free)

  2. Save the current configuration to the default storage device.

    <Router> save
    The current configuration will be written to the device.                        
    Are you sure to continue? [Y/N]y                                                 
    Now saving the current configuration to the slot 0 .                            
    Info: Save the configuration successfully. 

  3. Specify the system software to be loaded for next startup.

    <Router> startup system-software newbasicsoft.cc

  4. Specify the configuration file for next startup.

    <Router> startup saved-configuration vrpcfg.zip
    NOTE:

    In step 1, you can run the display startup command to check the configuration file for next startup. The message "Next startup saved-configuration file: flash:/vrpcfg.zip" will be displayed. This means the vrpcfg.zip configuration file has been specified for next startup, so you do not need to perform this step. To specify another file for next startup, perform this step.

  5. Verify the configuration.

    # Run the following command to view the system software and configuration file for next startup.

    <Router> display startup
    MainBoard:
      Startup system software:                   flash:/basicsoft.cc
      Next startup system software:              flash:/newbasicsoft.cc
      Backup system software for next startup:   null
      Startup saved-configuration file:          flash:/vrpcfg.zip
      Next startup saved-configuration file:     flash:/vrpcfg.zip
      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 

  6. Restart the device.

    # Since the configuration file has been saved, run the reboot fast command to restart the device quickly.

    <Router> reboot fast
    System will reboot! Continue? [Y/N]:y                                            
    Info: system is rebooting ,please wait...

  7. Verify the configuration.

    # Wait for several minutes until the device restart is complete. Run the display version command to check the current system version. If the current system software is new, the upgrading has succeeded.

    The display version command output is not provided here.

Configuration File

#
aaa
 local-user huawei password irreversible-cipher %^%#,))E=[pEbYRK$p4\_no/Mjz3#bSXH4+'!So.E/(xr}|+jz6M%^%#
 local-user huawei privilege level 15
 local-user huawei ftp-directory flash:
 local-user huawei service-type ftp
#
interface GigabitEthernet1/0/0
 undo portswitch
 ip address 10.1.1.1 255.255.255.0
#
 ftp server enable
#
return
Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034225

Views: 44826

Downloads: 100

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