S9700 Core Routing Switch
Configuration Guide - SPU
The XGigabitEthernet interface view is displayed.
Step 3 (Optional) Run:
ip netstream sampler { fix-packets packet-interval | random-packets packet-
interval | fix-time time-interval | random-time time-interval } inbound
The packet sampling ratio is set on the XGigabitEthernet interface.
By default, the packet sampling ratio on the XGigabitEthernet interface is 1.
Step 4 Run:
ip netstream inbound
The NetStream function is enabled on the interface to collect statistics about IPv4 unicast traffic.
To enable the NetStream function for MPLS traffic, run the ip netstream mpls inbound
command.
By default, NetStream is disabled for IPv4 or MPLS traffic.
Currently, NetStream can be enabled only on XGigabitEthernet 0/0/1.
----End
5.6.3 Configuring the Aggregation Function
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
ip netstream aggregation { as | as-tos | destination-prefix | destination-prefix-
tos | mpls-label | prefix | prefix-tos | protocol-port | protocol-port-tos | source-
prefix | source-prefix-tos }
The NetStream aggregation view is displayed.
Step 3 Run:
enable
The aggregation mode is enabled.
----End
5.6.4 (Optional) Configuring the Version of Exported Packets
Procedure
Step 1 Run:
system-view
The system view is displayed.
Issue 01 (2012-03-15)
NOTE
To collect statistics about the MPLS aggregation traffic passing an interface, enable the mpls-label mode.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
5 NetStream Configuration
161