16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

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.

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

policy-statement L1-L2 {<br />

term one {<br />

from {<br />

level 1;<br />

external;<br />

}<br />

then reject;<br />

}<br />

term two {<br />

from level 1;<br />

to level 2;<br />

then accept;<br />

}<br />

}<br />

Example: Exporting IS-IS Level 2 Routes to Level 1<br />

Export IS-IS Level 2 routes into Level 1.<br />

[edit]<br />

protocols {<br />

isis {<br />

export L2-L1;<br />

}<br />

}<br />

policy-statement L2-L1 {<br />

term one {<br />

from level 2;<br />

to level 1;<br />

then accept;<br />

}<br />

}<br />

Example: Assigning Different Forwarding Next-Hop LSPs to Different Destination<br />

Prefixes<br />

Assign different forwarding next-hop LSPs to different destination prefixes learned from<br />

BGP.<br />

routing-options {<br />

router-id 10.10.20.101;<br />

autonomous-system 2;<br />

forwarding-table {<br />

export forwarding-policy;<br />

}<br />

}<br />

policy-options {<br />

policy-statement forwarding-policy {<br />

term one {<br />

from {<br />

protocol bgp;<br />

route-filter 10.1.0.0/16 orlonger;<br />

}<br />

then {<br />

install-nexthop lsp mc-c-lsp-1;<br />

78<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.

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

Saved successfully!

Ooh no, something went wrong!