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.

unit 0 {<br />

family inet {<br />

address 172.19.121.3/24;<br />

}<br />

}<br />

While you can set the ge-1/1/0 interface configuration without issuing the<br />

deactivate command, you are leaving yourself open for possible problems if someone<br />

installs the PIC unexpectedly.<br />

Deactivating an interface’s configuration rather than deleting is also a good practice<br />

when the hardware fails and you are waiting for a replacement PIC. When the new<br />

PIC arrives, you don’t need to reconfigure the interface. Just reactivate it:<br />

[edit interfaces]<br />

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

For all interfaces, you can configure a disable statement. While this might look like a<br />

way to deactivate an interface, it actually does something quite different: it activates<br />

the interface, but treats it as being down or administratively disabled. When you<br />

commit a configuration that contains a disabled interface, the interface control daemon,<br />

DCD, sees the interface and the configuration data, but does not configure the<br />

interface. Here, you disable interface fe-0/0/0:<br />

[edit interfaces]<br />

aviva@router1# set fe-0/0/0 disable<br />

The configuration shows this:<br />

[edit interfaces]<br />

aviva@router1# show fe-0/0/0<br />

disable;<br />

unit 0 {<br />

family inet {<br />

address 192.168.20.1/30;<br />

{<br />

}<br />

When you check the status of the interface, you see that the physical interface is<br />

administratively down, but the link to the remote side is up. The logical interface is<br />

also down.<br />

aviva@router1> show interfaces fe-0/0/0 terse<br />

Interface Admin Link Proto Local Remote<br />

fe-0/0/0<br />

down up<br />

fe-0/0/0.0 up down inet 192.168.20.1/30<br />

This output illustrates that when an interface is disabled instead of being deactivated,<br />

you see information about the interface in the show interfaces output instead<br />

of seeing nothing at all, which is the case with the deactivated interface.<br />

To get the interface back up, you might think that it’s logical to enable it:<br />

[edit interfaces fe-0/0/0]<br />

aviva@router1# set enable<br />

244 | Chapter 7: Router Interfaces<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!