8
Introduction to
Configuration File
Configuration
File-Related
Configuration
C
ONFIGURATION FILE MANAGEMENT
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:
The content of a configuration files is a series of commands.
■
Only the non-default configuration parameters are saved.
■
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 "#".)
The sections are listed in this order: system configuration section, physical port
■
configuration section, logical interface configuration section, routing protocol
configuration section, and so on.
A configuration file ends with a "return".
■
You can perform the following operations on an S4200G series switch:
Saving the current configuration to a configuration file or erasing a configuration
■
file in the Flash
Checking/Setting the configuration file to be used when the switch starts the next
■
time
Setting a configuration file to be of the main/backup attribute
■
Perform the following configuration in user view.
Table 30 Configure a configuration file
Operation
Command
Save the current
save [ cfgfile | [ safely ] [
configuration to a
backup | main ] ]
specified configuration
file and specify the
configuration file to be
of the main or backup
attribute
Erase the configuration
reset saved-configuration [
file in the Flash
backup | main ]
pecify that the
S
undo startup
switch starts without
saved-configuration [ unit
loading the
unit-id ]
configuration file
Description
Optional
This command can be executed in
any view.
Optional
Optional