Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Show Page Sections

CLI command modes

The different command modes in the Vyatta NOS CLI and how to switch between them.

The Vyatta NOS CLI has two command modes: operational mode and configuration mode.

Operational mode
Note: The command prompt for this mode takes this form: user@system:~$

This mode is active when you log into the Vyatta NOS system. It offers operational commands that allow you to:

  • Show or clear information
  • Enable or disable debugging
  • Configure terminal settings
  • Load or save a configuration
  • Restart the system
Configuration mode
Note: The command prompt for this mode takes this form: user@system#

Switch to this mode when you want to use commands to:

  • Create, modify, delete or commit configuration information
  • Navigate through the configuration hierarchy

Switch to configuration mode

How to switch from operational mode to configuration mode in the Vyatta NOS CLI.

At the operational mode prompt, use the configure command to switch from operational mode to configuration mode.
user@system:~$ configure
[edit]
user@system#
Notice that the command prompt changes to the configuration mode form #.

Switch to operational mode

How to exit configuration mode in the Vyatta NOS CLI, to return to operational mode.

Note: If there are uncommitted configuration changes then you will not be able to exit configuration mode. You must first commit the changes with the commit command — or you can discard the changes and exit in one operation with the exit discard command.
At the configuration mode prompt, use the exit command to exit this mode and return to operational mode.
user@system# exit
exit
user@system:~$
Notice that the command prompt changes to the operational mode form :~$.