R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide

99
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:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Associate a specific MAC
address with a VLAN.
mac-vlan mac-address mac-address
[ mask mac-mask ] vlan vlan-id
[ priority priority ]
N/A
3. Enter interface view or
port group view.
Enter interface view:
interface interface-type
interface-number
Enter port group view:
port-group manual
port-group-name
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.
4. Configure the link type of
the ports as hybrid.
port link-type hybrid By default, all ports are access ports.
5. Configure the hybrid
ports to permit packets
from specific MAC-based
VLANs to pass through.
port hybrid vlan vlan-list { tagged |
untagged }
By default, a hybrid port only permits
packets from VLAN 1 to pass
through.
6. Enable the MAC-based
VLAN feature.
mac-vlan enable
By default, MAC-based VLAN is
disabled.
7. Configure VLAN
matching precedence.
vlan precedence { mac-vlan |
ip-subnet-vlan }
Optional.
By default, VLANs are preferably
matched based on MAC addresses.
To configure dynamic MAC-based VLAN:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A