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.

default summary from an ABR to reach external ASs. Because a stub area has no<br />

external routes, it cannot connect to an external area (that is, it cannot contain an<br />

ASBR) and you cannot redistribute routes from another protocol into the stub area.<br />

You might use stub areas when much of the topological database consists of AS<br />

external advertisements because it reduces the size of the topological databases and<br />

therefore the amount of memory required on the internal routers in the stub area.<br />

Another restriction on stub areas is that you cannot create a virtual link through<br />

them.<br />

Not-so-stubby areas (NSSAs) are a variant of stub areas that allows a stub area to<br />

connect to an external network. This allows external routes originated by ASBRs<br />

within the areas to be flooded in Type 7 LSAs and then leaked into other areas. However,<br />

external routes from other areas are not flooded into the NSSA.<br />

For more background information about OSPF, see OSPF and IS-IS: A Comparative<br />

Anatomy at http://www.nanog.org/mtg-0006/katz.html.<br />

12.1 Configuring OSPF<br />

Problem<br />

Your want to configure OSPF on a JUNOS router.<br />

Solution<br />

You enable OSPF by defining the interfaces on which it will run and the area to<br />

which the interfaces will be attached:<br />

[edit protocols]<br />

aviva@RouterG# set ospf area 0.0.0.0 interface fe-0/0/1.0<br />

aviva@RouterG# set ospf area 0.0.0.0 interface fe-1/0/1.0<br />

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

The basic setup for configuring a single OSPF area is straightforward. Enable the protocol<br />

on all router interfaces that will participate in the OSPF domain and specify which<br />

area the interfaces are in. In this recipe, area 0 has three routers (see Figure 12-1).<br />

In this recipe, we configure OSPF on two interfaces of a router that is in the backbone<br />

area, which has an area identifier of 0.0.0.0. In addition, the router must have<br />

a router ID to identify the router from which OSPF packets originate. In this recipe,<br />

we don’t set one explicitly because we have configured a unicast IP address on the<br />

router’s lo0 interface and this address is used as the router ID:<br />

aviva@RouterG> show configuration interfaces lo0<br />

unit 0 {<br />

family inet {<br />

address 192.168.19.1/32;<br />

}<br />

}<br />

384 | Chapter 12: OSPF<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!