Configuration file records and stores user
configurations performed to a switch. It also enables users to check switch
configurations easily.
Upon powered on, a switch loads the
configuration file known as saved-configuration file, which resides in the
Flash, for initialization. If the Flash contains no configuration file, the
system initializes using the default settings. Comparing to saved-configuration
file, the configuration file which is currently adopted by a switch is known as
the current-configuration.
A configuration file conforms to the
following conventions:
l
The content of a configuration files is a series
of commands.
l
Only the non-default configuration parameters
are saved.
l
The commands are grouped into sections by
command view. The commands that are of the same command view are grouped into
one section. Sections are separated by empty lines or comment lines. (A line is
a comment line if it starts with the character “#”.)
l
The sections are listed in this order: system
configuration section, logical interface configuration section, physical port
configuration section, routing protocol configuration section, and so on.
l
A configuration file ends with a
“return”.
You can perform the following operations on
an S7500 series switch:
l
Saving the current configuration to a
configuration file
l
Removing a configuration file from the Flash
l
Checking/Setting the configuration file to be
used when the switch starts the next time
Perform the following configuration in user
view.
Table 1-1
Configure a configuration file
|
Operation
|
Command
|
Description
|
|
Save the current configuration in Flash
|
save [ file-name
| safely ]
|
Optional
|
|
Remove a specific configuration file from
the Flash
|
reset saved-configuration
|
Optional
|
|
Specify the configuration file to be used
in the next startup
|
startup saved-configuration
{ cfgfile | device-name }
|
Optional
|
|
Display the primary configuration file
|
display saved-configuration
|
Optional
You can execute the display
command in any view.
|
|
Display the current configuration
|
display current-configuration
[ [ controller | interface [ interface-type [ interface-number
] ] | configuration [ configuration ] ] [ | { begin
| exclude | include } text ] ] | [ vlan [ vlan-id
] ]
|
|
Display the configuration performed in
the current view
|
display this
|
|
Display the information about the configuration
file to be used for startup.
|
display startup
|
Caution:
Currently, the
extension of a configuration file is cfg. Configuration files are saved in the
root directory of the Flash.
In the following conditions, it may be necessary
for you to remove the configuration files from the Flash:
l
The system software does not match the
configuration file after the software of the Ethernet switch is updated.
l
The configuration files in the Flash are
damaged. The common reason is that wrong configuration files are loaded.
You can save the current configuration
files in one of the following two ways:
l
Fast saving mode: if the safely keyword is not provided, the system saves
the configuration files in the fast saving mode. In this mode, the
configuration files are saved fast. However, the configuration files will be
lost if the device is restarted or the power is off when the configuration
files are being saved.
l
Safely saving mode: if the safely keyword is provided, the system saves the
configuration files in the safely saving mode. In this mode, the configuration
files are saved slowly. However, the configuration files will be saved in the
Flash if the device is restarted or the power is off when the configuration
files are being saved.
You are recommended to adopt the fast
saving mode in the conditions of stable power and adopt the safe mode in the
conditions of unstable power or remote maintenance.
l
You are recommended to use the save command
to save the configuration before restarting a device, so that the current
configuration remains after the device is restarted.
l
If you use the save command to save the
current configuration file without specifying any option, the configuration
file is saved as the name of the configuration file used in this start. If the
device is started using the default configuration file this time, the current
configuration file is saved as the name of the default configuration file.