Navigate
VyOS
Phone +1 323 488 2459
menu Close
  • Knowledgebase
  • News
  • Downloads
  • Contact Us
  • Register

  • or
  • Login
    Need a password reminder?
  • English
    Español
or
  • Portal
  • Knowledgebase
  • General
  • CLI Reference
  • Exit (command)
  • Knowledgebase Read help articles
  • News News & updates
  • Downloads Browse our downloads
  • Contact Us We are here to help

Exit (command)

Dmitriy Eshenko
2021-09-21
0 Comments
in CLI Reference
Subscribe Download PDF

The exit command exits the current configuration mode. If the current configuration level isn't the top-most, then the configuration level is put back to the top-most level. If the configuration level is at the top-most level, then it exits the configuration mode and returns to operational mode. The exit command cannot be used if uncommitted changes exists in the configuration file. To exit with uncommitted changes, you either need to use the exit discard command or you need to commit   the changes before exiting. The exit command doesn't save the configuration, only the save command does. A warning will be given when exiting with unsaved changes. Using the exit command in operational mode will logout the session.

Syntax

Exiting from a configuration level:

[edit interfaces ethernet eth0]
[email protected]# exit
[edit]
[email protected]#

Exiting from configuration mode:

[edit]
[email protected]# exit
exit
[email protected]:~$

Exiting from operational mode:

[email protected]:~$ exit
logout

Error message when trying to exit with uncommitted changes:

[email protected]# exit
Cannot exit: configuration modified.
Use 'exit discard' to discard the changes and exit.
[edit]
[email protected]#

Warning message when exiting with unsaved changes:

[edit]
[email protected]# exit
Warning: configuration changes have not been saved.
exit
[email protected]:~$

Quick Jump
  • Knowledgebase
  • News
  • Downloads
  • Contact Us
Top
Helpdesk software provided by Deskpro