814
C
61: IP U
HAPTER
NICAST
if-match packet-length
Syntax
View
Parameters
Description
Related commands:
Examples
ip local policy-based-route
Syntax
View
Parameters
Description
P
R
C
OLICY
OUTING
ONFIGURATION
if-match packet-length min-len max-len
undo if-match packet-length
policy-based-route view
min-len: Minimum IP packet length in bytes, in the range of 0 to 65535.
max-len: Maximum IP packet length in bytes, in the range of 1 to 65535. max-len
must be no less than min-len.
Use the
if-match packet-length
rule.
Use the
undo if-match packet-length
if-match acl.
# Permit the packets with a length from 100 to 200 bytes.
<Sysname> system-view
[Sysname] policy-based-route aa permit node 11
[Sysname-policy-based-route] if-match packet-length 100 200
ip local policy-based-route policy-name
undo ip local policy-based-route policy-name
System view
policy-name: Policy name, which uniquely identifies a policy-based-route. It is a
string of 1 to 19 characters.
Use the
ip local policy-based-route
and reference a policy.
Use the
undo ip local policy-based-route
routing.
System policy routing is disabled by default.
Note that:
You can only reference one policy when enabling system policy routing.
■
C
OMMANDS
command to define a packet length match
command to remove the match rule.
command to enable system policy routing
command to disable system policy