13-22
Field Description
STATE
The state of a MAC address-to-VLAN entry, which can be:
S, indicating that the MAC address-to-VLAN entry is configured statically.
D, indicating that the MAC address-to-VLAN entry is configured
automatically through the authentication server
S&D, indicating that the MAC address-to-VLAN entry is configured both
statically and dynamically
display mac-vlan interface
Syntax
display mac-vlan interface [ | { begin | exclude | include } regular-expression ]
View
Any view
Default Level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see CLI Configuration in the Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays the 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 interface command to display all the ports with MAC address-based VLAN
enabled.
Related commands: mac-vlan enable.
Examples
# Display all the interfaces with MAC address-based VLAN enabled.
<Sysname> display mac-vlan interface
MAC VLAN is enabled on following ports:
---------------------------------------
GigabitEthernet2/0/1 GigabitEthernet2/0/2 GigabitEthernet2/0/3
mac-vlan enable
Syntax
mac-vlan enable
undo mac-vlan enable