S9700 Core Routing Switch
Configuration Guide - SPU
5.3.2 Enabling NetStream on an Interface
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface xgigabitethernet interface-number
The XGigabitEthernet interface view is displayed.
Step 3 (Optional) Run:
ip netstream sampler { fix-packets packet-interval | random-packets packet-
interval | fix-time time-interval | random-time time-interval } inbound
The packet sampling ratio is set on the XGigabitEthernet interface.
By default, the packet sampling ratio on the XGigabitEthernet interface is 1.
Step 4 Run:
ip netstream inbound
The NetStream function is enabled on the interface to collect statistics about IPv4 unicast traffic.
By default, NetStream is disabled for the IPv4 traffic.
Currently, NetStream can be enabled only on XGigabitEthernet 0/0/1.
----End
5.3.3 (Optional) Configuring the Version of Exported Packets
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
ip netstream export version version [ origin-as | peer-as ] [ bgp-nexthop ]
The version of exported packets is configured.
By default, the version of exported packets is v5, the AS option is none, and the statistics do not
contain the information about the BGP next hop.
----End
Issue 01 (2012-03-15)
NOTE
At present, only the packets of v9 contain the information about the BGP next hop.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
5 NetStream Configuration
150