![Dell Brocade DCX Configuration Manual Download Page 866](http://html.mh-extra.com/html/dell/brocade-dcx/brocade-dcx_configuration-manual_85983866.webp)
794
BigIron RX Series Configuration Guide
53-1001810-01
Filtering
26
The neighbor command uses the filter-list parameter to apply the AS-path ACL to the neighbor.
Refer to
“Configuring BGP4 neighbors”
on page 769 and
“Configuring a BGP4 peer group”
on
page 776.
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 RX(config-bgp)# ip as-path access-list acl1 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 RX(config-bgp)# ip as-path access-list acl1 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 26.2 on page 26-45 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 117
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
^
A caret (when not used within brackets) matches on the beginning of an input string. For
example, the following regular expression matches on an AS-path that begins with “3”.
^3
$
A dollar sign matches on the end of an input string. For example, the following regular
expression matches on an AS-path that ends with “deg”.
deg$
Summary of Contents for Brocade DCX
Page 40: ...xl BigIron RX Series Configuration Guide 53 1001810 01 ...
Page 72: ...lxxii BigIron RX Series Configuration Guide 53 1001810 01 ...
Page 88: ...16 BigIron RX Series Configuration Guide 53 1001810 01 Searching and filtering output 1 ...
Page 300: ...228 BigIron RX Series Configuration Guide 53 1001810 01 Displaying IP information 7 ...
Page 318: ...246 BigIron RX Series Configuration Guide 53 1001810 01 Deploying a LAG 8 ...
Page 418: ...346 BigIron RX Series Configuration Guide 53 1001810 01 SuperSpan 12 ...
Page 482: ...410 BigIron RX Series Configuration Guide 53 1001810 01 MRP CLI example 14 ...
Page 506: ...434 BigIron RX Series Configuration Guide 53 1001810 01 Displaying VSRP information 15 ...
Page 582: ...510 BigIron RX Series Configuration Guide 53 1001810 01 Viewing Layer 2 ACLs 20 ...
Page 634: ...562 BigIron RX Series Configuration Guide 53 1001810 01 Troubleshooting ACLs 21 ...
Page 642: ...570 BigIron RX Series Configuration Guide 53 1001810 01 Trunk formation 22 ...
Page 746: ...674 BigIron RX Series Configuration Guide 53 1001810 01 Displaying RIP filters 24 ...
Page 808: ...736 BigIron RX Series Configuration Guide 53 1001810 01 Displaying OSPF information 25 ...
Page 938: ...866 BigIron RX Series Configuration Guide 53 1001810 01 Displaying MBGP information 27 ...
Page 950: ...878 BigIron RX Series Configuration Guide 53 1001810 01 Using secure copy 28 ...
Page 988: ...916 BigIron RX Series Configuration Guide 53 1001810 01 Clearing IS IS information 29 ...
Page 1054: ...982 BigIron RX Series Configuration Guide 53 1001810 01 Sample 802 1x configurations 33 ...
Page 1108: ...1036 BigIron RX Series Configuration Guide 53 1001810 01 sFlow 39 ...
Page 1190: ...1118 BigIron RX Series Configuration Guide 53 1001810 01 Displaying RIPng information 44 ...
Page 1270: ...1198 BigIron RX Series Configuration Guide 53 1001810 01 Displaying ACLs 47 ...
Page 1310: ...1238 BigIron RX Series Configuration Guide 53 1001810 01 Displaying OSPFv3 information 48 ...
Page 1382: ...1310 BigIron RX Series Configuration Guide 53 1001810 01 Commands That Require a Reload D ...
Page 1435: ...BigIron RX Series Configuration Guide 1363 53 1001810 01 VSRP E ...
Page 1436: ...1364 BigIron RX Series Configuration Guide 53 1001810 01 VSRP E ...