display ip host packet statistics receive protocol interface

Function

The display ip host packet statistics receive protocol interface command displays statistics about different protocol packets received on an interface.

Format

display ip host packet statistics receive protocol interface { interface-type interface-number | interface-name }

Parameters

Parameter Description Value
interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

-

interface-name

Specifies the name of an interface.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
hostdefend read

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 interface command. To clear statistics about different protocol packets received on an interface, run the reset ip host packet statistics receive protocol interface command. The display ip host packet statistics receive protocol interface and reset ip host packet statistics receive protocol interface commands can be used together to help identify whether an interface correctly receives various protocol packets.

Precautions

When a sub-interface is deleted, packet statistics on the corresponding physical interface remain unchanged.

When the board is restarted, packet statistics on the board's interfaces are cleared. If any interface on the board has been added to an Eth-Trunk interface, packet statistics on the Eth-Trunk interface no longer include those on the member interface after the board is restarted.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display statistics about different protocol packets received on an interface.
<HUAWEI> display ip host packet statistics receive protocol interface gigabitethernet 0/1/1
---------------------------------------------------------------------------
Layer        ProtocolType                 ExpectedPkts       UnexpectedPkts
---------------------------------------------------------------------------
LINK         ARP                                     0                    0
LINK         STP                                     0                    0
LINK         LACP                                    0                    0
LINK         LLDP                                    0                    0
LINK         ISIS                                    0                    0
LINK         LinkProtocolOthers                      0                    0
RAWIP        ICMP                                    0                    0
RAWIP        OSPF                                  660                    0
RAWIP        PIM                                     0                    0
RAWIP        IGMP                                    0                    0
RAWIP        VRRP                                    0                    0
RAWIP        RawIPv4Others                           0                    0
IPV4UDP      SNMP                                    0                    0
IPV4UDP      DHCP                                 5180                    0
IPV4UDP      IPv4UdpOthers                           0                    0
IPV4TCP      BGP                                     0                    0
IPV4TCP      LDP                                     0                    0
IPV4TCP      IPv4TcpOthers                           0                    0
RAWIPV6      ICMPv6                                  0                    0
RAWIPV6      OSPFv3                                  0                    0
RAWIPV6      PIMv6                                   0                    0
RAWIPV6      MLD                                     0                    0
RAWIPV6      VRRPv6                                  0                    0
RAWIPV6      RawIPv6Others                           0                    0
IPV6UDP      SNMPv6                                  0                    0
IPV6UDP      DHCPv6                                  0                    0
IPV6UDP      IPv6UdpOthers                           0                    0
IPV6TCP      BGP4PLUS                                0                    0
IPV6TCP      LDPv6                                   0                    0
IPV6TCP      IPv6TcpOthers                           0                    0
---------------------------------------------------------------------------
Table 1 Description of the display ip host packet statistics receive protocol interface command output
Item Description
Layer

The layer of the protocol belongs to.

ProtocolType

Protocol type.

ExpectedPkts

Total number of packets the local host expects to receive.

UnexpectedPkts

Total number of packets the local host does not expect to receive.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >