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.

Solution<br />

Add the new interface to the router configuration but keep it deactivated:<br />

[edit interfaces]<br />

aviva@router1# set ge-1/1/0 unit 0 family inet address 172.19.121.3/24<br />

aviva@router1# set ge-1/1/0 description "172.19.121.3/24; to router2's ge-0/0/1"<br />

aviva@router1# deactivate ge-1/1/0<br />

Use the following command to activate the interface:<br />

[edit interfaces]<br />

aviva@router1# activate ge-1/1/0<br />

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

When you are preparing the router for new hardware, either a new PIC or a new FPC<br />

with one or more PICs, or when you have a maintenance window in which you will<br />

be rearranging the FPCs or PICs in the router, you can preconfigure the interfaces<br />

before the hardware has arrived or is in the new location. This recipe shows how to<br />

configure a Gigabit Ethernet interface before the PIC is in the router.<br />

The management process, MGD, ignores all inactive portions of the configuration<br />

when you issue a commit command. The deactivated configuration is effectively commented<br />

out of the configuration file, and the interface control daemons will not see<br />

the configuration data. One downside to this is that if there are mistakes in your configuration,<br />

you won’t see the errors messages from MGD.<br />

Because no physical hardware is installed in the router, you don’t see this interface<br />

with any of the show interfaces commands. The only way to know that it’s there is<br />

to look at the configuration. If you are outside the deactivated hierarchy, the CLI<br />

marks it with the string inactive:<br />

[edit interfaces]<br />

aviva@router1# show<br />

inactive: ge-1/1/0 {<br />

description "172.19.121.3/24; to router2's ge-0/0/1";<br />

unit 0 {<br />

family inet {<br />

address 172.19.121.3/24;<br />

}<br />

}<br />

}<br />

If you issue the show command from a hierarchy that is within the deactivated statement,<br />

the CLI shows a three-line notice to catch your attention:<br />

[edit interfaces]<br />

aviva@router1# show ge-1/1/0<br />

##<br />

## inactive: interfaces ge-1/1/0<br />

##<br />

description "172.19.121.3/24; to router2's ge-0/0/1";<br />

Configuring Interfaces Before the PICs Are Installed | 243<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!