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 />

Table 16: Examples of AS Path Regular Expressions (continued)<br />

AS Path to Match<br />

Regular<br />

Expression<br />

Sample Matches<br />

Path of any length, except nonexistent, whose<br />

second AS number can be anything, including<br />

nonexistent<br />

. .* or . .{0,}<br />

12341234567812345678<br />

AS path is 1 2 3<br />

1 2 3<br />

1 2 3<br />

One occurrence of the AS numbers 1 and 2, followed<br />

by one or more occurrences of the AS number 3<br />

1 2 3+<br />

1 2 3<br />

1 2 3 3<br />

1 2 3 3 3<br />

One or more occurrences of AS number 1, followed<br />

by one or more occurrences of AS number 2, followed<br />

by one or more occurrences of AS<br />

number 3<br />

1+ 2+ 3+<br />

1 2 3<br />

1 1 2 3<br />

1 1 2 2 3<br />

1 1 2 2 3 3<br />

Path of any length that begins with AS numbers 4,<br />

5, 6<br />

4 5 6 .*<br />

4 5 6<br />

4 5 6 7 8 9<br />

Path of any length that ends with AS numbers 4, 5, 6<br />

.* 4 5 6<br />

4 5 6<br />

1 2 3 4 5 6<br />

4 9 4 5 6<br />

AS path 5, 12, or 18<br />

5 | 12 | 18<br />

5<br />

12<br />

18<br />

Configuring a Null AS Path<br />

You can use AS path regular expressions to create a null AS path that matches routes<br />

(prefixes) that have originated in your AS. These routes have not been advertised to your<br />

AS by any external peers. To create a null AS path, use the parentheses operator enclosed<br />

in quotation marks with no intervening spaces:<br />

“()"<br />

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