113
NOTE:
MAC-based VLANs are available only on hybrid ports.
The MAC-based VLAN feature is mainly configured on the downlink ports of the user access devices. Do not
enable this function together with link aggregation.
After associating MAC addresses with a VLAN, if you specify the 802.1p priority value corresponding to the
specified MAC addresses, you must use the qos trust dot1p command in interface view to configure the interface
to use the 802.1p priority in incoming packets for priority mapping. For more information about this command,
see the
ACL and QoS Configuration Guide.
Configuring static MAC-based VLAN assignment
Follow these steps to configure static MAC-based VLAN assignment:
Associate MAC addresses
with a VLAN
mac-vlan mac-address mac-address
vlan vlan-id [ priority priority ]
Enter
Ethernet
interface
view or
port group
view
Enter Ethernet
interface view
interface interface-type interface-
number
Use either command.
The configuration made in
Ethernet interface view applies
only to the current port.
The configuration made in port
group view applies to all ports in
the port group.
port-group manual port-group-name
Configure the link type of the
port(s) as hybrid
Configure the hybrid port(s) to
permit packets of specific
MAC-based VLANs to pass
through
port hybrid vlan vlan-id-list { tagged
| untagged }
Required
By default, a hybrid port only
permits the packets of VLAN 1 to
pass through.
Required
Disabled by default
Configure VLAN matching
precedence
vlan precedence { mac-vlan | ip-
subnet-vlan }
Optional
By default, VLANs are preferentially
matched based on MAC addresses.
Configuring dynamic MAC-based VLAN assignment