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.

}<br />

}<br />

from protocol static;<br />

then accept;<br />

Then apply the policy to IS-IS:<br />

[edit protocols isis]<br />

aviva@RouterG# set export export-statics<br />

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

Routing policy is normally applied to BGP to filter the entries in the routing table<br />

rather than to IS-IS or another IGP. This is because the main purpose of an IGP is to<br />

determine the best route to a destination. However, occasionally you need to use<br />

routing policies with an IGP, generally to redistribute routes into that IGP from<br />

another protocol. For example, this might be done for a small customer who doesn’t<br />

need to run a dynamic routing protocol, such as IS-IS, but just connect to you using<br />

a static route. You create a routing policy to redistribute these customer’s routes into<br />

your IS-IS network. This recipe creates a simple routing policy to do this, accepting<br />

all static routes. For the policy to take effect, you must apply it to IS-IS.<br />

RouterG has one configured static route:<br />

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

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

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

192.168.12.1/32 *[Static/5] 00:10:41<br />

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

When the static route is redistributed into IS-IS, it is incorporated into the IS-IS linkstate<br />

database and is marked as being an external prefix:<br />

aviva@RouterG> show isis database extensive<br />

IS-IS level 1 link-state database:<br />

RouterG.00-00 Sequence: 0xe5, Checksum: 0x912c, Lifetime: 492 secs<br />

IP prefix: 10.0.1.0/24 Metric: 10 Internal Up<br />

IP prefix: 10.0.16.0/24 Metric: 10 Internal Up<br />

IP prefix: 192.168.12.1/32 Metric: 0 External Up<br />

IP prefix: 192.168.19.1/32 Metric: 0 Internal Up<br />

Header: LSP ID: RouterG.00-00, Length: 175 bytes<br />

Allocated length: 1492 bytes, Router ID: 192.168.19.1<br />

Remaining lifetime: 492 secs, Level: 1,Interface: 0<br />

Estimated free bytes: 1317, Actual free bytes: 1317<br />

Aging timer expires in: 492 secs<br />

Protocols: IP, IPv6<br />

Packet: LSP ID: RouterG.00-00, Length: 175 bytes, Lifetime : 1200 secs<br />

Checksum: 0x912c, Sequence: 0xe5, Attributes: 0xb <br />

NLPID: 0x83, Fixed length: 27 bytes, Version: 1, Sysid length: 0 bytes<br />

Packet type: 18, Packet version: 1, Max area: 0<br />

TLVs:<br />

Area address: 49.0020 (3)<br />

Speaks: IP<br />

Speaks: IPv6<br />

Redistributing Static Routes into IS-IS | 369<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!