Navigate
VyOS
  • Register

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

Exit (command)

Dmitriy Eshenko
2019-10-01
0 Comments
in CLI Reference

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]
vyos@vyos-rtr# exit
[edit]
vyos@vyos-rtr#

Exiting from configuration mode:

[edit]
vyos@vyos-rtr# exit
exit
vyos@vyos-rtr:~$

Exiting from operational mode:

vyos@vyos-rtr:~$ exit
logout

Error message when trying to exit with uncommitted changes:

vyos@vyos-rtr# exit
Cannot exit: configuration modified.
Use 'exit discard' to discard the changes and exit.
[edit]
vyos@vyos-rtr#

Warning message when exiting with unsaved changes:

[edit]
vyos@vyos-rtr# exit
Warning: configuration changes have not been saved.
exit
vyos@vyos-rtr:~$

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