3com S7906E Guide De Référence
1-14
if-match community
Syntax
if-match community
{ basic-community-list-number [ whole-match ] |
adv-community-list-number }&<1-16>
undo if-match community [ basic-community-list-number | adv-community-list-number ]&<1-16>
View
Route policy view
Default Level
2: System level
Parameters
basic-community-list-number: Basic community list number, in the range of 1 to 99.
adv-community-list-number: Advanced community list number, in the range of 100 to 199.
whole-match: Exactly matches the specified community list(s).
&<1-16>: Indicates the argument before it can be entered up to 16 times.
Description
Use the if-match community command to specify community list(s) for matching against the
community attribute of BGP routing information.
Use the undo if-match community command to remove the match criterion.
The match criterion is not configured by default.
Related commands: route-policy, ip community-list.
Examples
# Define community list 1, allowing BGP routing information with community number 100 or 200 to pass.
Then configure node 10 in permit mode of route policy test: specify community-list 1 for matching.
<Sysname> system-view
[Sysname] ip community-list 1 permit 100 200
[Sysname] route-policy test permit node 10
[Sysname-route-policy] if-match community 1
if-match cost
Syntax
if-match cost value
undo if-match cost
View
Route policy view
Default Level
2: System level