127
Ste
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 vlan vlan-id
[ priority priority ]
N/A
3. Enter interface view or
port group view.
• Enter Layer 2 Ethernet
interface view:
interface interface-type
interface-number
• Enter port group view:
port-group manual
port-group-name
Use either command.
• 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 the
packets from VLAN 1 to pass through.
6. Enable the MAC-based
VLAN feature.
mac-vlan enable Disabled by default.
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 assignment:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Associate MAC
addresses with a VLAN.
mac-vlan mac-address mac-address
vlan vlan-id [ priority priority ]
With dynamic MAC-based VLAN
assignment enabled, a port is
automatically assigned to the VLAN
in the MAC address-to-VLAN entry
that is exactly matched by the source
MAC address of the packet received
on the port.
3. Enter Ethernet interface
view.
interface interface-type
interface-number
N/A
4. Configure the link type of
the port as hybrid.
port link-type hybrid By default, all ports are access ports.
5. Enable the MAC-based
VLAN feature.
mac-vlan enable Disabled by default.