28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.2 Viewing Routes to a Particular Prefix<br />

Problem<br />

You need to check to make sure the local router has a route to another router in the<br />

network.<br />

Solution<br />

Use the following version of the show route command:<br />

aviva@RouterG> show route 10.0.8.1<br />

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

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

10.0.8.0/24 *[IS-IS/18] 00:11:18, metric 20<br />

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

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

Often you may want to find out whether the local routing table has a route to a particular<br />

destination, such as when you are trying to figure out the path that traffic is<br />

taking toward a destination. If you include the destination’s address in the show<br />

route command, you see only that route. This recipe shows the route to 10.0.8.1,<br />

which was learned from an IS-IS Level 2 internal route, has a metric value of 20, and<br />

goes through the next hop of 10.0.0.2 over the router’s interface fe-1/0/1. The<br />

header lines for the inet.0 routing table are also displayed, so you see that this routing<br />

table has a total of 18 routes to 18 destinations.<br />

For more information about the route, use the detail option:<br />

aviva@RouterG> show route 10.0.8.1 detail<br />

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

10.0.8.0/24 (1 entry, 1 announced)<br />

*IS-IS Preference: 18<br />

Level: 2<br />

Next-hop reference count: 4<br />

Next hop: 10.0.0.2 via fe-1/0/1.0, selected<br />

State: <br />

Age: 11:41 Metric: 20<br />

Task: IS-IS<br />

Announcement bits (1): 0-KRT<br />

AS path: I<br />

This output shows a few more fields of interest. The Next hop field shows that this<br />

next hop has been selected for inclusion in the forwarding table. The State field<br />

shows that this route is active and is an interior route. The AS path field also shows<br />

that the route was learned internally.<br />

Viewing Routes to a Particular Prefix | 257<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!