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.

Chapter 5: Extended Match Conditions <strong>Configuration</strong><br />

Table 17: Community Attribute Regular Expression Operators (continued)<br />

Operator<br />

Match Definition<br />

“ ”<br />

Characters (such as space, tab, question mark, and bracket) that are enclosed within<br />

quotation marks in a community attribute regular expression indicate special<br />

characters.<br />

Table 18: Examples of Community Attribute Regular Expressions<br />

Community Attribute to Match<br />

Regular Expression<br />

Sample Matches<br />

AS number is 56 or 78. Community value is any<br />

number.<br />

^((56) | (78)):(.*)$<br />

56:1000<br />

78:65000<br />

AS number is 56. Community value is any number<br />

that starts with 2.<br />

^56:(2.*)$<br />

56:2<br />

56:222<br />

56:234<br />

AS number is any number. Community value is<br />

any number that ends with 5, 7, or 9.<br />

^(.*):(.*[579])$<br />

1234:5<br />

78:2357<br />

34:65009<br />

AS number is 56 or 78. Community value is any<br />

number that starts with 2 and ends with 2<br />

through 8.<br />

^((56) |<br />

(78)):(2.*[2–8])$<br />

56:22<br />

56:21197<br />

78:2678<br />

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

To create a named BGP community and define the community members, include the<br />

community statement:<br />

community name {<br />

invert-match;<br />

members [ community-ids ];<br />

}<br />

You can include this statement at the following hierarchy levels:<br />

• [edit policy-options]<br />

• [edit logical-systems logical-system-name policy-options]<br />

name identifies the community. It can contain letters, numbers, and hyphens (-) and can<br />

be up to 255 characters long. To include spaces in the name, enclose the entire name in<br />

quotation marks (“ ”).<br />

community-ids identifies one or more members of the community. Each community ID<br />

consists of three components, which you specify in the following format:<br />

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

107

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

Saved successfully!

Ooh no, something went wrong!