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.

CHAPTER 5<br />

Extended Match Conditions <strong>Configuration</strong><br />

This chapter describes how to configure extended match conditions:<br />

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

Conditions on page 95<br />

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

Conditions on page 102<br />

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

Conditions on page 104<br />

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

Conditions on page 110<br />

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

Match Conditions on page 110<br />

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

Neighbors on page 111<br />

• Examples: Configuring BGP Communities as Routing <strong>Policy</strong> Match Conditions on page 111<br />

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

• Example: Configuring a Prefix List on page 119<br />

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

• Configuring Subroutines in Routing <strong>Policy</strong> Match Conditions on page 128<br />

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

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

A BGP AS path is a path to a destination. An AS path consists of the AS numbers of<br />

networks that a packet traverses if it takes the associated route to a destination. The AS<br />

numbers are assembled in a sequence, or path, that is read from right to left. For example,<br />

for a packet to reach a destination using a route with an AS path 5 4 3 2 1, the packet first<br />

traverses AS 1 and so on until it reaches AS 5, which is the last AS before its destination.<br />

You can define a match condition based on all or portions of the AS path. To do this, you<br />

create a named AS path regular expression and then include it in a routing policy.<br />

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

95

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

Saved successfully!

Ooh no, something went wrong!