Configure NetStream on S series switches

NetStream is a traffic statistics and analysis technology. NetStream supports exporting of original, aggregation, and flexible flow statistics.
The following is an example of configuring exporting of original flow on an S series switch (except the S1700).
1. Configure NetStream sampling on GE1/0/1, set the sampling mode to packet-based regular sampling, and set the interval to 1200.
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] ip netstream sampler fix-packets 1200 inbound
[HUAWEI-GigabitEthernet1/0/1] ip netstream sampler fix-packets 1200 outbound
[HUAWEI-GigabitEthernet1/0/1] quit
2. Set the inactive aging time to 100 seconds and enable FIN- and RST-based aging.
[HUAWEI] ip netstream timeout inactive 100
[HUAWEI] ip netstream tcp-flag enable
3. Set the source IP address of the exported packets carrying original flow statistics to, destination IP address to, and destination port number to 6000.
[HUAWEI] ip netstream export source
[HUAWEI] ip netstream export host 6000
4. Set the version of exported packets to version 9.
[HUAWEI] ip netstream export version 9
5. Enable NetStream flow statistics collection on GE1/0/1.
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] ip netstream inbound
[HUAWEI-GigabitEthernet1/0/1] ip netstream outbound
[HUAWEI-GigabitEthernet1/0/1] quit
[HUAWEI] quit

Scroll to top