- Table of Contents
-
- 03-Layer 2 Command Reference
- 00-Preface
- 01-Ethernet Interface Commands
- 02-Loopback and Null Interface Commands
- 03-MAC Address Table Commands
- 04-Spanning Tree Commands
- 05-Loopback Detection Commands
- 06-VLAN Commands
- 07-Layer 2 Forwarding Commands
- 08-PPP Commands
- 09-Ethernet Link Aggregation Commands
- 10-DCC Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-Layer 2 Forwarding Commands | 53.13 KB |
Layer 2 forwarding configuration commands
display mac-forwarding statistics
reset mac-forwarding statistics
The following information describes normal Layer 2 forwarding configuration commands.
display mac-forwarding statistics
Use display mac-forwarding statistics to display Layer 2 forwarding statistics.
Syntax
display mac-forwarding statistics [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Displays the statistics of an interface specified by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If no parameter is specified, Layer 2 forwarding statistics for all interfaces is displayed.
Examples
# Display the Layer 2 forwarding statistics for all interfaces.
<Sysname> display mac-forwarding statistics
Total received: 888
Filtered:111 STP discarded:0
Broadcast:0 Multicast:0
Unknown Unicast:0 Invalid Tag:0
Total deliver to up: 111
L2 protocol:11 Local MAC address:100
Blackhole dropped:0
Total sent: 666
Filtered:0 STP discarded:0
# Display forwarding statistics of GigabitEthernet 1/0/1.
<Sysname> display mac-forwarding statistics interface GigabitEthernet 1/0/1
GigabitEthernet1/0/1:
Input frames:4687 Input bytes:639888
Output frames:2271 Output bytes:1614471
Filtered:0 Invalid Tag:0
Table 1 Command output
Field |
Description |
Total received |
Total number of received Ethernet frames. |
Filtered |
Number of frames filtered out by 802.1Q Tagged VLAN inbound filtering rules. |
STP discarded |
Number of Ethernet frames dropped on the ingress ports blocked by STP. |
Broadcast |
Number of received broadcast frames. |
Multicast |
Number of received multicast frames. |
Unknown unicast |
Number of received unknown unicast frames. |
Invalid Tag |
Number of Ethernet frames dropped because of invalid tags. At present, Ethernet frames with the VLAN ID as 0 or 0xFFF are dropped. |
Total deliver to up |
Number of Ethernet frames delivered to upper layer protocols. |
L2 protocol |
Number of Layer 2 protocol frames delivered to the upper layer. |
Local MAC address |
Number of Ethernet frames with the destination being the MAC addresses of local Layer 3 interfaces. |
Blackhole dropped |
Number of frames dropped as they are destined to blackhole MAC addresses. |
Total sent |
Total number of sent Ethernet frames. |
Filtered |
Number of frames filtered out by the VLAN egress traffic filtering rule. |
STP discarded |
Number of Ethernet frames dropped on egress ports blocked by STP. |
Input frames |
Number of received Ethernet frames on the interface. |
Output frames |
Number of Ethernet frames sent from the interface. |
Input bytes |
Number of received bytes on the interface. |
Output bytes |
Number of bytes sent out of the interface. |
Filtered |
Number of Ethernet frames filtered out because they are from other VLANs. |
reset mac-forwarding statistics
Use reset mac-forwarding statistics to clear all Layer 2 forwarding statistics.
Syntax
reset mac-forwarding statistics
Views
User view
Default command level
1: Monitor level
Examples
# Clear all Layer 2 forwarding statistics.
<Sysname> reset mac-forwarding statistics