CLI Configuration Mode ! 651
Appendix A: Command-Line Interface Overview
Saving a Configuration to a File
To save the configuration to a text (ASCII) file so that you can edit it with a text
editor of your choice, use the
save configuration mode command. By default, the
configuration is saved to that file in your home directory, which is on the flash disk.
[edit]
user@host# save filename
Wrote 475 lines of configuration to '
filename
'
Returning to a Previously Committed Configuration
To return to a previously committed configuration, you can do the following:
! Returning to the Most Recently Committed Configuration on page 651
! Activating the Configuration You Loaded on page 651
! Returning to a Configuration Prior to the Most Recently Committed One on
page 651
! Displaying Previous Configurations on page 652
Returning to the Most Recently Committed Configuration
To return to the most recently committed configuration and load it into
configuration mode without activating it, use the
rollback configuration mode
command:
[edit]
user@host# rollback
load complete
Activating the Configuration You Loaded
To activate the configuration that you loaded, use the
commit command:
[edit]
user@host# rollback
load complete
[edit]
user@host# commit
Returning to a Configuration Prior to the Most Recently Committed One
To return to a configuration prior to the most recently committed one, include the
number in the
rollback command. number can be a number in the range 0 through
9. The most recently saved configuration is number 0 (which is the default
configuration to which the system returns), and the oldest saved configuration is
number 9.
[edit]
user@host# rollback number
load complete