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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4: Routing <strong>Policy</strong> <strong>Configuration</strong><br />

accept;<br />

}<br />

}<br />

term two {<br />

from {<br />

protocol bgp;<br />

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

}<br />

then {<br />

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

accept;<br />

}<br />

}<br />

term three {<br />

from {<br />

protocol bgp;<br />

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

}<br />

then {<br />

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

accept;<br />

}<br />

}<br />

}<br />

}<br />

protocols {<br />

mpls {<br />

label-switched-path mc-c-lsp-1 {<br />

from 10.10.20.101;<br />

to 10.10.20.103;<br />

}<br />

label-switched-path mc-c-lsp-2 {<br />

from 10.10.20.101;<br />

to 10.10.20.103;<br />

}<br />

label-switched-path mc-c-lsp-3 {<br />

from 10.10.20.101;<br />

to 10.10.20.103;<br />

}<br />

}<br />

}<br />

Example: Grouping Destination Prefixes<br />

Configure a routing policy to group destination prefixes.<br />

[edit]<br />

policy-options {<br />

policy-statement set-dest-class {<br />

term 1 {<br />

from community nets1;<br />

then {<br />

destination-class on-net;<br />

accept;<br />

}<br />

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

79

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

Saved successfully!

Ooh no, something went wrong!