ip host packet statistics protocol all

Function

The ip host packet statistics protocol all command enables the global statistics function of sent and received packets.

The undo ip host packet statistics protocol all command disables the global statistics function of sent and received packets.

By default, the global statistics function of sent and received packets is not enabled.

Format

ip host packet statistics protocol all

undo ip host packet statistics protocol all

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
hostdefend write

Usage Guidelines

Usage Scenario

To enable the global statistics function of sent and received packets, run the ip host packet statistics protocol all command.

Enabling this function affects the device performance. Therefore, exercise caution when running this command.

Example

# Enable the global statistics function of sent and received packets.
<HUAWEI> system-view
[~HUAWEI] ip host packet statistics protocol all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >