R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
377
No policy is referenced for interface PBR by default.
Note that:
Only one policy can be referenced by an interface for PBR.
The referenced policy applies to all packets arriving on the interface.
Examples
# Configure PBR based on policy aaa on GigabitEthernet0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/1
[Sysname-GigabitEthernet0/1] ip policy-based-route aaa
policy-based-route
Syntax
policy-based-route policy-name [ deny | permit ] node node-number
undo policy-based-route policy-name [ deny | node node-number | permit ]
View
System view
Default level
2: System level
Parameters
policy-name: Policy name, a string of 1 to 19 characters.
deny: Specifies the match mode of the policy node as deny.
permit: Specifies the match mode of the policy node as permit.
node node-number: Number of a policy node, in the range of 0 to 65535. A node with a smaller
node-number has a higher match priority than a node with a greater one.
Description
Use the policy-based-route command to create a policy, policy node, or both, and enter PBR policy node
view.
Use the undo policy-based-route command to remove a created policy or policy node.
No policy or policy node is created by default.
The default match mode of a policy node is permit.
Examples
# Configure the match mode of node 10 of policy 1 as permit, and enter PBR policy node view.
<Sysname> system-view
[Sysname] policy-based-route policy1 permit node 10
[Sysname-pbr-policy1-10]