Using the display mac-vlan command, you can view the configuration of MAC address-based VLAN assignment.
display mac-vlan { mac-address { all | mac-address [ mac-address-mask | mac-address-mask-length ] } | vlan vlan-id }
Parameter |
Description |
Value |
---|---|---|
all |
Displays VLANs associated with all MAC addresses. |
- |
mac-address mac-address |
Displays the VLAN associated with a specified MAC address. |
The value is in H-H-H format. H is a hexadecimal number of 1 to 4 digits. |
mac-address-mask |
Specifies the mask of a MAC address. |
The value is in H-H-H format. H is a hexadecimal number of 1 to 4 digits. The default value is FFFF-FFFF-FFFF. |
mac-address-mask-length |
Specifies the mask length of a MAC address. |
The value is an integer that ranges from 1 to 48. The default value is 48. |
vlan vlan-id |
Displays the configuration of a specified MAC address-based VLAN. |
The value is an integer that ranges from 1 to 4094. |
Usage Scenario
After configuring MAC address-based VLAN assignment, you can run the display mac-vlan command to verify the configuration.
When using the display mac-vlan command, pay attention to the following points:
# Display the configuration of all MAC address-based VLANs.
<HUAWEI> display mac-vlan mac-address all
---------------------------------------------------------------
MAC Address MASK VLAN Priority
---------------------------------------------------------------
0022-0033-0044 ffff-ffff-ffff 200 0
Total MAC VLAN address count: 1
Item |
Description |
---|---|
MAC Address |
MAC address associated with a VLAN. To specify the parameter, run the mac-vlan mac-address command. |
MASK |
Mask of a MAC address. To specify the parameter, run the mac-vlan mac-address command. |
VLAN |
ID of the VLAN associated with a MAC address. To specify the parameter, run the mac-vlan mac-address command. |
Priority |
802.1p priority of the VLAN associated with the MAC address. To specify the parameter, run the mac-vlan mac-address command. |