Command Reference Guide
3Com Router 5000 Family and Router 6000 Family if-match community ● 151
Command Reference
if-match community
Purpose Use the if-match community command to configure the community list number
to be matched in route-policy.
Use the undo if-match community command to cancel the configuration of the
matched community list number.
Syntax if-match community { standard-community-list-number [ whole-match ] |
extended-community-list-number }
undo if-match community
Parameters standard-community-list-nu
mber
Standard community list number, ranging from 1 to
99.
extended-community-list-nu
mber
Extended community list number, ranging from 100 to
199.
whole-match
Fully matching, i.e., all the communities must appear.
Default By default, community list is not matched.
Example Define a community-list numbered as 1, and allow the autonomous system number
to contain the routing information of 100 and 200. Then, the route-policy named
test is defined. The node No.10 of the route-policy defines a if-match clause, which
quotes the definition of the community-list.
[3Com ] ip community-list 1 permit 100:200
[3Com ] route-policy test permit node 10
[3Com -route-policy] if-match community 1
View This command can be used in the following views:
■ Routing Policy view
Description The if-match clause of route-policy is used to filter BGP routing information. The
match condition is specified according to the community attributes of the routing
information.
Related Commands ■ route-policy
■ ip community-list