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

protocols bgp], [edit protocols bgp group group-name], or [edit protocols bgp group<br />

group-name neighbor address] hierarchy level:<br />

[edit]<br />

bgp {<br />

protocols {<br />

idle-after-switch-over (seconds | never);<br />

}<br />

}<br />

For seconds, specify a value from 1 through 4,294,967,295 (2 32 – 1). The BGP peering<br />

session is not reestablished until after the specified period. If you specify the forever<br />

option, the BGP peering session is not established until you issue the clear bgp neighbor<br />

command. For more information about BGP and the configuration statement summary<br />

of the idle-after-switch-over statement, see the Junos Routing Protocols <strong>Configuration</strong><br />

<strong>Guide</strong>. For more information about configuring active nonstop routing, see the Junos High<br />

Availability <strong>Configuration</strong> <strong>Guide</strong>.<br />

Example: Configuring a BGP Export <strong>Policy</strong> That References a Dynamic Routing <strong>Policy</strong><br />

In this example, you configure the following in the dynamic database: a routing policy,<br />

policy-statement one, and two prefix lists: prefix-list pl1, which is referenced in<br />

policy-statement one, and prefix-list pl2.<br />

In the standard configuration database, you configure the following routing policies and<br />

policy objects: a routing policy (policy-statement one) that references the routing policy<br />

with the same name configured in the dynamic database; a prefix list (prefix-list pl2)<br />

that references the prefix list with the same name configured in the dynamic database;<br />

and a routing policy (policy-statement two) that references the prefix list prefix-list pl2<br />

you configured in the standard configuration and references the prefix list with the same<br />

name configured in the dynamic database.<br />

You then create and apply a policy expression that includes policy-statement one and<br />

policy-statement two to BGP export policy in the standard configuration.<br />

In the dynamic database, configure policy-statement one, prefix-list pl1, and prefix-list pl2:<br />

[edit dynamic]<br />

policy-options {<br />

prefix-list pl1 {<br />

8.8.0.0/16;<br />

12.12.12.3/32<br />

}<br />

prefix-list pl2;<br />

10.10.0.0/16<br />

}<br />

policy-statement one {<br />

term term1<br />

from {<br />

prefix-list pl1<br />

}<br />

then accept;<br />

}<br />

then reject;<br />

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

69

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

Saved successfully!

Ooh no, something went wrong!