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.

Solution<br />

Use the show ospf route command to see the contents of the OSPF routing table:<br />

aviva@RouterG> show ospf route<br />

Prefix Path Route NH Metric NextHop Nexthop<br />

Type Type Type Interface addr/label<br />

192.168.17.1 Intra Router IP 1 fe-1/0/1.0 10.0.0.2<br />

192.168.18.1 Intra Router IP 1 fe-0/0/1.0 10.0.1.1<br />

10.0.0.0/24 Intra Network IP 1 fe-1/0/1.0<br />

10.0.1.0/24 Intra Network IP 1 fe-0/0/1.0<br />

10.0.2.0/24 Intra Network IP 2 fe-0/0/1.0 10.0.1.1<br />

fe-1/0/1.0 10.0.0.2<br />

192.168.17.1/32 Intra Network IP 1 fe-1/0/1.0 10.0.0.2<br />

192.168.18.1/32 Intra Network IP 1 fe-0/0/1.0 10.0.1.1<br />

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

OSPF routers perform an SPF calculation to determine the best route to a destination<br />

and places these routes in its routing table. The show ospf route command displays<br />

what’s in the OSPF routing table. The Prefix column shows the destinations<br />

on the network, and you also see the interface used to reach the next hop toward the<br />

destination and the IP address of that next hop.<br />

You can find out which routes the router has learned from OSPF by checking the<br />

unicast routing table:<br />

aviva@RouterG> show route table inet.0<br />

inet.0: 11 destinations, 11 routes (11 active, 0 holddown, 0 hidden)<br />

+ = Active Route, - = Last Active, * = Both<br />

10.0.0.0/24 *[Direct/0] 3d 01:42:24<br />

> via fe-1/0/1.0<br />

10.0.0.1/32 *[Local/0] 3d 01:42:24<br />

Local via fe-1/0/1.0<br />

10.0.1.0/24 *[Direct/0] 3d 01:42:24<br />

> via fe-0/0/1.0<br />

10.0.1.2/32 *[Local/0] 3d 01:42:24<br />

Local via fe-0/0/1.0<br />

10.0.2.0/24 *[OSPF/10] 00:18:28, metric 2<br />

to 10.0.1.1 via fe-0/0/1.0<br />

> to 10.0.0.2 via fe-1/0/1.0<br />

10.0.16.0/24 *[Direct/0] 3d 01:42:24<br />

> via fe-1/0/0.0<br />

10.0.16.2/32 *[Local/0] 3d 01:42:24<br />

Local via fe-1/0/0.0<br />

192.168.17.1/32 *[OSPF/10] 00:18:28, metric 1<br />

> to 10.0.0.2 via fe-1/0/1.0<br />

192.168.18.1/32 *[OSPF/10] 00:18:28, metric 1<br />

> to 10.0.1.1 via fe-0/0/1.0<br />

192.168.19.1/32 *[Direct/0] 3d 01:40:56<br />

> via lo0.0<br />

224.0.0.5/32 *[OSPF/10] 2d 20:52:32, metric 1<br />

MultiRecv<br />

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