Example for Managing Configuration Files

This example shows you how to save configurations and set the configuration file to be loaded at the next startup.

Networking Requirements

As shown inFigure 1, the user logs in to the router to manage configuration files.

Figure 1 Managing configuration files

Precautions

None

Configuration Roadmap

The configuration roadmap is as follows:

  1. Modify configurations.

  2. Save configurations in a configuration file.

  3. Specify the configuration file to be loaded at the next startup.

  4. After a system upgrade, compare the current running configurations with those defined in the configuration file to be loaded at the next startup to check whether configurations are lost.

Procedure

  1. Modify configurations.

    For example, enable the FTP server function.

    <HUAWEI> system-view
    [~HUAWEI] ftp server enable
    [*HUAWEI] commit
    [~HUAWEI] quit

  2. Save configurations to the configuration file vrpcfg.cfg.

    <HUAWEI> save vrpcfg.cfg
    Warning: Are you sure to save the configuration to vrpcfg.cfg? [Y/N]: y
    

  3. Specify the configuration file to be loaded at the next startup.

    <HUAWEI> startup saved-configuration vrpcfg.cfg

  4. After a system upgrade, compare the current running configurations with those defined in the configuration file to be loaded at the next startup to check whether configurations are lost.

    <HUAWEI> compare configuration
    The current configuration is the same as the next startup configuration file.

Configuration Files

  • router configuration file

    # 
    sysname HUAWEI 
    # 
     ftp server enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic