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.

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

Examples: Configuring AS Path Regular Expressions . . . . . . . . . . . . . . . . . . . 101<br />

Overview of BGP Communities and Extended Communities as Routing <strong>Policy</strong><br />

Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102<br />

Defining BGP Communities and Extended Communities for Use in Routing <strong>Policy</strong><br />

Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104<br />

Defining BGP Communities for Use in Routing <strong>Policy</strong> Match Conditions . . . 104<br />

Using UNIX Regular Expressions in Community Names . . . . . . . . . . . . . 105<br />

Defining BGP Extended Communities for Use in Routing <strong>Policy</strong> Match<br />

Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107<br />

Examples: Defining BGP Extended Communities . . . . . . . . . . . . . . . . . 109<br />

Inverting Community Matches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109<br />

Including BGP Communities and Extended Communities in Routing <strong>Policy</strong> Match<br />

Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110<br />

How BGP Communities and Extended Communities Are Evaluated in Routing<br />

<strong>Policy</strong> Match Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110<br />

Using Routing Policies to Prevent Advertisement of BGP Communities to<br />

Neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111<br />

Examples: Configuring BGP Communities as Routing <strong>Policy</strong> Match<br />

Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111<br />

Configuring Prefix Lists for Use in Routing <strong>Policy</strong> Match Conditions . . . . . . . . . . . 116<br />

Configuring Prefix Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116<br />

How Prefix Lists Are Evaluated in Routing <strong>Policy</strong> Match Conditions . . . . . . . 118<br />

Configuring Prefix List Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118<br />

Example: Configuring a Prefix List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119<br />

Configuring Route Lists for Use in Routing <strong>Policy</strong> Match Conditions . . . . . . . . . . . 119<br />

Configuring Route Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120<br />

How Route Lists Are Evaluated in Routing <strong>Policy</strong> Match Conditions . . . . . . . 122<br />

How Prefix Order Affects Route List Evaluation . . . . . . . . . . . . . . . . . . . 123<br />

Common <strong>Configuration</strong> Problem with the Longest-Match Lookup . . . . 124<br />

Route List Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124<br />

Example: Rejecting Routes with Specific Destination Prefixes and Mask<br />

Lengths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125<br />

Example: Rejecting Routes with a Mask Length Greater than Eight . . . . 125<br />

Example: Rejecting Routes with Mask Length Between 26 and 29 . . . . 125<br />

Example: Rejecting Routes from Specific Hosts . . . . . . . . . . . . . . . . . . . 125<br />

Example: Accepting Routes with a Defined Set of Prefixes . . . . . . . . . . 126<br />

Example: Rejecting Routes with a Defined Set of Prefixes . . . . . . . . . . . 126<br />

Example: Rejecting Routes with Prefixes Longer than 24 Bits . . . . . . . . 127<br />

Example: Rejecting PIM Multicast Traffic Joins . . . . . . . . . . . . . . . . . . . . 127<br />

Example: Rejecting PIM Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128<br />

Configuring Subroutines in Routing <strong>Policy</strong> Match Conditions . . . . . . . . . . . . . . . . 128<br />

Configuring Subroutines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128<br />

Possible Consequences of Termination Actions in Subroutines . . . . . . . 129<br />

Example: Configuring a Subroutine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132<br />

Configuring Routing <strong>Policy</strong> Match Conditions Based on Routing Table Entries . . 132<br />

Chapter 6 Extended Actions <strong>Configuration</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135<br />

Prepending AS Numbers to BGP AS Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135<br />

Adding AS Numbers to BGP AS Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136<br />

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