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.

Table of Contents<br />

Testing Routing Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71<br />

Example: Testing a Routing <strong>Policy</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72<br />

Routing <strong>Policy</strong> Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72<br />

Example: Defining a Routing <strong>Policy</strong> from BGP to IS-IS . . . . . . . . . . . . . . . . . . . . . . 73<br />

Example: Using Routing <strong>Policy</strong> to Set a Preference . . . . . . . . . . . . . . . . . . . . . . . . 73<br />

Example: Importing and Exporting Access and Access-Internal Routes in a<br />

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

Example: Exporting Routes to IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74<br />

Example: Applying Export and Import Policies to BGP Peer Groups . . . . . . . . . . . 75<br />

Example: Defining a Routing <strong>Policy</strong> Based on the Number of BGP<br />

Communities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75<br />

Example: Applying a Prefix to Routes Learned from a Peer . . . . . . . . . . . . . . . . . . 76<br />

Example: Redistributing BGP Routes with a Specific Community Tag into<br />

IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76<br />

Example: Redistributing OSPF Routes into BGP . . . . . . . . . . . . . . . . . . . . . . . . . . . 76<br />

Example: Exporting Direct Routes Into IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77<br />

Example: Exporting Internal IS-IS Level 1 Routes to Level 2 . . . . . . . . . . . . . . . . . . 77<br />

Example: Exporting IS-IS Level 2 Routes to Level 1 . . . . . . . . . . . . . . . . . . . . . . . . . 78<br />

Example: Assigning Different Forwarding Next-Hop LSPs to Different Destination<br />

Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78<br />

Example: Grouping Destination Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79<br />

Example: Grouping Source Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80<br />

Example: Grouping Source and Destination Prefixes in a Forwarding Class . . . . . 81<br />

Example: Accepting Routes with Specific Destination Prefixes . . . . . . . . . . . . . . . 82<br />

Example: Accepting Routes from BGP with a Specific Destination Prefix . . . . . . . 82<br />

Example: Using Routing <strong>Policy</strong> in an ISP Network . . . . . . . . . . . . . . . . . . . . . . . . . 83<br />

Requesting a Single Default Route on the Customer 1 Router . . . . . . . . . . . . 84<br />

Requesting Specific Routes on the Customer 2 Router . . . . . . . . . . . . . . . . . 85<br />

Configuring a Peer <strong>Policy</strong> on ISP Router 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87<br />

Configuring Private and Exchange Peers on ISP Router 1 and 2 . . . . . . . . . . . 89<br />

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

Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92<br />

Configuring Outbound and Generated Routes on the Private Peer 2<br />

Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93<br />

Chapter 5 Extended Match Conditions <strong>Configuration</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . 95<br />

Configuring AS Path Regular Expressions to Use as Routing <strong>Policy</strong> Match<br />

Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95<br />

Configuring AS Path Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96<br />

Configuring a Null AS Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100<br />

How AS Path Regular Expressions Are Evaluated . . . . . . . . . . . . . . . . . . . . . . 101<br />

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

xi

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

Saved successfully!

Ooh no, something went wrong!