MAC-based VLANs are available only on hybrid ports.
•
•
Do not configure a super VLAN as the VLAN of a MAC address-to-VLAN entry.
The MAC-based VLAN feature is mainly configured on downlink ports of user access devices. Do
•
not enable this function together with link aggregation.
With MSTP enabled, if a port is blocked in the MSTI of the target MAC-based VLAN, the port drops
•
received packets instead of delivering them to the CPU. As a result, the receiving port will not be
dynamically assigned to the corresponding VLAN. Do not configure dynamic MAC-based VLAN
assignment together with MSTP, because the former is mainly configured on the access side.
Configuration procedure
To configure static MAC-based VLAN assignment:
Step
1.
Enter system view.
2.
Associate a specific MAC
address with a VLAN.
3.
Enter interface view or
port group view.
4.
Configure the link type of
the ports as hybrid.
5.
Configure the hybrid
ports to permit packets
from specific MAC-based
VLANs to pass through.
6.
Enable the MAC-based
VLAN feature.
7.
Configure VLAN
matching precedence.
To configure dynamic MAC-based VLAN:
Step
1.
Enter system view.
Command
system-view
mac-vlan mac-address mac-address
[ mask mac-mask ] vlan vlan-id
[ priority priority ]
•
Enter interface view:
interface interface-type
interface-number
•
Enter port group view:
port-group manual
port-group-name
port link-type hybrid
port hybrid vlan vlan-list { tagged |
untagged }
mac-vlan enable
vlan precedence { mac-vlan |
ip-subnet-vlan }
Command
system-view
102
Remarks
N/A
N/A
Use one of the commands.
•
The configuration made in
Ethernet interface view applies
only to the port.
•
The configuration made in port
group view applies to all ports in
the port group.
By default, all ports are access ports.
By default, a hybrid port only permits
packets from VLAN 1 to pass
through.
By default, MAC-based VLAN is
disabled.
Optional.
By default, VLANs are preferably
matched based on MAC addresses.
Remarks
N/A