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 />

}<br />

policy-statement exchange-peers {<br />

term AS1000-Aggregate {<br />

from {<br />

protocol aggregate;<br />

route-filter 192.168.0.0/17 exact;<br />

}<br />

then accept;<br />

}<br />

term Customer-2-Aggregate {<br />

from {<br />

protocol aggregate;<br />

route-filter 192.168.64.0/22 exact;<br />

}<br />

then accept;<br />

}<br />

term reject-all-other-routes {<br />

then reject;<br />

}<br />

}<br />

}<br />

Configuring Locally Defined Static Routes on the Exchange Peer 2 Router<br />

The Exchange Peer 2 router exchanges all routes with all BGP peers. The outbound-routes<br />

policy for Exchange Peer 2 advertises locally defined static routes using BGP.<br />

[edit]<br />

protocols {<br />

bgp {<br />

group Peers {<br />

type external;<br />

export outbound-routes;<br />

neighbor 10.222.4.1 {<br />

peer-as 11111;<br />

}<br />

neighbor 10.222.44.2 {<br />

peer-as 8000;<br />

}<br />

neighbor 10.222.46.2 {<br />

peer-as 1000;<br />

}<br />

}<br />

}<br />

}<br />

policy-options {<br />

policy-statement outbound-routes { # advertise the simulated Internet routes<br />

term statics { # to all BGP peers<br />

from protocol static;<br />

then accept;<br />

}<br />

}<br />

}<br />

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