BigIron RX Series Configuration Guide
795
53-1001810-01
Filtering
26
If you want to filter for a special character instead of using the special character as described in
Table 26.2 on page 26-45, enter “\” (backslash) in front of the character. For example, to filter on
AS-path strings containing an asterisk, enter the asterisk portion of the regular expression as “\*”.
BigIron RX(config-bgp)# ip as-path access-list acl2 deny \*
To use the backslash as a string character, enter two slashes. For example, to filter on AS-path
strings containing a backslash, enter the backslash portion of the regular expression as “\\”.
BigIron RX(config-bgp)# ip as-path access-list acl2 deny \\
Filtering communities
You can filter routes received from BGP4 neighbors based on community names.
_
An underscore matches on one or more of the following:
•
, (comma)
•
{ (left curly brace)
•
} (right curly brace)
•
( (left parenthesis)
•
) (right parenthesis)
•
The beginning of the input string
•
The end of the input string
•
A blank space
For example, the following regular expression matches on “100” but not on “1002”, “2100”,
and so on.
_100_
[ ]
Square brackets enclose a range of single-character patterns. For example, the following
regular expression matches on an AS-path that contains “1”, “2”, “3”, “4”, or “5”.
[1-5]
You can use the following expression symbols within the brackets. These symbols are allowed
only inside the brackets.
•
^ – The caret matches on any characters except the ones in the brackets. For example,
the following regular expression matches on an AS-path that does not contain “1”, “2”,
“3”, “4”, or “5”.
[^1-5]
•
- The hyphen separates the beginning and ending of a range of characters. A match
occurs if any of the characters within the range is present. See the example above.
|
A vertical bar (sometimes called a pipe or a “logical or”) separates two alternative values or
sets of values. The AS-path can match one or the other value. For example, the following
regular expression matches on an AS-path that contains either “abc” or “defg”.
(abc)|(defg)
NOTE: The parentheses group multiple characters to be treated as one value. See the
following row for more information about parentheses.
( )
Parentheses allow you to create complex expressions. For example, the following complex
expression matches on “abc”, “abcabc”, or “abcabcabcdefg”, but not on “abcdefgdefg”.
((abc)+)|((defg)?)
TABLE 117
BGP4 special characters for regular expressions (Continued)
Character
Operation
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 ...