< Home

display mac-vlan

Function

Using the display mac-vlan command, you can view the configuration of MAC address-based VLAN assignment.

Format

display mac-vlan { mac-address { all | mac-address [ mac-address-mask | mac-address-mask-length ] } | vlan vlan-id }

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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:

  • If mac-address mac-address is specified, the VLAN associated with the specified MAC address is displayed.
  • If mac-address all is specified, all VLANs associated with MAC addresses are displayed.
  • If vlan vlan-id is specified, configuration of the specified MAC address-based VLAN is displayed.

Example

# 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

Table 1 Description of the display mac-vlan command output

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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >