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


To have a better experience, please upgrade your IE browser.


CLI-based Configuration Guide - Basic Configuration

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 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).
Overview of System Startup

Overview of System Startup

The system loads the system software and configuration file during a startup. If a patch file is specified for next startup, the system also loads the specified patch file.

System startup scenarios are as follows:
  • Version upgrade: Upgrade the system software to a later version.

    To add new features, optimize existing features, or solve problems in the current version, you need to upgrade the device. To upgrade the device, load the upgrade system software and restart the device.

  • Version rollback: Degrade the software to an earlier version.

    If an error occurs after the upgrade, perform version rollback to restore normal service operating. You need to load earlier version system software and restart the device.

  • First startup: When a new device is deployed on a network, you can load an existing configuration file on the device to meet user needs.

    A new device contains only factory configurations. To connect a new device to the network and deploy services on it, you have to spend a lot of time on device configuration. To save time on device configuration, specify a configuration file that meets user needs for the device and restart the device.

  • Patch update: Specify the patch file to be loaded after an upgrade.

    You can specify a new patch file when upgrading the device. The patch takes effect immediately when the upgrade is complete.

  • The upgrade of a device is closely related to the released software versions. The corresponding upgrade guide is released with each new version and you can upgrade the device according to the guide. To obtain the upgrade guides, visit and download the upgrade guide based on the product name and version.

  • When the message "Start Memory Test ? ('t' or 'T' is test):" is displayed during the device startup, you can press T to start the memory detection.

  • For details about commands used for device upgrade, see "Basic Configurations Commands - Upgrade Commands" in the Huawei AR Series Access Routers Command Reference.

System Software

The device software includes BootROM software and system software. After the device is powered on, it runs the BootROM software to initialize the hardware and display the hardware parameters. Then the device runs the system software. The system software provides drivers and adaptation functions for hardware, and offers services features. The BootROM software and system software are prerequisite for device startup and operation, providing support, management, and services for the device.

A device upgrade includes BootROM software upgrade and system software upgrade.


The BootROM software is included in the system software package (.cc file) of the device. The BootROM software is automatically upgraded in system software upgrade.

Configuration File

A configuration file is a collection of command lines. The current configurations are saved in configuration files, and continue to take effect after the device restarts. You can view configurations in configuration files or upload the files to other devices to implement batch configuration.

A configuration file is in the text format and meets the following requirements:

  • The configuration file saves configuration commands.

  • Only non-default parameters are stored in the configuration file, which saves the space.

  • The commands used in the same command view form a section. Sections are separated by comment lines beginning with comment signs (#). The command under a comment sign is run in the system view. There can be one or multiple comment lines.

  • Sections are arranged in order of global configurations, interface-based configurations, protocol configurations, and user interface configurations.

  • The configuration file name extension must be .cfg or .zip. In addition, the configuration file must be saved to the root directory of the storage device.

The following table describes the factory configuration, configuration file and current configuration.




Factory configuration

The device is delivered with basic configurations so that it can start and work properly when there is no configuration file or the configuration file is lost or damaged. These configurations are called factory configurations.

Run the display factory-configuration command to check the factory configurations of the device.

Configuration file

When the device is powered on, the device reads the configuration file from the default directory to boot the system. Therefore, the configuration in the file is called the initial configuration. If no configuration file is stored in the default directory, the device uses the default parameters for initialization.

  • Run the display startup command to check the current and next startup configuration files.
  • Run the display saved-configuration command to check the configuration file for next startup.

Current configuration

The configurations that are valid during the device running are called current configurations.

Run the display current-configuration command to check the current configuration.

If you modify the current configuration and want to use the modified configuration as the next startup configuration, run the save command to save the new configuration to the default storage device.


If a command in incomplete form is configured, the system saves the command to the configuration file in its complete form, which may cause the command to have more than 510 characters. (The maximum length of a command supported by the system is 510 characters.) The incomplete command cannot be recovered after the system restarts.

Patch File

A patch is a kind of software compatible with the system software. It is used to remove a few issues in the software that need to be solved immediately. Patches can also fix errors or improve adaptation of the system software. For example, patches can fix defects of the system and optimize some functions to meet service requirements.

The patches are released in patch files. A patch file may contain one or more patches with different functions. When patch files are loaded from the storage device to the patch area in the memory, they are assigned unique sequence number for users to identify, manage, and operate the patches.

Patch classification

According to impact on services, patches can be classified into hot patch and cold patch.
  • Hot patch (HP): The services are not interrupted when the HP is loaded and activated, which reduces upgrade costs and eliminates upgrade risks.

  • Cold Patch (CP): You must restart the device for the CP to take effect. Services are interrupted during the restart.

According to patch dependency, patches can be classified into incremental and non-incremental patches.
  • An incremental patch is dependent on previous patches. A new patch file contains all the patch information in the previous patch file. You can install the patch file without uninstalling the original patch file.

  • A non-incremental patch is exclusive in the current system. To install another patch file when there is already one, uninstall the existing patch file, and then install and run the new patch file.


The currently released patches are hot patches and incremental patches. All the patches mentioned in the subsequent sections are hot patches and incremental patches unless otherwise specified.

Status of Patches

Each patch has its own state that can only be changed with command line.

Table 11-1 describes the patch status.

Table 11-1  Status of patches



Patch Status Transition


The patch file is saved to the storage device but has not been loaded to the patch area.

When a patch in the storage device is loaded to the patch area, the patch is in the running state.


When a patch is stored in the patch area and runs permanently, the patch is in the running state. If a board is reset, the running patch on the board remains in the running state.

You can unload the patch that is in the running state so that it can be deleted from the patch area.

Figure 11-1 shows patch status transition.

Figure 11-1  Patch status transition

Installing Patches

Installing patches is a way of upgrading a device. Patches can be installed in the following ways:

  • The hot patches are generally installed while the device is running without interrupting services. This is an advantage of hot patches.

    For details on how to install patches, see the corresponding patch installation guide. For details about commands used for device upgrade, see "Basic Configurations Commands - Upgrade Commands" in the Huawei AR Series Access Routers Command Reference.

  • Another way is to specify a patch file for next startup, which is described in this chapter. The patch file takes effect after the device reboots. The method is often used during a system upgrade.

Updated: 2019-08-08

Document ID: EDOC1100034066

Views: 84775

Downloads: 474

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