R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

465
Parameters
policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. The specified
policy must already exist.
Usage guidelines
You can apply only one policy to an interface. Before you apply a new policy, you must first remove the
current policy from the interface.
Examples
# Apply policy aaa to GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] ip policy-based-route aaa
Related commands
display ip policy-based-route setup
policy-based-route
policy-based-route
Use policy-based-route to create a policy node and enter policy node view.
Use undo policy-based-route to remove a policy or policy node.
Syntax
policy-based-route policy-name [ deny | permit ] node node-number
undo policy-based-route policy-name [ deny | node node-number | permit ]
Default
No policy node is created.
Views
System view
Predefined user roles
network-admin
Parameters
policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters.
deny: Specifies the match mode for the policy node as deny.
permit: Specifies the match mode for the policy node as permit (default mode).
node node-number: Specifies a policy node by its number in the range of 0 to 65535. A smaller number
has a higher priority.
Usage guidelines
A policy that has been applied to an interface or locally cannot be removed. To remove it, you must first
cancel the application.
If a policy node is specified, the undo policy-based-route command removes the specified policy
node.
If a match mode is specified, the command removes all nodes configured with the match mode.