![H3C S5120-SI Series Скачать руководство пользователя страница 145](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_command-reference-manual_3713315145.webp)
134
mac-address
mac-address
: Displays the MAC address-to-VLAN entry containing the specified MAC
address.
mask
mac-mask
: Displays the MAC address-to-VLAN entries with their MAC addresses in the specified
range.
static
: Displays the statically configured MAC address-to-VLAN entries.
vlan
vlan-id
: Displays the MAC address-to-VLAN entries associated with the specified VLAN.
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see the
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, which is a case sensitive string of 1 to 256
characters.
Description
Use the
display mac-vlan
command to display the specified MAC address-to-VLAN entries.
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 D: Dynamic
MAC ADDR MASK VLAN ID PRIO STATE
-------------------------------------------------------------------
0008-0001-0000 FFFF-FF00-0000 5 3 S
0002-0001-0000 FFFF-FFFF-FFFF 5 3 S&D
Total MAC VLAN address count:2
Table 31
Output description
Field Description
S: Static
The character
S
stands for the MAC address-to-VLAN entries that are
configured statically.
D: Dynamic
The character
D
stands for the MAC address-to-VLAN entries that are
configured dynamically.
MAC ADDR
MAC address of a MAC address-to-VLAN entry.
MASK
Mask of the MAC address of a MAC address-to-VLAN entry.
VLAN ID
VLAN ID of a MAC address-to-VLAN entry.
PRIO
802.1p priority corresponding to the MAC address of a MAC
address-to-VLAN entry.