Configuring BGP4
NOTE: You cannot apply the AS path ACLs to a neighbor using the Web management interface. You must use the CLI. The AS Path Filter List for Weight field in the BGP Neighbor panel of the Web management interface is not used for AS path filtering, but is instead used for changing a route’s weight based on the AS path list.
Using Regular Expressions
You use a regular expression for the
In addition, you can include special characters that influence the way the software matches the
To filter on a specific
To filter on a string of multiple characters, enter the characters in brackets. For example, to filter on
Special Characters
When you enter as
Table 10.2: BGP4 Special Characters for Regular Expressions
Character | Operation |
|
|
. | The period matches on any single character, including a blank space. For |
| example, the following regular expression matches for “aa”, “ab”, “ac”, and |
| so on, but not just “a”. |
| a. |
|
|
* | The asterisk matches on zero or more sequences of a pattern. For |
| example, the following regular expression matches on an |
| contains the string “1111” followed by any value: |
| 1111* |
|
|
+ | The plus sign matches on one or more sequences of a pattern. For |
| example, the following regular expression matches on an |
| contains a sequence of “g”s, such as “deg”, “degg”, “deggg”, and so on: |
| deg+ |
|
|
? | The question mark matches on zero occurrences or one occurrence of a |
| pattern. For example, the following regular expression matches on an AS |
| path that contains “dg” or “deg”: |
| de?g |
|
|
10 - 49