HP VPN Firewall Appliances Network Management Command Reference

1078
# Define extended community list 2 to permit routing information with SoO 100:100.
<Sysname> system-view
[Sysname] ip extcommunity-list 2 permit soo 100:100
route-policy
Use route-policy to create a routing policy and a node for it, and enter routing policy view.
Use undo route-policy to remove a routing policy or a node for it.
Syntax
route-policy route-policy-name { deny | permit } node node-number
undo route-policy route-policy-name [ deny | permit ] [ node node-number ]
Default
No routing policy is created.
Views
System view
Default command level
2: System level
Parameters
route-policy-name: Specifies a name for the routing policy, a case-sensitive string of 1 to 63 characters.
deny: Specifies the deny match mode for the routing policy node. Routes that match all the if-match
clauses of the node are denied without matching against the next node.
permit: Specifies the permit match mode for the routing policy node. If a route matches all the if-match
clauses of the node, it is handled by the apply clauses of the node. If not, it matches against the next
node.
node node-number: Specifies a number for the node, in the range of 0 to 65535. A node with a smaller
number is matched first.
Usage guidelines
Use a routing policy to filter routing information. A routing policy can contain several nodes and each
node comprises a set of if-match and apply clauses. The if-match clauses define the match criteria of the
node and the apply clauses define the actions to be taken on packets matching the criteria. The relation
between the if-match clauses of a node is logic AND, meaning all the if-match clauses must be matched.
The relation between nodes is logic OR, meaning a packet passing a node passes the routing policy.
Examples
# Create node 10 in permit mode for routing policy policy1 and enter routing policy node view.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy]