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.

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

}<br />

Example: Applying a Prefix to Routes Learned from a Peer<br />

Apply the long-prefix-filter prefix only to routes learned from a particular peer within a<br />

group.<br />

[edit]<br />

protocols {<br />

bgp {<br />

group 4 {<br />

type external;<br />

peer-as 47;<br />

export local-customers;<br />

import [ martian-filter as47-filter ];<br />

neighbor 192.168.1.4;<br />

neighbor 192.168.1.5;<br />

neighbor 192.168.1.6 {<br />

import [ martian-filter as47-filter long-prefix-filter ];<br />

}<br />

}<br />

}<br />

}<br />

Example: Redistributing BGP Routes with a Specific Community Tag into IS-IS<br />

Redistribute BGP routes with a community tag of 444:5 into IS-IS, changing the metric<br />

to 14.<br />

[edit]<br />

protocols {<br />

isis {<br />

export edu-to-isis;<br />

}<br />

}<br />

policy-options {<br />

community edu members 444:5;<br />

policy-statement edu-to-isis {<br />

from {<br />

protocol bgp;<br />

community edu;<br />

}<br />

then {<br />

metric 14;<br />

accept;<br />

}<br />

}<br />

}<br />

Example: Redistributing OSPF Routes into BGP<br />

Redistribute OSPF routes from Area 1 only into BGP, and do not advertise routes learned<br />

by BGP.<br />

[edit]<br />

76<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!