106
Configuration file management
The device provides the configuration file management function. You can manage configuration files on
the user-friendly command line interface (CLI).
Configuration file overview
A configuration file saves the device configurations as a set of text commands. You can save the current
configuration to a configuration file so that the configuration takes effect after you reboot the device. In
addition, you can view the configuration information conveniently, or upload or download the
configuration file to or from another device.
Types of configuration
The device maintains the following types of configurations: factory default configuration, startup
configuration, and running configuration.
Factory default configuration
Devices are shipped with some basic settings, which are called factory default configuration. These
default settings make sure that a device can start up and run normally when it has no configuration file
or the configuration file is damaged.
To view the factory default configuration of the device, you can use the
display default-configuration
command.
NOTE:
Factory default configuration may differ from the default settings of commands and vary with switch
models.
Startup configuration
Use startup configuration for initialization when the device boots. If this file does not exist, the system
boots using the factory default configuration.
You can view the startup configuration in either of the following ways:
•
Use the
display startup
command to view the currently using startup configuration file, and use the
more
command to view the content of the configuration file.
•
After the reboot of the device and before configuring the device, use the
display
current-configuration
command to view the startup configuration.
Running configuration
The currently running configuration may include the startup configuration if the startup configuration is
not modified during system operation. It also includes any new configurations performed by users during
device operation.
The running configuration is stored in a temporary storage media of the device. You must save a setting
you have made so it can survive a reboot.
You can use the
display current-configuration
command to view the current configuration.