Command Manual - Routing Protocol
Quidway S3500 Series Ethernet Switches Chapter 5 IP Routing Policy Configuration Commands
Huawei Technologies Proprietary
5-12
5.1.15 if-match community
Syntax
if-match community { basic-community-number [ whole-match ] |
adv-community-number }
undo if-match community
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: Fully matching.
Description
Using if-match community command, you can match the community attribute of the
BGP information. Using undo if-match community command, you can cancel the
match of the community attribute.
This if-match sub-statement of route-policy is used to filter BGP routing information.
The match condition is specified according to the community attributes of the routing
information.
For the related commands, see route-policy, ip community-list.
Example
# A community-list numbered as 1 is defined first, allowing 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
sub-statement, which quotes the definition of the community-list.
[Quidway] ip community-list 1 permit 100:200
[Quidway] route-policy test permit node 10
[Quidway-route-policy] if-match community 1
5.1.16 if-match cost
Syntax
if-match cost value
undo if-match cost