1-2 
z  When setting the configuration file for next startup, you can specify to use the main or backup 
configuration file. 
Startup with the configuration file 
When booting, the system chooses the configuration files following the rules below: 
1)  If the main configuration file exists, the device initializes with this configuration. 
2)  If the main configuration file does not exist but the backup configuration file exists, the device 
initializes with the backup configuration. 
3)  If neither the main nor the backup configuration file exists, if the default configuration file config.def 
exists, the switch initializes with the default configuration file; if the default configuration file does 
not exist, the switch starts up without loading the configuration file. 
Management of Configuration File 
Table 1-1 Complete these tasks to configure configuration file management 
Task  Remarks 
Saving the Current Configuration  Optional 
Erasing the Startup Configuration File  Optional 
Specifying a Configuration File for Next Startup  Optional 
 
Saving the Current Configuration 
You can modify the configuration on your device at the command line interface (CLI). To use the 
modified configuration for your subsequent startups, you must save it (using the save command) as a 
configuration file. 
Table 1-2 Save current configuration 
Operation  Command  Description 
Save current 
configuration 
save [ cfgfile | [ safely ]  [ backup | 
main ] ] 
Required 
Available in any view 
 
Modes in saving the configuration 
z  Fast saving mode. This is the mode when you use the save command without the safely keyword. 
The mode saves the file quicker but is likely to lose the original configuration file if the device 
reboots or the power fails during the process. 
z  Safe mode. This is the mode when you use the save command with the safely keyword. The mode 
saves the file slower but can retain the original configuration file in the device even if the device 
reboots or the power fails during the process.