Route-Policy - HP E4510-48G Command Reference Manual

4510g series
Table of Contents

Advertisement

Related commands: if-match interface, if-match acl, if-match ip-prefix, if-match ip next-hop,
if-match cost, route-policy, apply ip-address next-hop, apply cost, apply tag.
Examples
# Configure node 10 in permit mode of route policy policy1 to permit RIP routing information with a tag
of 8.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match tag 8

route-policy

Syntax
route-policy route-policy-name { permit | deny } node node-number
undo route-policy route-policy-name [ node node-number ]
View
System view
Default Level
2: System level
Parameters
route-policy-name: Route policy name, a string of 1 to 19 characters.
permit: Specifies the matching mode of the route policy node as permit. If a route satisfies all the
if-match clauses of the node, it passes the node and then is executed with the apply clauses of the
node. If not, it goes to the next node of the route policy.
deny: Specifies the matching mode of the route policy node as deny. If a route satisfies all the if-match
clauses of the node, it cannot pass the node and will not go to the next node.
node node-number: Node number, in the range 0 to 65535. A node with a smaller number is matched
first.
Description
Use the route-policy command to create a route policy and a node of it and enter route policy view.
Use the undo route-policy command to remove a route policy or a node of it.
No route policy is created by default.
A route policy is used for routing information filtering or policy based routing. It contains several nodes
and each node comprises a set of if-match and apply clauses. The if-match clauses define the
matching criteria of the node and the apply clauses define the actions to be taken on packets passing
the node. The relation between the if-match clauses of a node is logic AND, namely, all the if-match
clauses must be satisfied. The relation between different route policy nodes is logic OR, namely, a
packet passing a node passes the route policy.
Related commands: if-match interface, if-match acl, if-match ip-prefix, if-match ip next-hop,
if-match cost, if-match tag, apply ip-address next-hop, apply cost, apply tag.
6-6

Advertisement

Table of Contents
loading

Table of Contents