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> Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />

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

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

Routing Protocol Support for Import and Export Policies . . . . . . . . . . . . . . . . . . . . 27<br />

Protocol Support for Import and Export Policies . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />

Applying a Routing <strong>Policy</strong> to Routing Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />

Applying Export Policies to the Forwarding Table . . . . . . . . . . . . . . . . . . . . . . . . . 29<br />

Evaluating a Routing <strong>Policy</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29<br />

How a Routing <strong>Policy</strong> Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29<br />

How a Routing <strong>Policy</strong> Chain Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30<br />

How a Routing <strong>Policy</strong> Expression Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br />

How a Routing <strong>Policy</strong> Subroutine Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br />

Routing <strong>Policy</strong> Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33<br />

Chapter 3 Routing <strong>Policy</strong> <strong>Configuration</strong> Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />

Configuring a Routing <strong>Policy</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />

Minimum Routing <strong>Policy</strong> <strong>Configuration</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />

Minimum Routing <strong>Policy</strong> Chain <strong>Configuration</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />

Minimum Subroutine <strong>Configuration</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />

Chapter 4 Routing <strong>Policy</strong> <strong>Configuration</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39<br />

Defining Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

Configuring Match Conditions in Routing <strong>Policy</strong> Terms . . . . . . . . . . . . . . . . . . . . . . 41<br />

Configuring Actions in Routing <strong>Policy</strong> Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47<br />

Configuring Flow Control Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49<br />

Configuring Actions That Manipulate Route Characteristics . . . . . . . . . . . . . 49<br />

Configuring the Default Action in Routing Policies . . . . . . . . . . . . . . . . . . . . . 54<br />

Example: Configuring the Default Action in a Routing <strong>Policy</strong> . . . . . . . . . . 55<br />

Configuring a Final Action in Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . 56<br />

Logging Matches to a Routing <strong>Policy</strong> Term . . . . . . . . . . . . . . . . . . . . . . . . . . . 56<br />

Configuring Separate Actions for Routes in Route Lists . . . . . . . . . . . . . . . . . 57<br />

Applying Routing Policies and <strong>Policy</strong> Chains to Routing Protocols . . . . . . . . . . . . 57<br />

Effect of Omitting Ingress Match Conditions from Export Policies . . . . . . . . . 58<br />

Applying <strong>Policy</strong> Expressions to Routes Exported from Routing Tables . . . . . . . . . 59<br />

<strong>Policy</strong> Expression Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61<br />

How a <strong>Policy</strong> Expression Is Evaluated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62<br />

Example: Evaluating <strong>Policy</strong> Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63<br />

Applying Routing Policies to the Forwarding Table . . . . . . . . . . . . . . . . . . . . . . . . 64<br />

Configuring Dynamic Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65<br />

Configuring Routing Policies and <strong>Policy</strong> Objects in the Dynamic<br />

Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66<br />

Configuring Routing Policies Based on Dynamic Database <strong>Configuration</strong> . . . 66<br />

Applying Dynamic Routing Policies to BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . 68<br />

Preventing Reestablishment of BGP Peering Sessions After NSR Routing<br />

Engine Switchover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68<br />

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

Routing <strong>Policy</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69<br />

Forwarding Packets to the Discard Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70<br />

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