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.

Solution<br />

Use the following command to commit the configuration changes provisionally:<br />

[edit]<br />

aviva@router1# commit confirmed<br />

commit confirmed will be automatically rolled back in 10 minutes unless confirmed<br />

commit complete<br />

To make the provisional activation permanent, issue the following command:<br />

[edit]<br />

aviva@router1# commit<br />

commit complete<br />

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

When you need to verify that a new or modified configuration is working properly—<br />

and especially if the changes might lock you out of the router—you can provisionally<br />

commit it using the commit confirmed command.<br />

By default, the commit confirmed command activates the configuration for 10 minutes.<br />

Within this time, you must explicitly confirm that the configuration is<br />

acceptable—either by issuing another commit command or by entering the commit<br />

check command—to make the provisional activation permanent. If you do not, the<br />

router loads and activates the previous configuration when 10 minutes have passed.<br />

You have to keep track of the time yourself, because the CLI doesn’t warn you when<br />

it is expiring. The CLI displays a message if you do not confirm the commit when<br />

returning to the previous configuration:<br />

Broadcast Message from root@router1<br />

(no tty) at 15:05 PDT...<br />

Commit was not confirmed; automatic rollback complete.<br />

When working on a production router, if you are concerned that the change you are<br />

making might not go as expected, specify an interval of less than 10 minutes. If you<br />

are quite worried, one minute might be as long as you want to wait:<br />

[edit]<br />

aviva@router1# commit confirmed 1<br />

commit confirmed will be automatically rolled back in 1 minutes unless confirmed<br />

commit complete<br />

1.17 Loading a Previous Router Configuration<br />

Problem<br />

You need to undo the active router configuration and return to a previous configuration.<br />

40 | Chapter 1: Router Configuration and File Management<br />

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

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!