# Configure the destination address, destination port number, and source address for NetStream
flows output in V5 format
[~PE]
ip netstream export host 192.168.2.2 9001
[~PE]
ip netstream export source 192.168.2.1
# Enable NetStream sampling and configure the fixed packet sampling mode.
[~PE]
ip netstream sampler fix-packets 10000 inbound
[~PE]
ip netstream sampler fix-packets 10000 outbound
[~PE]
commit
# Configure NetStream to collect statistics about incoming and outgoing flows on POS 1/0/0 of
the PE.
[~PE]
interface pos 1/0/0
[~PE-Pos1/0/0]
undo shutdown
[~PE-Pos1/0/0]
ip netstream inbound
[~PE-Pos1/0/0]
ip netstream outbound
[~PE-Pos1/0/0]
quit
[~PE]
commit
Step 3
Verify the configuration result.
# Run the
display ip netstream cache origin slot 4
command in the user view. You can view
information about various original flows in the NetStream flow buffer.
<PE>
display ip netstream cache origin slot 4
Show information of IP and MPLS cache of slot 4 is starting.
get show cache user data success.
DstIf DstP Msk Pro Tos Flags Packets
SrcIf SrcP Msk
NextHop Direction
DstIP DstAs
SrcIP SrcAs
BGP: BGP NextHop TopLabelType
Label1 Exp1 Bottom1
Label2 Exp2 Bottom2
Label3 Exp3 Bottom3
TopLabelIpAddress VlanId
--------------------------------------------------------------------------
Unknown 20 0 6 0 0 1
PO2/0/0 10 0
0.0.0.0 in
58.1.1.2 0
55.67.121.72 0
0.0.0.0 0
0 0 0
0 0 0
0 0 0
0.0.0.0 0
Unknown 20 0 6 0 0 1
PO1/0/0 10 0
0.0.0.0 in
58.1.1.2 0
55.67.121.70 0
0.0.0.0 0
0 0 0
0 0 0
0 0 0
0.0.0.0 0
PO2/0/0 20 0 6 0 0 1
HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
6 NetStream Configuration
Issue 01 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
180