Foundry Networks AR1208 Chapter AS Path Regular Expressions, Matching AS Paths, AS Path Terms

Models: AR1208 AR1216 AR3202-CL AR3202 AR3201-CL AR3201 AR1204

1 293
Download 293 pages 53.56 Kb
Page 216
Image 216

Chapter 13

AS Path Regular Expressions

This appendix provides information about how to use and configure regular expressions for use with BGP4 routing protocol commands.

Matching AS Paths

An AS path regular expression is a regular expression with the alphabet used as the set of AS numbers defining a set of AS paths.

Note that according to this definition, AS path regular expressions are implicitly anchored at the beginning and end.

The following examples provide more information:

690Matches only the specific AS path “690.”

. *690 .* Matches any AS path containing 690.

690.* Matches any AS path beginning with 690.

. *690 Matches any AS path ending in 690.

AS Path Regular Expressions (regex)

A regex is a character string containing one of the following:

term

Matches the given term.

regex1 regex2

Matches a path that is a concatenation of two paths, P1 and P2. P1 matches

 

regex1 and P2 matches regex2. Note that spaces are ignored in general, but

 

should be used between two concatenated ASs to distinguish them.

regex1 regex2

Matches a path that matches regex1 or regex2.

 

 

AS Path Terms

A term is one of the following:

AS

Matches the given number, which is any positive 16-bit number from 0-65535

 

inclusive. Note that valid AS numbers range from one through 65534

 

inclusive.

June 2004

© 2004 Foundry Networks, Inc.

13 - 1

Page 216
Image 216
Foundry Networks AR1208, AR3202 Chapter AS Path Regular Expressions, Matching AS Paths, AS Path Regular Expressions regex