Huawei AR150/200 Series Configuration Manual page 269

Enterprise routers
Table of Contents

Advertisement

Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
[RouterB] ip netstream export source 10.2.1.1
Step 4 Configure the Flexible NetStream feature on Router B.
# Create a record named test and enter the test view.
[RouterB] ip netstream record test
[RouterB-record-test]
# Configure the aggregation key words of the test record.
[RouterB-record-test] match ipv4 destination-address
[RouterB-record-test] match ipv4 destination-port
# Configure Router B to send the inbound and outbound interface indexes in the test record to
the NSC.
[RouterB-record-test] collect interface input
[RouterB-record-test] collect interface output
# Send the number of packets and bytes of the inbound and outbound traffic to the NSC.
[RouterB-record-test] collect counter bytes
[RouterB-record-test] collect counter packets
[RouterB-record-test] quit
Step 5 Configure the Flexible NetStream feature on Eth 1/0/0.
# Apply the record test to Eth 1/0/0.
[RouterB] interface ethernet 1/0/0
[RouterB-Ethernet1/0/0] port ip netstream record test
# Set the fixed-packets sampling ratio for the inbound and outbound traffic on Eth 1/0/0 to 100.
[RouterB-Ethernet1/0/0] ip netstream sampler fix-packets 100 inbound
[RouterB-Ethernet1/0/0] ip netstream sampler fix-packets 100 outbound
# Enable the NetStream function for the inbound and outbound traffic on Eth 1/0/0.
[RouterB-Ethernet1/0/0] ip netstream inbound
[RouterB-Ethernet1/0/0] ip netstream outbound
[RouterB-Ethernet1/0/0] quit
Step 6 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 export source 10.2.1.1
ip netstream export host 10.2.1.2 6000
ip netstream export version 9
ip netstream record test
match ipv4 destination-address
match ipv4 destination-port
collect counter packets
collect counter bytes
collect interface input
collect interface output
Ethernet1/0/0
port ip netstream record test
ip netstream inbound
ip netstream outbound
----End
Configuration Files
Configuration file of Router A.
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
7 NetStream Configuration
258

Advertisement

Table of Contents
loading

Table of Contents