PO1/0/0 10 0
0.0.0.0 out
58.1.1.2 0
55.67.121.68 0
0.0.0.0 0
0 0 0
0 0 0
0 0 0
0.0.0.0 0
----End
Configuration Files
l
Configuration file of the CE
#
sysname CE
#
interface Pos 1/0/0
ip address 192.168.1.2 255.255.255.0
#
return
l
Configuration file of the PE
#
slot 1
ip netstream sampler to slot 4
#
sysname PE
#
ip netstream tcp-flag enable
ip netstream sampler fix-packets 10000 inbound
ip netstream sampler fix-packets 10000 outbound
ip netstream export source 192.168.2.1
ip netstream export host 192.168.2.2 9001
#
interface gigabitethernet 2/0/0
ip address 192.168.2.1 255.255.255.0
#
interface Pos 1/0/0
ip address 192.168.1.1 255.255.255.0
ip netstream inbound
ip netstream outbound
#
return
6.11.2 Example for Collecting Statistics About IPv4 Flows
Aggregated Based on the AS Number
NetStream allows flows to be aggregated based on the AS number, which makes accounting or
management easier.
Networking Requirements
CAUTION
On a single NE5000E, an interface is numbered in the format of slot number/card number/
interface number. On the NE5000E cluster, an interface is numbered in the format of chassis
ID/slot number/card number/interface number. If the slot number is specified, the chassis ID of
the slot must also be specified.
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.
181