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.

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

Routing <strong>Policy</strong> Terms<br />

Manipulating the route characteristics allows you to control which route is selected as<br />

the active route to reach a destination. In general, the active route is also advertised to<br />

a routing platform’s neighbors. You can manipulate the following route characteristics:<br />

AS path, class, color, community, damping parameters, destination class, external type,<br />

next hop, load balance, local preference, metric, origin, preference, and tag.<br />

For the numeric information (color, local preference, metric, preference, and tag), you<br />

can set a specific value or change the value by adding or subtracting a specified amount.<br />

The addition and subtraction operations do not allow the value to exceed a maximum<br />

value and drop below a minimum value.<br />

For more information about the properties you can change and the addition and<br />

subtraction operations, see “Configuring Actions in Routing <strong>Policy</strong> Terms” on page 47.<br />

Applying a Routing <strong>Policy</strong><br />

A term is a named structure in which match conditions and actions are defined. You can<br />

define one or more terms.<br />

In general, the policy framework software compares a route against the match conditions<br />

in the first term in the first routing policy, then goes on to the next term and the next policy<br />

if present, and so on, until an explicitly configured or default action of accept or reject is<br />

taken. Therefore, the order in which you arrange terms in a policy is relevant.<br />

The order of match conditions in a term is not relevant, because a route must match all<br />

match conditions in a term for an action to be taken.<br />

After defining a routing policy, as discussed in “Routing <strong>Policy</strong> Match Conditions” on<br />

page 24 and “Routing <strong>Policy</strong> Actions” on page 25, you can apply it to one of the following:<br />

• Routing protocols—BGP, DVMRP, IS-IS, LDP, MPLS, OSPF, PIM dense mode, PIM sparse<br />

mode, PIM sparse-dense mode, RIP, and RIPng<br />

• Pseudoprotocol—Explicitly created routes, which include aggregate and generated<br />

routes<br />

• Forwarding table<br />

The following sections discuss the following topics:<br />

• Routing Protocol Support for Import and Export Policies on page 27<br />

• Protocol Support for Import and Export Policies on page 28<br />

• Applying a Routing <strong>Policy</strong> to Routing Protocols on page 28<br />

• Applying Export Policies to the Forwarding Table on page 29<br />

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