R211x-HP Flexfabric 11900 Layer 3 - IP Routing Command Reference

413
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 locally. Before you apply a new policy, you must first remove the current
policy.
Local PBR is used to route locally generated packets. Do not configure local PBR unless required.
Examples
# Configure local PBR based on policy aaa.
<Sysname> system-view
[Sysname] ip local policy-based-route aaa
Related commands
display ip policy-based-route setup
policy-based-route
ip policy-based-route
Use ip policy-based-route to configure interface PBR by applying a policy to an interface.
Use undo ip policy-based-route to remove the configuration.
Syntax
ip policy-based-route policy-name
undo ip policy-based-route
Default
No policy is applied to an interface.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
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 VLAN-interface 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-Vlan2] interface vlan-interface 2