R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
977
undo if-match community [ { basic-community-list-number | comm-list-name } [ whole-match ] |
adv-community-list-number ]&<1-16>
View
Routing 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.
comm-list-name: Community list name, a string of 1 to 31 characters, which can contain letters, numbers,
and signs.
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 if-match community to specify community list(s) for matching against the community attribute of BGP
routing information.
Use undo if-match community to remove the match criterion.
The match criterion is not configured by default.
Related commands: 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
Routing policy view
Default level
2: System level
Parameters
value: Cost in the range of 0 to 4294967295.
Description
Use if-match cost to match routing information having the specified cost.