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.

Flags: None<br />

Addresses, Flags: Is-Preferred Is-Primary<br />

Destination: 192.168.220.0/24, Local: 192.168.220.1,<br />

Broadcast: 192.168.220.3<br />

Here we see that the address configured on the Fast Ethernet logical interface,<br />

192.168.220.1/30, is both the preferred and primary address for the interface.<br />

For some point-to-multipoint and other applications, you configure multiple address<br />

on a single logical interface:<br />

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

aviva@router1# set unit 0 family inet address 192.168.220.2/24<br />

aviva@router1# show<br />

unit 0 {<br />

family inet {<br />

address 192.168.220.1/24;<br />

address 192.168.220.2/24;<br />

}<br />

}<br />

With this configuration, the first address continues to be the preferred and primary<br />

address because, numerically, it is the lower of the two:<br />

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

Logical interface fe-0/0/0.0 (Index 66) (SNMP ifIndex 84)<br />

Flags: SNMP-Traps Encapsulation: ENET2<br />

Protocol inet, MTU: 1500<br />

Flags: None<br />

Addresses, Flags: Is-Preferred Is-Primary<br />

Destination: 192.168.220.0/24, Local: 192.168.220.1,<br />

Broadcast: 192.168.220.3<br />

Addresses<br />

Destination: 192.168.220.0/24, Local: 192.168.220.2,<br />

Broadcast: 192.168.220.3<br />

To have the higher address be the primary or preferred address, use the commands<br />

shown in the recipe:<br />

aviva@router1# show<br />

unit 0 {<br />

family inet {<br />

address 192.168.220.1/24;<br />

address 192.168.220.2/24 {<br />

primary;<br />

preferred;<br />

}<br />

}<br />

}<br />

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

Logical interface fe-0/0/0.0 (Index 66) (SNMP ifIndex 84)<br />

Flags: SNMP-Traps Encapsulation: ENET2<br />

Protocol inet, MTU: 1500<br />

Flags: None<br />

Addresses<br />

Choosing Primary and Preferred Interface Addresses | 211<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!