F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
549
Default
No policy is referenced for local PBR.
Views
System view
Default command level
2: System level
Parameters
policy-name: Policy name, a string of 1 to 19 characters.
Usage guidelines
You can configure only one policy for local PBR. If you perform this command multiple times, only the last
specified policy takes effect.
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
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 0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1