Switch 7700 Command reference Guide, v2.0

Table Of Contents
IP Routing Policy Configuration Commands 237
Use the undo if-match community command to cancel the configuration of
the matched community list number.
One of the match sub-statements of route-policy is used to filter BGP routing
information. The match condition is specified according to the community
attributes of the routing information.
Related command: 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 match
sub-statement, which quotes the definition of the community-list.
[SW7700]ip community-list 1 permit 100:200
[SW7700]route-policy test permit node 10
[SW7700-route-policy]if-match community 1
if-match cost Syntax
if-match cost value
undo if-match cost
View
Route policy view
Parameter
value: Specifies the required route metric value, ranging from 0 to 4294967295.
Description
Use the if-match cost command to configure one of the match rules of
route-policy to match the cost of the routing information.
Use the undo if-match cost command to cancel the configuration of the
match rule.
By default, no match sub-statement is defined.
Related commands: if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match tag, route-policy, apply ip next-hop,
apply local-preference, apply cost, apply origin, apply tag.
Example
A match sub-statement is defined, which allows the routing information with
routing cost 8 to pass this match sub-statement.
[SW7700-route-policy]if-match cost 8
if-match interface Syntax
if-match interface { interface_name | interface_type
interface_number }
undo if-match interface