H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
6-12
Description
Use the if-match community command to match community attributes of BGP routing
information.
Use the undo if-match community command to remove the configuration.
Be default, community attributes are not set for matching.
This clause is one of the if-match clauses of the route policy used to set community
attributes as matching conditions to filter BGP routing information.
Related commands: route-policy, ip community-list.
Examples
# Create a community list named 1, which permits routing information of AS 100 and
AS 200. Then create a route-policy named test and define an if-match clause quoting
the definitions of community list 1 for node 10 of the route-policy.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ip community-list 1 permit 100:200
[H3C] route-policy test permit node 10
[H3C-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
Parameters
value: Route cost value, ranging from 0 to 4,294,967,295.
Description
Use the if-match cost command to configure a match rule for the route-policy to match
the cost of routing information.
Use the undo if-match cost command to remove the configuration.
By default, no if-match clause is defined.
This clause is one of the if-match clauses of the route-policy used to specify the route
cost of the routing information meeting the matching conditions.