ip host packet statistics protocol enable

Function

The ip host packet statistics protocol enable command configures a device to collect statistics about different protocol packets received on an interface.

The undo ip host packet statistics protocol enable command cancels the configuration.

By default, the device does not collect statistics about different protocol packets received on an interface.

Format

ip host packet statistics protocol enable

undo ip host packet statistics protocol enable

Parameters

None

Views

100GE-Trunk member Layer 2 interface view, 100GE-Trunk member interface view, Layer 2 100GE interface view, 100ge sub-interface view, 100GE interface view, Layer 2 10GE interface view, 10GE sub-interface view, 10GE interface view, 10G LAN interface view, 10G WAN interface view, EVC view of a 10GE interface, 25GE-L2 view, 25GE sub-interface view, 400GE Layer 2 sub-interface view, 400GE-L2 view, 400GE sub-interface view, 400GE interface view, 40GE-Trunk member Layer 2 interface view, 40GE-Trunk member interface view, Layer 2 40GE interface view, 40GE sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, Layer 2 50GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk member interface view, Eth-Trunk interface view, FlexE-100G interface view, FlexE-400G interface view, FlexE-50G interface view, FlexE-50|100G interface view, FlexE sub-interface view, GE Layer 2 sub-interface view, Layer 2 GE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, PW-VE interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, XGE sub-interface view, XGE interface view, Layer 2 sub-interface view, Sub-interface view, Management interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
hostdefend write

Usage Guidelines

Usage Scenario

To configure a device to collect statistics about different protocol packets received on an interface, run the ip host packet statistics protocol enable command. To view statistics about different protocol packets received on an interface, run the display ip host packet statistics receive protocol command. To clear statistics about different protocol packets received on an interface, run the reset ip host packet statistics receive protocol command.

Example

# Configure a device to collect statistics about different protocol packets received on an interface.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] ip host packet statistics protocol enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >