408
[Sysname-pbr-aa-11] if-match acl 2011
# Configure Node 11 of policy
aa
to permit the packets matching ACL
aaa
.
<Sysname> system-view
[Sysname] policy-based-route aa permit node 11
[Sysname-pbr-aa-11] if-match acl name aaa
ip local policy-based-route
Use
ip local policy-based-route
to configure local PBR based on a policy.
Use
undo ip local policy-based-route
to remove the configuration.
Syntax
ip local policy-based-route
policy-name
undo ip local policy-based-route
Default
No policy is referenced for local PBR.
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. 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