3Com Switch 8800 Configuration Guide Chapter 22 IP Routing Policy Configuration
22-4
satisfies all the if-match clauses of the node, it will be denied by the node and will not
take the test of the next node. If not, however, the route will take the test of the next
node.
The nodes have the “OR” relationship. In other words, the router will test the route
against the nodes in the route-policy in sequence. Once a node is matched, the
route-policy filtering will be passed.
By default, the route-policy is not defined.
Note: If multiple nodes are defined in a route-policy, at least one of them should be in
permit mode. Apply the route-policy to filter routing information. If the routing
information does not match any node, the routing information will be denied by the
route-policy. If all the nodes in the route-policy are in deny mode, all routing information
will be denied by the route-policy.
II. Defining if-match clauses for a route-policy
The if-match clauses define the matching rules. That is, the filtering conditions that the
routing information should satisfy for passing the route-policy. The matching objects are
some attributes of routing information.
Perform the following configuration in route policy view.
Table 22-2 Define if-match conditions
Operation Command
Match the AS path domain of the BGP
routing information if-match as-path acl-number
Cancel the matched AS path domain of the
BGP routing information undo if-match as-path
Match the community attribute of the BGP
routing information
if-match community
{ basic-community-number
[ whole-match ] |
adv-community-number }
Cancel the matched community attribute of
the BGP routing information undo if-match community
Match the destination address of the
routing information if-match { acl acl-number | ip-prefix
ip-prefix-name }
Cancel the matched destination address of
the routing information undo if-match { acl | ip-prefix }
Match the next-hop interface of the routing
information if-match interface { interface-type
interface-number }
Cancel the matched next-hop interface of
the routing information undo if-match interface
Match the next-hop of the routing
information
if-match ip next-hop { acl
acl-number | ip-prefix
ip-prefix-name }