28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

If PIM is not yet configured, merge it into the existing configuration:<br />

aviva@router1> configure<br />

Entering configuration mode<br />

[edit]<br />

aviva@router1# load merge terminal<br />

[Type ^D at a new line to end input]<br />

cut and paste here to add the lines shown below<br />

protocols {<br />

pim {<br />

interface all {<br />

mode sparse;<br />

version 2;<br />

}<br />

interface fxp0.0 {<br />

disable;<br />

}<br />

}<br />

}<br />

^D<br />

load complete<br />

First type the load merge terminal command and press Enter. Then paste the copied<br />

text and press Ctrl-d when done. This snippet starts at the top level of the configuration,<br />

[edit protocol], so you can drop it in with no typing. If the snippet is at a<br />

lower level, you either need to move down to that hierarchy level in the configuration<br />

(using the edit configuration mode command) or type in the opening hierarchy<br />

statements and closing braces yourself. If the PIM configuration you have is just the<br />

two interface commands and you are at the [edit] level, you need to type opening<br />

lines for protocols { and pim { and two lines of closing braces:<br />

[edit]<br />

aviva@router1# load merge terminal<br />

[Type ^D at a new line to end input]<br />

protocols {<br />

pim {<br />

type your paste command here to paste the lines shown below<br />

interface all {<br />

mode sparse;<br />

version 2;<br />

}<br />

interface fxp0.0 {<br />

disable;<br />

}<br />

}<br />

}<br />

^D<br />

load complete<br />

If you forget to include the proper number of closing braces, the CLI displays an error.<br />

Configuring the Router by Copying Text from a Terminal Window | 33<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!