3com 4500 26-PORT Manuel D’Utilisation

Page de 466
172
C
HAPTER
 6: U
SING
 R
OUTING
 P
ROTOCOL
 C
OMMANDS
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
 Enter the Route-policy name to identify one Route-policy 
uniquely.
permit
 Enter to specify the match mode of the defined Route-policy node as 
permit mode.
deny 
Enter to specify the match mode of the defined Route-policy node as deny 
mode. 
node
 Enter the node of the route policy. 
node_number 
Enter the index of the node in the route-policy. When this 
route-policy is used for routing information filtration, the node with smaller 
node-number will be tested first. 
Description
Use the 
route-policy
 command to create and enter the Route-policy view. 
Use the 
undo route-policy
 command to delete the established Route-policy. 
By default, no Route-policy is defined.
The 
route-policy
 command is used for route information filtration or route 
policy. One Route-policy comprises some nodes and each node comprises some 
match and apply sub-statements. The match sub-statement defines the match 
rules of this node and the apply sub-statement defines the actions after passing 
the filtration of this node. The filtering relationship between the match 
sub-statements of the node is “and”, that is, all match sub-statements 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 filtration of any nodes, it cannot pass the filtration 
of this Route-policy.
Related commands: 
if-match interface
if-match acl
if-match ip-prefix
if-match ip next-hop
if-match cost
apply cost
.
Example
Configured one Route-policy policy1, whose node number is 10 and if-match 
mode is permit, and enter Route policy view.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]route-policy policy permit node 10
% New sequence of this list