3Com Switch 4200G Configuration Guide
8
CONFIGURATION FILE MANAGEMENT
Introduction to
Configuration File
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”.
Configuration
File-Related
Configuration
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 Description
Save the current
configuration to a
specified configuration
file and specify the
configuration file to be
of the main or backup
attribute
save [ cfgfile | [ safely ] [
backup | main ]]
Optional
This command can be executed in
any view.
Erase the configuration
file in the Flash
reset saved-configuration [
backup | main ]
Optional
Specify that the
switch starts without
loading the
configuration file
undo startup
saved-configuration [ unit
unit-id ]
Optional