Configuration File Management 51
Tabl e 25 Select and view the storage media of configuration file
If there is only one type of storage media available, the configfile command will
not be effective.
Modify and Save
Current Configuration Users can modify the current configuration of the router via the command line
interface. To save the current configuration as initial configuration for the next
power-on, use the save command to save the current configuration in Flash or
NVRAM, which will be decided by the configfile command.
Please use the following command in system view.
Tabl e 26 Save current configuration
Erase Configuration File
in Storage Media The delete command can be used to delete the configuration file in Flash or
NVRAM of the router. After deleting the configuration files, the router will use the
default configuration parameters for initialization during the next power-on. The
configuration file in Flash or NVRAM can be deleted in the following cases:
After upgrading, if the router software does not match with the configuration
file.
If the configuration file in Flash or NVRAM is damaged, for example, the wrong
configuration file is loaded.
Please use the following command in system view.
Tabl e 27 Erase the configuration file in storage media.
Set the Flag Bit to Enter
the Initial Setup Mode first-config set is used to set the flag bit of the initial setup. After the flag bit
is set, the router will delete the config files in Flash or NVRAM before the system
enters setup mode, in case of powering off, and reset. The operation is similar to
the delete command.
first-config reset is used to cancel the setting of the flag bit.
Do not use this command before the save command, which also cancels the
setting of the flag bit.
Use these commands in system view.
Operation Command
Select the storage media of configuration file (in system
view) configfile { flash |
nvram }
View the storage media type of current configuration file
(in all view) display configfile
Operation Command
Save current configuration save
Operation Command
Erase the configuration file in storage media delete