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.

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

}<br />

protocols {<br />

bgp {<br />

group Internal-Peers {<br />

type internal;<br />

local-address 192.168.0.2;<br />

export internal-peers;<br />

neighbor 192.168.0.1;<br />

neighbor 192.168.0.3;<br />

}<br />

group AS8000-Peers {<br />

type external;<br />

export private-peers;<br />

peer-as 8000;<br />

neighbor 10.222.45.2;<br />

}<br />

group AS22222-Peers {<br />

type external;<br />

export exchange-peers;<br />

peer-as 22222;<br />

neighbor 10.222.46.1;<br />

}<br />

}<br />

isis {<br />

level 1 disable;<br />

interface so-0/0/0.0;<br />

interface ge-0/2/0.0;<br />

interface lo0.0;<br />

}<br />

}<br />

policy-options {<br />

policy-statement internal-peers {<br />

term statics {<br />

from protocol static;<br />

then accept;<br />

}<br />

term next-hop-self {<br />

then {<br />

next-hop self;<br />

}<br />

}<br />

}<br />

policy-statement private-peers {<br />

term statics {<br />

from protocol static;<br />

then accept;<br />

}<br />

term isp-and-customer-routes {<br />

from {<br />

protocol bgp;<br />

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

}<br />

then accept;<br />

}<br />

term reject-all {<br />

then reject;<br />

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

91

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

Saved successfully!

Ooh no, something went wrong!