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.

*[Direct/0] 00:01:08<br />

> via lo0.0<br />

feee::10:255:71:4/128<br />

*[Direct/0] 00:01:08<br />

> via lo0.0<br />

When the router is running IS-IS, the show route command lists entries in the ISO<br />

routing table, iso.0, or you can view them separately with this command:<br />

aviva@RouterA> show route table iso.0<br />

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)<br />

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

49.0020.1921.6804.2001/72<br />

*[Direct/0] 13:16:30<br />

> via lo0.0<br />

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

The show route command is the basic command for listing routes in the routing table.<br />

The first command in this recipe, without any options, shows the contents of all the<br />

routing tables that RPD is currently using. This output shows the contents of two<br />

routing tables, inet.0, which is the default routing table for IPv4 unicast routes, and<br />

__juniper_private1__, which is an internal routing table used by the JUNOS software.<br />

If IPv6, IS-IS, multicast, or traffic engineering is configured on the router, the<br />

show route command lists the routes in the routing tables used by these protocols,<br />

including inet6.0, iso.0, inet.2, inet.3, and mpls.0.<br />

The first two lines of the show route output summarize the entries in the inet.0 table:<br />

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

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

This table has five routes. Of these, five are active, none are in the hold-down state<br />

prior to being deleted from the routing table, and none are hidden as a result of a<br />

configured routing policy.<br />

The left column of the table shows the IP addresses of the routing entries. The direct<br />

routes are those to the prefixes (subnetwork addresses) assigned to an interface on<br />

the router. In the inet.0 table, you see three direct routes: two are to physical interface<br />

subnetworks, 10.0.16.0/24 and 10.0.21.0/24, and one is to the router’s loopback<br />

interface, 192.168.42.1/32. The local routes are the /32 interface addresses on<br />

the directly connected interfaces, and there are two in the routing table, 10.0.16.1/32<br />

and 10.0.21.1/32.<br />

The right column of the output gives some details about each route. The asterisk (*)<br />

indicates that the route is the active route, which is the route currently installed in<br />

the forwarding table.<br />

The text within the square brackets indicates how the route was learned and the<br />

route’s preference value. All routes in the inet.0 table are either local on the router<br />

or learned as a result of a direct network connection to a neighboring router. If a<br />

252 | Chapter 8: IP Routing<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!