Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 6 IP Routing Policy Configuration
Commands
3Com Corporation
6-12
[3Com -route-policy] if-match as-path 2
6.1.16 if-match community
Syntax
if-match community { standard-community-list-number [ whole-match ] |
extended-community-list-number }
undo if-match community
View
Routing policy view
Parameter
standard-community-list-number: Standard community list number, ranging from 1 to
99.
extended-community-list-number: Extended community list number, ranging from 100
to 199.
whole-match: Fully matching, i.e., all the communities must appear.
Description
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.
By default, community list is not matched.
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 command: route-policy and ip community-list.
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