1-12
z
MAC-based VLANs are available only on hybrid ports.
z
Because MAC-based dynamic port assignment is mainly configured on the downlink ports of the
user access devices, do not enable this function together with link aggregation.
z
With MSTP enabled, if the MST instance for the corresponding VLAN is blocked, the packet with
the unknown source MAC address will fail to be sent to the CPU. As a result, the receiving port
cannot be dynamically assigned to the corresponding VLAN. Since MAC-based dynamic port
assignment is mainly configured on the access side, you are recommended not to configure it
together with MSTP.
Follow these steps to configure a MAC-based VLAN:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Associate MAC addresses
with a VLAN
mac-vlan mac-address
mac-address
vlan vlan-id
[
priority
priority
]
Required
Enter
Ethernet
interface view
interface interface-type
interface-number
Enter
Ethernet
interface
view or
port group
view
Enter port
group view
port-group manual
port-group-name
Use either command.
In Ethernet interface view, the
subsequent configurations
apply only to the current port;
in port group view, the
subsequent configurations
apply to all ports in the port
group.
Configure the link type of
the port(s) as hybrid
port link-type
hybrid
Required
Configure the current
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.
Enable MAC-based VLAN
mac-vlan enable
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.
Protocol-Based VLAN Configuration
Introduction to Protocol-Based VLAN