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.
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.
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. |
- |
GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view
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
# 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