< Home

port ip netstream record

Function

The port ip netstream record command applies a flexible flow statistics template to an interface.

The undo port ip netstream record command unbinds a specified flexible flow statistics template from an interface.

By default, no flexible flow statistics template is applied to an interface.

Format

port ip netstream record record-name [ vxlan inner-ip ] [ inbound | outbound ]

undo port ip netstream record [ record-name [ vxlan inner-ip ] [ inbound | outbound ] ]

If neither inbound nor outbound is configured, the flexible flow statistics template is applied to both the inbound and outbound directions of an interface.

The S5720-HI does not support the vxlan inner-ip parameter.

Parameters

Parameter

Description

Value

record-name

Specifies the name of a flexible flow statistics template.

The value must be the name of an existing flexible flow statistics template.

inbound

Applies the flexible flow statistics template to the inbound direction of an interface.

-

outbound

Applies the flexible flow statistics template to the outbound direction of an interface.

-

vxlan inner-ip

Applies a VXLAN flexible statistics template to an 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

After a flexible flow statistics template is configured, run the port ip netstream record command to apply the template to an interface.

The interface then aggregates flows based on the configured aggregation keywords, collects flow statistics, and exports aged flows to the NSC.

Prerequisites

A flexible flow statistics template has been created using the ip netstream record command, and at least one aggregation keyword has been configured using the match command in the flexible flow statistics template view.

Precautions

  • If the vlan parameter is configured in the flexible flow statistics template, it is recommended that the template be applied to Layer 2 Ethernet interfaces.
  • If the input parameter is configured in the flexible flow statistics template, the template can be applied only to the inbound direction of an interface. If the output parameter is configured in the flexible flow statistics template, the template can be applied only to the outbound direction of an interface.
  • The flexible flow statistics template that has been applied to an interface cannot be modified or deleted. Run the undo port ip netstream record command to unbind a specified flexible flow statistics template from the interface, and then you can modify or delete the template.
  • Each direction of an interface can have only one flexible flow statistics template applied. The templates applied to the inbound and outbound directions of an interface can be the same or different. To change a flexible flow statistics template, run the undo port ip netstream record command to delete the existing template.

Example

# Configure the flexible flow statistics template abc1 (aggregating flows based on the source and destination IP addresses, collecting statistics about the number of packets, and exporting the inbound interface index). Apply the template to GE0/0/1.

<HUAWEI> system-view
[HUAWEI] ip netstream record abc1
[HUAWEI-record-abc1] match ip source-address
[HUAWEI-record-abc1] match ip destination-address
[HUAWEI-record-abc1] collect counter packets
[HUAWEI-record-abc1] collect interface input
[HUAWEI-record-abc1] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port ip netstream record abc1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >