Use the CLI Editor in Configuration Mode
This topic describes basic commands that you can use to enter configuration mode in the CLI editor. The topic also describes commands that you use to navigate the configuration hierarchy, get help, and commit or revert the changes that you make during the configuration session.
Task |
Command/Statement |
Example |
---|---|---|
Edit Your Configuration | ||
Enter configuration mode. When you start the CLI, the device is in operational mode. You must explicitly enter
configuration mode. When you do, the CLI prompt changes from
|
configure |
user@host> [edit] user@host# |
Create a statement hierarchy. You can use the |
edit hierarchy-level value |
[edit]
user@host# [edit security zones security-zone myzone] user@host# |
Create a statement hierarchy, and set identifier values. The |
set hierarchy-level value |
[edit]
user@host# [edit] user@host# |
Navigate the Hierarchy | ||
Navigate down to an existing hierarchy level. |
edit hierarchy-level |
[edit]
user@host# [edit security zones] user@host# |
Navigate up one level in the hierarchy. |
up |
[edit security zones]
user@host# [edit security] user@host# |
Navigate to the top of the hierarchy. |
top |
[edit security zones]
user@host# [edit] user@host# |
Commit or Revert Changes | ||
Commit your configuration. |
commit |
[edit]
user@host# commit complete |
Roll changes back from the current session. Use the |
rollback |
[edit]
user@host# load complete |
Exit Configuration Mode | ||
Commit the configuration, and exit configuration mode. |
commit and-quit |
[edit] user@host# commit and-quit user@host> |
Exit configuration mode without committing your configuration. You must navigate to the top of the hierarchy using the |
exit |
[edit]
user@host# The configuration has been changed but not committed Exit with uncommitted changes? [yes,no] (yes) |
Get Help | ||
Display a list of valid options for the current hierarchy level. |
? |
[edit ]
user@host# Possible completions: <[Enter]> Execute this command > functional-zone Functional zone > security-zone Security zones | Pipe through a command [edit] |