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.

oute is learned from a dynamic routing protocol, such as BGP or IS-IS, or is statically<br />

configured, you see this in the square brackets. Here is a static route:<br />

192.168.12.1/32 *[Static/5] 3d 21:43:37<br />

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

Here is a route learned from IS-IS:<br />

10.0.24.0/24 *[IS-IS/18] 22:53:36, metric 20<br />

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

The preference values shown in the output in this recipe are all default values.<br />

The numbers following the brackets show how long the routing table has known<br />

about the route. The first route in the table has been known for 5 days, 17 hours, 37<br />

minutes, and 5 seconds:<br />

10.0.16.0/24 *[Direct/0] 5d 17:37:05<br />

For routes learned from dynamic routing protocols, such as the IS-IS, the route’s cost,<br />

or metric, is listed after the time. This value is calculated by the routing protocol.<br />

The second line for each route shows the IP address of the next hop toward the destination<br />

and the router interface to use to reach that destination. Because no routing<br />

protocols are currently configured on the router, the routing table contains only local<br />

and direct routes, and you see only the router interface to the destination. If a routing<br />

protocol is running, the IP address precedes the interface, as you can see in the<br />

static and IS-IS routes shown above. The IP address doesn’t always precede the interface.<br />

Exceptions include routes that point to unnumbered interfaces and routes with<br />

non-IP next hops, such as MPLS routes.<br />

The second part of the show route output shows the routes for the other routing table<br />

RPD is currently using—the internal JUNOS routing table, __juniper_private1__. Both<br />

routes listed travel on interface lo0.16385, which is an internal loopback interface created<br />

and used only by the JUNOS software.<br />

To display only the IPv4 unicast routes without the internal JUNOS routes, use this<br />

command:<br />

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

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

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

10.0.16.0/24 *[Direct/0] 5d 17:37:05<br />

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

10.0.16.1/32 *[Local/0] 1w0d 15:51:30<br />

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

10.0.21.0/24 *[Direct/0] 1w0d 17:32:48<br />

> via se-0/0/3.0<br />

10.0.21.1/32 *[Local/0] 1w0d 17:32:53<br />

Local via se-0/0/3.0<br />

192.168.42.1/32 *[Direct/0] 5d 18:02:37<br />

> via lo0.0<br />

Viewing the Routes in the Routing Table | 253<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!