385
Examples
# Set the upper limit to 5000 for NetStream entries.
<Sysname> system-view
[Sysname] ip netstream max-entry 5000
ip netstream mpls
Use ip netstream mpls to enable MPLS packet statistics collection.
Use undo ip netstream mpls to disable MPLS packet statistics collection.
Syntax
ip netstream mpls [ label-positions label-position1 [ label-position2 [ label-position3 ] ] ]
[ no-ip-fields ]
undo ip netstream mpls
Default
MPLS packet statistics collection is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
label-positions: Specifies position of the labels to be counted.
label-position1: Specifies the position of the first label in the label stack, in the range of 1 to 6.
label-position2: Specifies the position of the second label in the label stack, in the range of 1 to 6.
label-position3: Specifies the position of the third label in the label stack, in the range of 1 to 6.
no-ip-fields: Specifies not to count IP fields.
Usage guidelines
This command enables statistics collection of MPLS packets for both IPv4 and IPv6 NetStream.
If you do not specify any keywords or options, the top label and IP fields are counted.
If multiple labels are to be counted, the label positions specified cannot be the same and are in
ascending order.
Examples
# Enable NetStream for MPLS packets with top label counted but without IP fields.
<Sysname> system-view
[Sysname] ip netstream mpls no-ip-fields
ip netstream timeout active
Use ip netstream timeout active to set the aging timer for active flows.
Use undo ip netstream timeout active to restore the default.
Syntax
ip netstream timeout active minutes
undo ip netstream timeout active