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.

1.13 Configuring the Router by Copying Text<br />

from a Terminal Window<br />

Problem<br />

You have a portion of a router configuration displayed in another window on your<br />

terminal or computer and you want to copy it to another router and activate it.<br />

Solution<br />

Use the load merge terminal command:<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 />

Then, cut the configuration snippet and paste it here. When you are done, type Ctrl-d.<br />

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

A time-saver when configuring the router is to cut the configuration text from one<br />

window on your computer and paste it into the router’s terminal window with the<br />

load merge terminal command. This is a great technique when you are copying configuration<br />

text from a browser or email window or when you are propagating identical<br />

or similar configurations from one router to another. To illustrate with a simple<br />

example, suppose you are configuring PIM-SM on all routers and are copying the<br />

configuration from a browser window. Here’s the configuration in the browser:<br />

protocols {<br />

pim {<br />

interface all {<br />

mode sparse;<br />

version 2;<br />

}<br />

interface fxp0.0 {<br />

disable;<br />

}<br />

}<br />

}<br />

Copy the text from the browser window; then, in the router’s configuration window,<br />

go into configuration mode, move to the correct configuration hierarchy<br />

level, and paste the text.<br />

32 | 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!