The display l2protocol-tunnel statistics command displays statistics about Layer 2 protocol packets that are transparently transmitted on a specified interface.
display l2protocol-tunnel statistics interface-type interface-number [ { protocol-type } &<1-16> | user-defined-protocol protocol-name ]
Parameter |
Description |
Value |
---|---|---|
interface-type interface-number |
Displays statistics about Layer 2 protocol packets that are transparently transmitted on a specified interface.
|
- |
protocol-type |
Displays statistics about a specified protocol. |
The protocol type can be:
|
user-defined-protocol protocol-name |
Displays statistics about transparently transmitted packets of a user-defined protocol. protocol-name specifies the name of a user-defined protocol. |
The value is a string of 1 to 31 characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string. |
After configuring Layer 2 protocol tunneling, you can run this command to view statistics about transparently transmitted packets of a specified Layer 2 protocol. The command output includes:
Number of Layer 2 protocol packets received by the inbound interface
Number of Layer 2 protocol packets sent from the outbound interface
Number of Layer 2 protocol packets discarded when the threshold is exceeded
According to the output information, you can collect traffic statistics and locate faults on the interface.
When an interface transparently transmits packets of multiple Layer 2 protocols, it is recommended that you specify the optional parameters or a regular expression in the command to filter the output information. Otherwise, too much information will be displayed, causing the following problems:
The displayed information is repeatedly refreshed, causing desired information unable to be located.
The system does not respond because of prolonged information traversing and searching.
When using this command, pay attention to the following points:
If no optional parameter is specified, statistics about all Layer 2 protocol packets transparently transmitted on the specified interface are displayed.
If protocol-type is specified, statistics about packets of the specified Layer 2 protocol that are transparently transmitted on the specified interface are displayed.
If user-defined-protocol is specified, statistics about packets of the specified user-defined Layer 2 protocol that are transparently transmitted on the specified interface are displayed.
# Display statistics about transparently transmitted STP and HGMP protocol packets.
<HUAWEI> display l2protocol-tunnel statistics GigabitEthernet 0/0/1 stp hgmp -------------------------------------------------------------------------------- Port Protocol Drop Input Output Drop Threshold Packets Packets Packets -------------------------------------------------------------------------------- GE0/0/1 stp 100 12345 67890 1235
Item |
Description |
---|---|
Port |
Name of an interface on which Layer 2 protocol tunneling is enabled. |
Protocol |
Name of a Layer 2 protocol whose packets are transparently transmitted. |
Drop Threshold |
Drop threshold of transparently transmitted Layer 2 protocol packets. The drop threshold is set by using the l2protocol-tunnel drop-threshold command. The unit is packet per second (pps). When the rate of incoming Layer 2 protocol packets on an interface exceeds the threshold, the interface discards excess packets. |
Input Packets |
Number of incoming Layer 2 protocol packets on the interface enabled with Layer 2 protocol tunneling. |
Output Packets |
Number of outgoing Layer 2 protocol packets on the interface enabled with Layer 2 protocol tunneling. |
Drop Packets |
Number of Layer 2 protocol packets discarded on the interface after the traffic rate exceeds the drop threshold. |