![Huawei AR150/200 Series Configuration Manual Download Page 266](http://html.mh-extra.com/html/huawei/ar150-200-series/ar150-200-series_configuration-manual_169293266.webp)
3.
Specify the version of the NetStream packet format on Router B.
4.
Configure the destination address and port number on Router B for sending NetStream
packets to the NSC&NDA.
5.
Specify the source address for NetStream packets on Router B. In this example, Eth 1/0/1
on Router B is the source port.
Data Preparation
To complete the configuration, you need the following data:
l
IP addresses of interfaces
l
IP address and port number of the NSC
l
Packet sampling ratio
l
Version number of exported packets
Procedure
Step 1
Configure reachable routes between Router B on the access network, Router A on the user
network, Router C on ISP1, and Router D on ISP2 (The detailed procedure is not mentioned
here.).
Step 2
Configure the NetStream function on Router B.
# Configure Router B to export the statistics about the aggregation traffic and set the version of
the exported packets.
[RouterB]
ip netstream aggregation as
[RouterB-aggregation-as]
export version 9
[RouterB-aggregation-as]
ip netstream export host 10.4.1.2 6000
[RouterB-aggregation-as]
ip netstream export source 10.4.1.1
[RouterB-aggregation-as]
enable
[RouterB-aggregation-as]
quit
# Set the sampling ratio and enable traffic statistics for inbound and outbound traffic.
[RouterB]
interface ethernet 2/0/1
[RouterB-Ethernet2/0/1]
ip netstream sampler fix-packets 100 inbound
[RouterB-Ethernet2/0/1]
ip netstream sampler fix-packets 100 outbound
[RouterB-Ethernet2/0/1]
ip netstream inbound
[RouterB-Ethernet2/0/1]
ip netstream outbound
[RouterB-Ethernet2/0/1]
quit
[RouterB]
quit
Step 3
Verify the configuration.
# After successful configurations, run the
display ip netstream all
command in the user view
of Router B to check the configurations.
<RouterB>
display ip netstream all
ip netstream aggregation as
enable
export version 9
ip netstream export source 10.4.1.1
ip netstream export host 10.4.1.2 6000
Ethernet2/0/1
ip netstream inbound
ip netstream outbound
----End
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
7 NetStream Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
255