Run the reset saved-configuration command to clear the next startup configuration file and cancel the configuration file used for next startup. The default device configurations are restored.
If the current configuration file is empty, and the configuration file for the next startup is not empty, running the reset saved-configuration command clears the settings for the configuration file for the next startup.
If the configuration file for next startup is empty, and the current configuration file is not empty, after the reset saved-configuration command is run, the system prompts an error and no settings are cleared.
For details, see Table 1.
View |
Command |
Description |
Precautions |
---|---|---|---|
System view |
clear configuration interface interface-type interface-number |
Deletes the configuration information on the specified interface or restores the default settings. Make sure that the command is run in the system view and the specified interface type and number are correct. Otherwise, the configuration information on other interfaces may be deleted and services are interrupted. |
Deleting configurations on an interface causes the interface to be shut down. Therefore, exercise caution when running the two commands. |
Interface view |
clear configuration this |
Deletes the configuration information on the current interface or restores the default settings. The command is directly run in the interface view, which simplifies the operation.
NOTE:
You cannot run this command in the tunnel or stack-port interface view. |
Run system-view
The system view is displayed.
Run clear inactive-configuration all
Inactive configurations on the switch are cleared.