![background image](http://html.mh-extra.com/html/foundry-networks/switch-and-router/switch-and-router_installation-and-configuration-manual_2324275735.webp)
Configuring BGP4
December 2000
19 - 53
11. Select the Save link at the bottom of the dialog. Select Yes when prompted to save the configuration change
to the startup-config file on the device’s flash memory.
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 <as-path> parameter to specify a single character or multiple characters as a
filter pattern. If the AS-path matches the pattern specified in the regular expression, the filter evaluation is true;
otherwise, the evaluation is false.
In addition, you can include special characters that influence the way the software matches the AS-path against
the filter value.
To filter on a specific single-character value, enter the character for the <as-path> parameter. For example, to
filter on AS-paths that contain the letter “z”, enter the following command:
BigIron(config-bgp-router)# as-path-filter 1 permit z
To filter on a string of multiple characters, enter the characters in brackets. For example, to filter on AS-paths that
contain “x”, “y”, or “z”, enter the following command:
BigIron(config-bgp-router)# as-path-filter 1 permit [xyz]
Special Characters
When you enter as single-character expression or a list of characters, you also can use the following special
characters.
Table 19.2 on page 19-53 lists the special characters. The description for each special character
includes an example. Notice that you place some special characters in front of the characters they control but you
place other special characters after the characters they control. In each case, the examples show where to place
the special character.
Table 19.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 AS-path that
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 AS-path that
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
Summary of Contents for Switch and Router
Page 2: ...December 2000 Copyright 2000 by Foundry Networks Inc ...
Page 26: ...Foundry Switch and Router Installation and Configuration Guide xxvi December 2000 ...
Page 64: ...Foundry Switch and Router Installation and Configuration Guide 2 34 December 2000 ...
Page 162: ...Foundry Switch and Router Installation and Configuration Guide 5 38 December 2000 ...
Page 196: ...Foundry Switch and Router Installation and Configuration Guide 6 34 December 2000 ...
Page 208: ...Foundry Switch and Router Installation and Configuration Guide 7 12 December 2000 ...
Page 236: ...Foundry Switch and Router Installation and Configuration Guide 8 28 December 2000 ...
Page 258: ...Foundry Switch and Router Installation and Configuration Guide 9 22 December 2000 ...
Page 420: ...Foundry Switch and Router Installation and Configuration Guide 13 32 December 2000 ...
Page 442: ...Foundry Switch and Router Installation and Configuration Guide 14 22 December 2000 ...
Page 554: ...Foundry Switch and Router Installation and Configuration Guide 15 112 December 2000 ...
Page 574: ...Foundry Switch and Router Installation and Configuration Guide 16 20 December 2000 ...
Page 626: ...Foundry Switch and Router Installation and Configuration Guide 17 52 December 2000 ...
Page 682: ...Foundry Switch and Router Installation and Configuration Guide 18 56 December 2000 ...
Page 826: ...Foundry Switch and Router Installation and Configuration Guide 20 20 December 2000 ...
Page 994: ...Foundry Switch and Router Installation and Configuration Guide 26 10 December 2000 ...
Page 1004: ...Foundry Switch and Router Installation and Configuration Guide B 6 December 2000 ...
Page 1044: ...Foundry Switch and Router Installation and Configuration Guide C 40 December 2000 ...
Page 1048: ...Foundry Switch and Router Installation and Configuration Guide D 4 December 2000 ...
Page 1070: ...Foundry Switch and Router Installation and Configuration Guide Index 18 December 2000 ...