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 16: Examples of AS Path Regular Expressions (continued)<br />

AS Path to Match<br />

Regular<br />

Expression<br />

Sample Matches<br />

Zero or one occurrence of AS number 1234<br />

1234? or 1234{0,1}<br />

1234<br />

Null AS path<br />

One through four occurrences of AS number 1234<br />

1234{1,4}<br />

1234<br />

1234 1234<br />

1234 1234 1234<br />

1234 1234 1234 1234<br />

One through four occurrences of AS number 12,<br />

followed by one occurrence of AS number 34<br />

12{1,4} 34<br />

12 34<br />

12 12 34<br />

12 12 12 34<br />

12 12 12 12 34<br />

Range of AS numbers to match a single AS number<br />

123–125<br />

123<br />

124<br />

125<br />

[123–125]*<br />

Null AS path<br />

123<br />

124 124<br />

125 125 125<br />

123 124 125 123<br />

Path whose second AS number must be 56 or 78<br />

(. 56) | (. 78) or<br />

. (56 | 78)<br />

1234 56<br />

1234 78<br />

9876 56<br />

3857 78<br />

Path whose second AS number might be 56 or 78<br />

. (56 | 78)?<br />

1234 56 52<br />

34 56 1234<br />

1234 78 39<br />

794 78 2<br />

Path whose first AS number is 123 and second AS<br />

number is either 56 or 78<br />

123 (56|78)<br />

123 56<br />

123 78<br />

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

99

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

Saved successfully!

Ooh no, something went wrong!