NOTE
Only one record can be configured on an interface. To modify the record in the same interface view, you
must first delete the existing configuration by running the
undo port ip netstream record
command.
Step 4
(Optional) Run:
ip netstream sampler
{
fix-packets
packet-interval
|
fix-time
time-interval
|
random-packets
packet-interval
|
random-time
time-interval
} {
inbound
|
outbound
}
The packet sampling ratio is set on the interface.
By default, an interface samples packets at fixed packet intervals, and the packet interval is 100.
Step 5
Run:
ip netstream
{
inbound
|
outbound
}
The NetStream function is enabled for the IPv4 traffic on the interface.
----End
7.6.8 Checking the Configuration
After configuring IPv4 flexible NetStream, you can view the configurations.
Prerequisites
All configurations are complete.
Procedure
l
Run the
display ip netstream
all
command to view the NetStream configuration.
l
Run the
display ip netstream
statistic
command to view the NetStream traffic statistics.
----End
Example
# After successful configurations, run the
display ip netstream
all
command in the user view
to check the configurations.
<Huawei>
display ip netstream all
ip netstream timeout inactive 100
ip netstream export source 100.1.10.10
ip netstream export host 100.1.10.1 100
ip netstream record hwrecord
match ipv4 destination-address
collect counter packets
collect interface input
collect interface output
Ethernet1/0/0
port ip netstream record hwrecord
ip netstream inbound
ip netstream outbound
# After successful configurations, run the
display ip netstream
statistic
command in the user
view to view the NetStream traffic statistics.
<Huawei>
display ip netstream statistic
Origin ingress entries : 30000
Origin ingress packets : 30000
Origin ingress octets : 1380000
Origin egress entries : 0
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.
246