Command Reference Guide
3Com Router 5000 Family and Router 6000 Family route-policy ● 279
Command Reference
route-policy
Purpose Use the route-policy command to create and enter route-policy view.
Use the undo route-policy command to cancel the established route-policy.
Syntax route-policy route-policy-name { permit | deny } node { node-number }
undo route-policy route-policy-name [ permit | deny | node node-number
]
Parameters 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.
Default By default, no route-policy is defined.
Example Display how to configure one route-policy policy1, whose node number is 10 and the
match mode is permit, and enter route policy view.
[3Com ] route-policy policy1 permit node 10
[3Com -route-policy]
View This command can be used in the following views:
■ System view
Description 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.