28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

In this example, the error is in the RIP routing protocol, and this error is flagged by the<br />

software process (the JUNOS term for a Unix daemon) that checks the configuration.<br />

1.9 Exiting Configuration Mode<br />

Problem<br />

After you have completed making changes to the configuration, you want to activate<br />

the configuration and return to operational mode.<br />

Solution<br />

From the top hierarchy level, activate the configuration and exit configuration mode:<br />

[edit]<br />

aviva@router1# commit<br />

aviva@router1# quit<br />

aviva@router1><br />

From a lower level in the hierarchy, commit and exit configuration mode:<br />

[edit system]<br />

aviva@router1# commit<br />

aviva@router1# top<br />

[edit]<br />

aviva@router1# quit<br />

aviva@router1><br />

The following command is a quicker variation:<br />

[edit system]<br />

aviva@router1# commit<br />

aviva@router1# exit configuration-mode<br />

aviva@router1><br />

From any hierarchy level, activate the configuration and exit configuration mode<br />

with a single command:<br />

[edit system]<br />

aviva@router1# commit and-quit<br />

aviva@router1><br />

<strong>Discussion</strong><br />

The commands in this recipe show several variations of quitting configuration mode<br />

after you have committed a configuration. If you issue separate commit and quit (or<br />

exit) commands, you must be at the top level of the hierarchy (at the [edit] level)<br />

for the exit command to quit configuration mode. From a lower level, use the top<br />

command to return quickly to the [edit] level. If you use the exit command at a<br />

lower level, it returns you to the highest hierarchy from which you previously issued<br />

an edit command.<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Exiting Configuration Mode | 25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!