R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)
463
name acl-name: Specifies an ACL by its name, a case-insensitive string of 1 to 63 characters starting with
letter a to z or A to Z. The ACL name cannot be all.
Examples
# Configure Node 11 of policy aa to permit the packets matching ACL 2011.
<Sysname> system-view
[Sysname] policy-based-route aa permit node 11
[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
if-match packet-length
Use if-match packet-length to define a packet length match criterion.
Use undo if-match packet-length to remove the match criterion.
Syntax
if-match packet-length min-len max-len
undo if-match packet-length
Default
No packet length match criterion is defined.
Views
Policy node view
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.