Configuration mode

Configuration mode allows you to perform multiple configuration tasks and validate the changes prior to saving them. You can cancel all changes without saving them at any time. Configuration changes do not take effect until the configuration is saved.

Enable configuration mode

To enable configuration mode, at the root prompt, enter the config command without any parameters:

> config
(config)>

When the command line is in configuration mode, the prompt will change to include (config), to indicate that you are currently in configuration mode.

Enter configuration commands in configuration mode

There are two ways to enter configuration commands while in configuration mode:

Save changes and exit configuration mode

To save changes that you have made to the configuration while in configuration mode, use save. The save command automatically validates the configuration changes; the configuration will not be saved if it is not valid. Note that you can also validate configuration changes at any time while in configuration mode by using the validate command.

(config)> save
Configuration saved.
>

After using save to save changes to the configuration, you will automatically exit configuration mode. To return to configuration mode, type config again.

Exit configuration mode without saving changes

You can discard any unsaved configuration changes and exit configuration mode by using the cancel command:

(config)> cancel
>

After using cancel to discard unsaved changes to the configuration, you will automatically exit configuration mode.