896
C
69: IP
6 U
HAPTER
V
Example
if-match packet-length
Syntax
View
Parameter
Description
Related command:
Example
ipv6 local policy-based-route
Syntax
View
Parameter
Description
P
R
C
NICAST
OLICY
OUTING
ONFIGURATION
# Permit the packets matching ACL 2000.
<Sysname> system-view
[Sysname] ipv6 policy-based-route aa permit node 10
[Sysname-pbr6-aa-10] if-match acl6 2000
if-match packet-length min-len max-len
undo if-match packet-length
IPv6 policy-based-route view
min-len: Minimum IPv6 packet length in bytes, in the range of 0 to 65535.
max-len: Maximum IPv6 packet length in bytes, in the range of 1 to 65535. The
value of max-len must be no less than that of min-len.
Use the
if-match packet-length
rule.
Use the
undo if-match packet-length
if-match acl6.
# Match the IPv6 packets with a length from 100 to 200 bytes.
<Sysname> system-view
[Sysname] ipv6 policy-based-route aa permit node 11
[Sysname-pbr6-aa-11] if-match packet-length 100 200
ipv6 local policy-based-route policy-name
undo ipv6 local policy-based-route [ policy-name ]
System view
policy-name: Policy name, which uniquely identifies an IPv6 policy routing. It is a
string of 1 to 19 characters.
Use the
ipv6 local policy-based-route
routing and reference a policy.
Use the
undo ipv6 local policy-based-route
policy routing.
IPv6 system policy routing is disabled by default.
C
OMMANDS
command to define a packet length match
command to remove the match rule.
command to enable IPv6 system policy
command to disable IPv6 system