10
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 Ethernet 1/1.
<Sysname> display mac-forwarding statistics interface ethernet 1/1
Ethernet 1/1:
Input frames:100 Input bytes:23