114
Specifying a startup configuration file to be used at the next system startup.
Startup with the configuration file
The device takes the following steps when it starts up:
1. If the main startup configuration file you specified exists, the device starts up with this configuration
file.
2. If the main startup configuration file you specified does not exist but the backup startup configuration
file exists, the device starts up with the backup startup configuration file.
3. If neither the main nor the backup startup configuration file exists, the device starts up with null
configuration.
Saving the running configuration
To make configuration changes take effect at the next startup of the device, save the running configuration to
the startup configuration file to be used at the next startup before the device reboots.
To save the current configuration:
Task Remarks
Enabling configuration file auto-save Optional
Selecting save mode for the configuration Required
Enabling configuration file auto-save
• With the configuration file auto-save function enabled, when you save the current configuration by
executing save [ safely ] [ backup | main ] [ force ] or executing save filename all and then pressing
Enter, the master and a subordinate automatically save the current configuration to the specified
configuration file, and use the file as the configuration file to be used at the next startup, keeping the
consistency of the configuration files on the master and the subordinate.
• If the configuration file auto-save function is not enabled, when you save the current configuration by
executing save [ safely ] [ backup | main ] or executing save filename all and then pressing Enter:
{ Only the master will automatically save the current configuration to the specified configuration file.
{ Using the file as the configuration file for the next startup; the subordinate switches will neither save
the configuration file nor configure the file for the next startup.
To configure the configuration file auto-save function:
Ste
Command
Remarks
1. Enter system view.
system-view —
2. Enable configuration file auto-save.
slave auto-update config
Optional.
Enabled by default.
Selecting save mode for the configuration file
• Fast saving mode—This is the mode when using save without the safely keyword. The file saves more
quickly but is likely to lose the existing configuration file if the device reboots or the power fails during
the process.