< Home

ip netstream

Function

The ip netstream command enables IPv4 flow statistics collection on the inbound and outbound interfaces.

The undo ip netstream command restores the default setting.

By default, statistics collection for IPv4 flows is disabled on the inbound and outbound interfaces.

Format

ip netstream { inbound | outbound }

undo ip netstream { inbound | outbound }

Parameters

Parameter

Description

Value

inbound

Enables flow statistics collection on the inbound interface.

-

outbound

Enables flow statistics collection on the outbound interface.

-

Views

GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To export IPv4 flow statistics, you must run the ip netstream command to enable the IPv4 flow statistics collection function on the interface.

Precautions

  • When the IPv4 and IPv6 flow statistics collection function is enabled on the interface, statistics about unicast and multicast packets are collected.
  • After the statistics collection function is enabled for IPv4 and IPv6 flows, the statistics are independent of each other.
  • Currently, the flow statistics collection function can be enabled only on the main interface. If the NetStream function is enabled on the main interface but you do not set a sampling ratio using the ip netstream sampler command, the main interface uses the sampling ratio of 1:1000. If you set the sampling ratio, the interface uses this sampling ratio.

Example

# Enable the flow statistics collection function for the incoming IPv4 packets on GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] ip netstream inbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >