|: 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 mac-address mac-address is specified, but mask is not specified, only the MAC address-to-VLAN entry
containing the specified MAC address is displayed.
Examples
# Display all the MAC address-to-VLAN entries.
<Sysname> display mac-vlan all
The following MAC-VLAN address exist:
S: Static
MAC ADDR
-------------------------------------------------------------------
0008-0001-0000
0002-0001-0000
Total MAC VLAN address count:2
Table 10 Command output
Field
S: Static
D: Dynamic
MAC ADDR
MASK
VLAN ID
PRIO
STATE
display mac-vlan interface
Use display mac-vlan interface to display all the ports with MAC-based VLAN enabled.
D: Dynamic
MASK
FFFF-FF00-0000
FFFF-FFFF-FFFF
Description
S stands for the MAC address-to-VLAN entries that are configured statically.
D stands for the MAC address-to-VLAN entries that are configured dynamically.
MAC address of a MAC address-to-VLAN entry.
Mask of the MAC address of a MAC address-to-VLAN entry.
VLAN ID of a MAC address-to-VLAN entry.
802.1p priority corresponding to the MAC address of a MAC address-to-VLAN
entry.
State of a MAC address-to-VLAN entry:
•
S—The MAC address-to-VLAN entry is configured statically.
•
D—The MAC address-to-VLAN entry is configured automatically through the
authentication server.
•
S&D—The MAC address-to-VLAN entry is configured both statically and
dynamically.
VLAN ID
PRIO
5
3
5
3
54
STATE
S
S&D