HP MSR2000/3000/4000 Router Series Layer 3 - IP Routing Command Reference
418
Predefined user roles
network-admin
Parameters
min-len: Specifies the minimum IP packet length in the range of 1 to 65535 bytes.
max-len: Specifies the maximum IP packet length in the range of 1 to 65535 bytes. The value of max-len
must be no less than that of min-len.
Usage guidelines
The packet length range includes boundary values. For example, if you set the min-len and max-len
arguments to 100 and 200, respectively, packets with lengths of 100 bytes and 200 bytes are also
matched.
Examples
# Match packets with a length from 100 to 200 bytes.
<Sysname> system-view
[Sysname] policy-based-route aa permit node 11
[Sysname-pbr-aa-11] if-match packet-length 100 200
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