3Com Switch 7750 Series
Command Reference Guide – Routing Protocol
Chapter 6 IP Routing Policy Configuration Commands
6-12
View
Route policy view
Parameter
basic-community-list-number:
Basic community list number, ranging from 1 to 99.
adv-community-list-number:
Advanced community list number, ranging from 100 to
199.
whole-match:
Exact match, which means that all communities and only these
communities must be displayed.
Description
Use the
if-match community
command to match community attributes of BGP
routing information.
Use the
undo if-match community
command to cancel community attribute
matching settings.
Be default, community attributes are not set for matching.
An if-match statement of Route-policy sets community attributes as matching
conditions to filter BGP routing information.
Related command: route-policy and ip community-list.
Example
# Create community-list 1, which permits routing information of AS 100 and AS 200.
Then create a Route-policy named test and define an if-match statement quoting the
definitions of community-list 1 for node 10 of the Route-policy.
<3Com> system-view
System View: return to User View with Ctrl+Z.
[3Com] ip community-list 1 permit 100:200
[3Com] route-policy test permit node 10
[3Com-route-policy] if-match community 1
6.1.15 if-match cost
Syntax
if-match cost
value
undo if-match cost
View
Route policy view