Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 6 IP Routing Policy Configuration
Commands
3Com Corporation
6-18
6.1.23 route-policy
Syntax
route-policy route-policy-name { permit | deny } node { node-number }
undo route-policy route-policy-name [ permit | deny | node node-number ]
View
System view
Parameter
route-policy-name: Specifies the route-policy name to identify one route-policy
uniquely.
permit: Specifies the match mode of the defined route-policy node as permit mode. If a
route matches all the if-match clauses, it is permitted to pass the filtering and execute
the apply clauses of this node. If not, it will take the test of next node of this route-policy.
deny: Specifies the match mode of the defined route-policy node as deny mode. When
a route matches all the if-match clauses of this node, it will be refused to pass the
filtering and will not take the next test.
node: Node of the route policy.
node-number: Index of the node in the route-policy. When this route-policy is used for
routing information filtering, the node with smaller node-number will be tested first.
Description
Use the route-policy command to create and enter route-policy view.
Use the undo route-policy command to cancel the established route-policy.
By default, no route-policy is defined.
Route-policy is used for route information filtering. One route-policy comprises of some
nodes and each node comprises of some if-match and apply clauses. The if-match
clause defines the match rules of this node and the apply clause defines the actions
after passing the filtering of this node. The filtering relationship between the if-match
clauses of the node is "and", i.e., all if-match clauses that meet the node. The filtering
relation between route-policy nodes is "OR", i.e. passing the filtering of one node
means passing the filtering of this route-policy. If the information does not pass the
filtering of any nodes, it cannot pass the filtering of this route-policy.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, apply ip-address, apply local-preference,
apply cost, apply origin, and apply tag.