# Config Management

### 1. Function Overview

This product uses the following config information to maintain the value of settings.

Config type | Description | User operations possible
--- | --- | ---
Running config (running-config) | The currently-running setting values. Managed in RAM. | View / Save to startup config
Startup config (startup-config) | Saved setting values. Managed in ROM. | View / Delete
Default config (default-config) | The default setting values. Managed in ROM. | No operations possible

### 2. Definition of Terms Used

None

### 3. Function Details

#### 3.1. Running config

running-config is the settings that are currently operating; since it is maintained in RAM, it is destroyed at reboot.
On this product, commands executed in configuration mode are immediately applied to running-config, and the unit operates according to these settings.
The contents of running-config can be viewed by using the show running-config command.

#### 3.2. Startup config

startup-config is settings that are saved in flash ROM, and the contents are preserved through reboot.
When this product is started, the settings of startup-config are applied as the initial settings of running-config.

If you attempt to start up in a state where startup-config does not exist, such as after executing the cold start command, the default-config is automatically applied.

The running-config settings can be saved in startup-config by the copy running-config startup-config command or the write command.
This product can only store one startup config on the flash ROM.
If a startup config exists and you save a new startup config, the old startup config will be overwritten.
The contents of startup-config can be erased by the erase startup-config command and viewed by the show startup-config command.

#### 3.3. Default config

default-config contains settings saved in internal flash ROM that are needed for this product to operate minimally as a switch. Like startup-config, the contents are preserved even after a restart.
The factory settings are maintained as default-config.
If startup-config does not exist when the system starts, default-config is copied to startup-config, and applied to running-config.
The contents of default-config cannot be viewed.

#### 3.4. Deciding the config file at startup

The following describes the flow for deciding the config file used when this product starts up.

1. If the startup-config exists, the corresponding data is applied as running-config in RAM.

2. If startup-config does not exist in ROM, default-config is applied as running-config in RAM.

#### 3.5. Controlling the config file via TFTP

If this product’s TFTP server function is enabled, a TFTP client installed on a PC or other remote terminal can be used to perform the following.

1. Acquire the currently running running-config and startup-config

2. Apply previously prepared settings files as running-config and startup-config

In order for the TFTP server to function correctly, an IP address accessible to this product must be specified.
The settings files can be acquired/set from a remote terminal in binary mode. Specify the following as the remote path of the acquisition source/transmission destination of the settings files.

Settings file to be acquired/set | Remote path of the acquisition source/transmission destination
--- | ---
running-config | config
startup-config # 0 | config0
startup-config # 0 (config only) | reconfig (destination only)

- The startup-config settings are applied as running-config after the system is restarted.

- If you specify “reconfig” as the destination remote path, this product will automatically restart after receiving the settings file.

### 4. Related Commands

Related commands are indicated below.
For details, refer to the Command Reference.

Operations | Operating commands
--- | ---
Save running config | copy running-config startup-config
Save running config | write
Erase startup config | erase startup-config
Show startup config | show startup-config

### 5. Examples of Command Execution

#### 5.1. Save running config

Save running-config.

    Yamaha#copy running-config startup-config
    Building configuration...
    [OK]
    Yamaha#

#### 5.2. Erase startup config

Erase startup-config.

    Yamaha#erase startup-config (1)
    erasing...[OK]
    Yamaha#

1 | Erase startup-config

### 6. Points of Caution

None

### 7. Related Documentation

None

Search result
No more search results.
There are no topics that match your search query.