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.

To check that OSPF is running on the router interfaces, use the show ospf interface<br />

command:<br />

aviva@RouterG> show ospf interface<br />

Interface State Area DR ID BDR ID Nbrs<br />

fe-0/0/1.0 DR 0.0.0.0 192.168.19.1 192.168.18.1 1<br />

fe-1/0/1.0 BDR 0.0.0.0 192.168.17.1 192.168.19.1 1<br />

This output shows the two interfaces we configured, fe-0/0/1 and fe-1/0/1. Both<br />

interfaces are in the backbone area, Area 0.0.0.0, and each has one neighbor. The<br />

State field indicates that interface fe-/0/0/1 is the DR for this network and interface<br />

fe-1/0/1 is the BDR, which is used if the DR becomes unavailable. The DR-ID and<br />

BDR-ID fields show the router ID of the DR and BDR. With this configuration, OSPF<br />

chooses as the designated router the interface with the highest router ID because all<br />

routers are using the default priority (which you see with the show ospf neighbor<br />

command, described below). If the router has not yet determined which router is the<br />

DR, the state is Waiting:<br />

aviva@RouterJ> show ospf interface<br />

Interface State Area DR ID BDR ID Nbrs<br />

fe-1/0/0.0 BDR 0.0.0.0 192.168.18.1 192.168.17.1 1<br />

fe-1/0/1.0 Waiting 0.0.0.0 0.0.0.0 0.0.0.0 0<br />

Use the show ospf neighbor command to see who the OSPF neighbors are:<br />

aviva@RouterG> show ospf neighbor<br />

Address Interface State ID Pri Dead<br />

10.0.1.1 fe-0/0/1.0 Full 192.168.18.1 128 34<br />

10.0.0.2 fe-1/0/1.0 Full 192.168.17.1 128 34<br />

The Interface column lists the two interfaces we configured. Interface fe-0/0/1 connects<br />

to the neighbor’s interface address 10.0.1.1, and this neighbor has a router ID<br />

of 192.168.18.1. The other interface, fe-1/0/1, goes to the neighbor’s interface at IP<br />

address 10.0.0.2, and this neighbor has a router ID of 192.168.17.1. You see from<br />

this output that both neighbors have a router priority of 128, which is the default<br />

OSPF priority. OSPF uses this value to select the DR, choosing the router with the<br />

highest priority to be the DR. In the event of a tie, OSPF chooses the router with the<br />

highest router ID.<br />

The State column shows the state of each OSPF neighbor. When OSPF network<br />

connectivity has established and the network is up and running, the state is Full. As<br />

OSPF connectivity is establishing, you may see Attempt, Init, or2way in this field. (If<br />

either end of an adjacency on a LAN is not a DR or a BDR, the final state is 2Way.) If<br />

the state does not show as Full after about 30 seconds, check that the OSPF connectivity<br />

between the two neighbors is working correctly. Use the show interfaces command<br />

to make sure that the interface is operational. On the neighboring router, use<br />

the show configuration protocols ospf command to make sure that OSPF is configured,<br />

properly, and use the show ospf neighbor and show ospf interface commands to<br />

verify that OSPF is running on the interfaces.<br />

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