Viewing, applying, reverting, and saving changes
As you use the configuration menus to set switch parameters, the changes you make do not take effect immediately. All changes are considered pending until you explicitly apply them. Also, any changes are lost the next time the switch boots unless the changes are explicitly saved.
While configuration changes are in the pending state, you can:
•View the pending changes
•Apply the pending changes
•Revert to restore configuration parameters set with the last apply command
•Save the changes to flash memory
Viewing pending changes
You can view all pending configuration changes by entering diff at any CLI prompt:
# diff
You can view all pending configuration changes that have been applied but not saved to flash memory by entering diff flash at any CLI prompt:
# diff flash
Applying pending changes
To make your configuration changes active, you must apply them. To apply configuration changes, enter the following command at any prompt:
# apply
NOTE: All configuration changes take effect immediately when applied.
Reverting changes
The revert command removes configuration changes that have been made, but not applied. Enter revert apply to remove all changes that have not been saved:
# revert
Saving the configuration
In addition to applying the configuration changes, you can save them to flash memory on the switch.
IMPORTANT: If you do not save the changes, they will be lost the next time the system is rebooted.
To save the new configuration, enter the following command at any prompt:
# save
When you save configuration changes, the changes are saved to the active configuration block. The configuration being replaced by the save is first copied to the backup configuration block. If you do not want the previous configuration block copied to the backup configuration block, enter the following instead:
# save n
You can decide which configuration you want to run the next time you reset the switch. Your options include:
•The active configuration block
•The backup configuration block
•Factory default configuration block
Configuration Menu 89