You configure the JUNOS software by entering configuration mode and creating a hierarchy of configuration mode statements.
When you enter configuration mode, the following configuration mode commands are available:
user@host>configure
entering configuration mode
[edit]
user@host#?
possible completions: <[Enter]> Execute this command activate Remove the inactive tag from a statement annotate Annotate the statement with a comment commit Commit current set of changes copy Copy a statement deactivate Add the inactive tag to a statement delete Delete a data element edit Edit a sub-element exit Exit from this level help Provide help information insert Insert a new ordered data element load Load configuration from ASCII file quit Quit from this level rename Rename a statement replace Replace character string in configuration rollback Roll back to previous committed configuration run Run an operational-mode command save Save configuration to ASCII file set Set a parameter show Show a parameter status Show users currently editing configuration top Exit to top level of configuration up Exit one level of configuration wildcard Wildcard operations [edit] user@host>
Users must have configure permission to view and use the configure command. When in configuration mode, a user can view and modify only those statements for which they have access privileges set. For more information, see the JUNOS System Basics Configuration Guide.
user@host> configure Entering configuration mode Users currently editing the configuration: root terminal d0 (pid 4137) on since 2008-04-09 23:03:07 PDT, idle 7w6d 08:22 [edit] The configuration has been changed but not committed [edit] user@host#
Up to 32 users can be in configuration mode simultaneously, and they all can make changes to the configuration at the same time. For more information, see When Multiple Users Configure the Software.
- [edit protocols ospf area 0.0.0.0 interface so-0/0/0]
- user@host# exit configuration-mode
- exiting configuration mode
- user@host>
- [edit]
- user@host# exit
- exiting configuration mode
- user@host>
If you try to exit from configuration mode using the exit command and the configuration contains changes that have not been committed, you see a message and prompt:
- [edit]
- user@host# exit
- The configuration has been changed but not committed
- Exit with uncommitted changes? [yes,no] (yes) <Enter>
- Exiting configuration mode
- user@host>
- [edit]
- user@host# exit configuration-mode
- The configuration has been changed but not committed
- Exiting configuration mode
- user@host>