R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

310
ip policy-based-route
Use ip policy-based-route to configure PBR by applying a policy on the interface.
Use undo ip policy-based-route to remove the configuration.
Syntax
ip policy-based-route policy-name
undo ip policy-based-route policy-name
Default
No policy is applied on an interface.
Views
Interface view
Default command level
2: System level
Parameters
policy-name: Specifies a policy by its name, a string of 1 to 19 characters.
Usage guidelines
You can apply only one policy on an interface PBR. If you perform this command multiple times, only the
last specified policy takes effect.
Examples
# Apply policy aaa on GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet2/1/1
[Sysname-GigabitEthernet2/1/1] ip policy-based-route aaa
policy-based-route
Use policy-based-route to create a policy node, and enter policy node view. If the specified policy node
already exists, the command directly places you into policy node view.
Use undo policy-based-route to remove a created 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 ]
Views
System view
Default command level
2: System level
Parameters
policy-name: Specifies a policy name, a string of 1 to 19 characters.
deny: Specifies the match mode of the policy node as deny.