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.

The actual forwarding tables that the router is using to forward traffic are in the PFE,<br />

so instead of a show route command, use a show pfe command to see the contents.<br />

Unlike the show route forwarding-table command, the show pfe route command lets<br />

you see only one forwarding table at a time:<br />

aviva@RouterA> show pfe route ?<br />

Possible completions:<br />

inet6<br />

Show IP version 6 routing tables<br />

ip<br />

Show IP version 4 routing tables<br />

mpls<br />

Show Multiprotocol Label Switching routing table<br />

summary<br />

Show summary version of routing tables<br />

The PFE has three tables, one each for IPv4, IPv6, and MPLS routes. All tables have a<br />

similar format and contents. The output in this recipe is for the IPv4 forwarding<br />

table. For each destination, the forwarding table shows the IP address of the next<br />

type, the type of route, and the interface out which traffic will be sent, which is<br />

pretty much the same information as in the Routing Engine’s forwarding table.<br />

You can also look at the entries for a particular destination:<br />

aviva@RouterA> show route forwarding table destination 10.17.214.0/32<br />

Routing table: inet<br />

Internet:<br />

Destination Type RtRef Next hop Type Index NhRef Netif<br />

10.17.214.0/32 dest 0 10.17.214.0 recv 327 1 fe-0/0/1.0<br />

aviva@RouterA> show pfe route ip prefix 10.17.214.0/32<br />

IPv4 Route Table 0, default.0, 0x0:<br />

Destination NH IP Addr Type NH ID Interface<br />

--------------------------------- --------------- -------- ----- ---------<br />

10.17.214.0 10.17.214.0 Receive 327 fe-0/0/1.0<br />

8.5 Creating Static Routes<br />

Problem<br />

You want to be able to connect your router to the Internet.<br />

Solution<br />

Create a default static route:<br />

[edit routing-options]<br />

aviva@router1# set static route 0.0.0.0/0 next-hop 10.0.21.2<br />

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

Static routes are routes that you explicitly add to your routing table. Static routes are<br />

always available and do not change as a result of dynamic routing updates. For an<br />

enterprise network, a static route can be simply a default route that points to the ISP,<br />

as shown in this recipe. Here, you create a default route, 0.0.0.0/0. The next hop is<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Creating Static Routes | 263

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!