R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference

4
Parameters
interface-type interface-number: Specifies an interface 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.
Examples
# Display MAC address learning status of all Ethernet ports.
<Sysname> display mac-address mac-learning
Mac address learning status of the switch: enable
PortName Learning Status
GigabitEthernet4/0/1 enable
GigabitEthernet4/0/2 enable
GigabitEthernet4/0/3 enable
Table 2 Command output
Field Description
Mac-address learning status of the switch Global MAC address learning status (enabled or disabled).
PortName Port name.
Learning Status MAC address learning status (enabled or disabled) for a port.
display mac-address statistics
Use display mac-address statistics to display the statistics of the MAC address table.
Syntax
display mac-address statistics [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: 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.