Huawei router configuration file management command

Source: Internet
Author: User



1.2.1downloadconfig
Load the configuration file through the vroconsole Console port.

Downloadconfig

Command mode]

Privileged user mode

User Guide]

It is recommended that you use this command under the guidance of technical support personnel. If you want to edit the vro configuration file offline, the technical staff or senior maintenance personnel should complete the umbrella? /P>

Note the following when editing the configuration file:

The vro configuration file consists of commands.
Each Command ends with a carriage return or line break. You cannot add a carriage return or line break to a command.
You can insert a comment line between the two commands and use! Is the beginning of the line.
The end of the configuration file is the end character.
Configuration file loading is performed by the user through the sending binary file function of the terminal simulation program. before sending the configuration file to the router, make sure that:

The downloadconfig command has been executed and the vro is waiting for loading. You can see in the terminal simulation program window that the vro regularly sends C characters to the terminal simulation program.
Set the binary transmission protocol of the terminal simulation program to Xmodem/CRC.
Select the correct configuration file for sending.
After the configuration file is successfully loaded, it cannot take effect immediately and must take effect only after the vro is restarted. If the wrong configuration file is loaded, the system will initialize it with the default parameter after the restart, you can use the erase command to erase or reload the incorrect configuration file in Flash.

Example]

Quidway # downloadconfig

Doyouwantreallydownloadtheconfig. ini? (Y/N) y

ChangeprotocoltoXmodemthensendtheselectedfile.

Downloading...

After loading is successful, the following message is displayed:

Downloadcompleted.

Writingtoflashmemory...

Writecompleted, pleasereboottherouter.

Related commands]

Write, erase, showrunning-config, showstartup-config

Erase
Erase the router configuration file in Flash.

1.2.2erase

Command mode]

Privileged user mode

User Guide]

If you execute this command with caution, you are advised to use it under the guidance of the technical support staff.

It is generally used in the following situations:

After the router software is upgraded, the Flash configuration file may not match the new version of the software. In this case, you can use the erase command to erase the old configuration file.
Use a vro that has been used in the new application environment. The original configuration file cannot meet the requirements of the new environment. You need to reconfigure the vro. In this case, you can erase the original configuration file and reconfigure it.
When the router is initialized, if no configuration file is found in Flash, the router is initialized with the default parameter. <
Example]

Quidway # erase

Thiswillerasetheconfigurationintheflashmemory.

Therouterconfigurationswillbeerasedtoreconfigure!

Areyousure? [Y/N] y

Related commands]

Write, downloadconfig, showrunning-config, showstartup-config

Showrunning-config
Displays the configuration parameters currently in effect for the vro.

1.2.3showrunning-config

Default condition]

Some configuration parameters that are in effect are not displayed if they are the same as the default working parameters.

Command mode]

Privileged user mode

User Guide]

After you complete a set of configurations, you can run the showrunning-config command to check the currently effective parameters, however, if the function of these parameters does not take effect, it is not displayed. For example, if an interface link layer encapsulates X.25, you can configure the PPP parameter on this interface, however, the PPP configuration information on this interface is not displayed when you execute show running-config.

Example]

Quidway # showrunning-config

!

Loghost129.191.240

Firewallenable

Snmp-servercontactMr.Wang-Tel: 3306

Snmp-servertrapsenable

Snmp-serverhost129.102.149.23

Snmp-serverlocationtelephone-closet, 3rd-flood

Hostliuzhen%129.102.157.55

Hostserver129.102.157.55

!

InterfaceEthernet0

Ipaddress129.102.100.141255.255.0.0

!

InterfaceSerial0

Baudrate9600

Encapsulationppp

Pppchaphostquidway

Ppppapsent-usernamequidwaypasswordquidway

!

InterfaceSerial1

Encapsulationppp

Pppchaphostquidway

Ppppapsent-usernamequidwaypasswordquidway

!

Interfaceserial

Flowcontrolnormal

Encapsulationppp

Pppchaphostquidway

Ppppapsent-usernamequidwaypasswordquidway

!

End

Related commands]

Write, erase, downloadconfig, showstartup-config

1.2.4showstartup-config
Display the vro configuration file in Flash, that is, the configuration file used when the vro is powered on next time.

Showstartup-config

Command mode]

Privileged user mode

User Guide]

If the router does not work properly after power-on, run the showstartup-config command to view the router STARTUP configuration.

Example]

Quidway # showstartup-config

The content is the same as showrunning-config.

Related commands]

Write, erase, downloadconfig, showrunning-config

1.2.5write
Save the current configuration file to Flash.

Write

Command mode]

Privileged user mode

User Guide]

When a set of configurations have been completed and the predefined functions have been reached, the current configuration file should be saved to Flash.

Example]

Quidway # write

Related commands]

Erase, downloadconfig, showrunning-config, showstartup-config





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.