H3C S3100-52P Ethernet Switch Operation Manual-Release 1500(V1.02)

HomeSupportSwitchesH3C S3100 Switch SeriesConfigure & DeployConfiguration GuidesH3C S3100-52P Ethernet Switch Operation Manual-Release 1500(V1.02)
03-Configuration File Management Operation
Title Size Download
03-Configuration File Management Operation 41.34 KB

Chapter 1  Configuration File Management

1.1  Introduction to Configuration File

A 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 performs initialization 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 file 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, physical port configuration section, logical interface configuration section, routing protocol configuration section, and so on.

l           A configuration file ends with a “return”.

1.2  Configuration File-Related Operations

You can perform the following operations on an S3100-52P Ethernet 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

l           Setting a configuration file to be the primary/secondary configuration file

Perform the following configuration in user view.

Table 1-1 Configure a configuration file

Operation

Command

Description

Save the current configuration to a specified configuration file and specify the configuration file to be the primary/secondary configuration file

save [ cfgfile | [ safely ] [ backup | main ] ]

Optional

The save command can be executed in any view.

Remove a specific configuration file from the Flash

reset saved-configuration [ backup | main ]

Optional

Specify the name and attribute of the configuration file to be used in the next startup

startup saved-configuration cfgfile [ backup | main ]

Optional

By default, the switch uses the main configuration file in the next startup.

Specify that the switch starts without loading the configuration file

undo startup saved-configuration [ unit unit-id ]

Optional

Display the primary configuration file

display saved-configuration [ unit unit-id ] [ by-linenum ]

Optional

The display command can be executed in any view.

Display the current configuration

display current-configuration [ configuration [ configuration-type ] | interface [ interface-type ] [ interface-number ] | vlan [ vlan-id ] ] [ by-linenum ] [ | { begin | include | exclude } regular-expression ]

Display the configuration performed in the current view

display this [ by-linenum ]

Display the information about the configuration file to be used for startup.

display startup [ unit unit-id ]

 

  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           If the safely keyword is not provided, the system saves the configuration files in the fast 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           If the safely keyword is provided, the system saves the configuration files in the safe 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.

 

&  Note:

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.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网