Decompilation Configuration

Decompilation Configuration Overview

Device configuration can be performed in two ways. The first is called the default configuration, that does not require user configuration. After the DUT is powered on for the first time, or after the startup configuration is cleared, the existing configurations, such as the admin user, ensure that the DUT satisfies the simple usage environment. The second configuration is to increase or modify the configuration, such as creating vlan 2, modifying pvid = 2.

Device configuration can be classified into three types based on the method of saving:

  • Temporary Cache Configuration - Also called Current Running configuration, this configuration does not exist after the DUT restarts.

  • Startup Configuration - This configuration can be loaded either automatically or manually after the DUT is restarted.

  • Flash Configuration - In this configuration, a small number of particularly important configurations will be saved directly to the flash: such as stacking configuration, user name configuration; stacking configuration will not enter the decompilation, that is, it will not be displayed in the show running-config command output, it can only be displayed by the show module command. User name configuration will enter the decompilation, that is, it will be displayed in the show running-config command output, as well as by the show module command. The configuration in flash is permanent and does not need to be saved with commands. To delete the flash configuration, use the no form of the corresponding command in the module.

Basic Commands for Decompilation

Command

Description

show running-config [ module | interface ethernet port-num]

Displays the decompilation of the current configuration.

show startup-config [ module ]

Displays the startup configuration.

copy running-config startup-config

Saves the current configuration to the startup configuration.

copy startup-config running-config

Loads the boot configuration at the command line.

clear startup-config

Clears the startup configuration.

  • Loading the startup configuration at reboot:

    During the restart process, the default is to load the configuration automatically after 6 seconds. Press Enter according to the prompt message to load immediately.

    To not load the startup configuration at reboot, press Ctrl + C according to the prompt message during the restart process.

Configuring the Switchover of File Execution Mode

You can change the execution mode of the configuration file through the command line interface. The system-saved configuration file can be executed in both interruptible and non-interruptible modes. When an error is encountered while executing the configuration file, execution in the interruptible mode stops immediately and echoes the error. In non-interruptible mode, execution is not stopped, the error is echoed, and the configuration file continues execution. The default is non-interruptible mode.

To configure the file execution mode switchover, perform the following steps:

SUMMARY STEPS

  1. enable
  2. buildrun mode stop
  3. buildrun mode continue

DETAILED STEPS

  Command or Action Purpose
Step 1

enable

Example:

Device> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2

buildrun mode stop

Example:

Device# buildrun mode stop

Sets the execution mode to interruptible.

Step 3

buildrun mode continue

Example:

Device# buildrun mode continue

Sets the execution mode to non-interruptible.

Configuration Examples for Decompilation

The following example shows how to view the decompilation of the current configuration:

Device# show running-config 
!LanSwitch BuildRun
enable
configure terminal
![DEVICE]
interface ethernet 0/1
exit
interface ethernet 0/2
exit
interface ethernet 0/3
exit
interface ethernet 0/4
exit
interface ethernet 0/5
exit
interface ethernet 0/6
exit
interface ethernet 0/7
exit
interface ethernet 0/8
exit
…………

The following example shows how to save the current configuration to the startup configuration:

Device# copy running-config startup-config 
Startup config in flash will be updated, are you sure(y/n)? [n]y   
Building, please wait...
Update startup config successfully.

The following example shows how to use the startup configuration:

Device# copy startup-config running-config 
Running config will be updated, are you sure(y/n)? [n]y
Start to load startup-config, please wait for a while ...
Load successfully.