12-13
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 routing 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
Parameters
cost
: Cost in the range 0 to 4294967295.
Description
Use the
if-match cost
command to match routing information having the specified cost.
Use the
undo if-match cost
command to remove the match criterion.
The match criterion is not configured by default.
Related commands:
if-match interface
,
if-match acl
,
if-match ip-prefix
,
if-match ip
next-hop
,
if-match tag
,
route-policy
,
apply ip-address next-hop
,
apply cost, apply
local-preference
,
apply origin
,
apply tag
.