20 
Chapter 4  MAC VLAN Commands 
MAC VLAN (Virtual Local Area Network) is the way to classify the VLANs based on MAC Address. 
A MAC address is relative to a single VLAN ID. The untagged packets and the priority-tagged 
packets coming from the MAC address will be tagged with this VLAN ID. 
mac-vlan add 
Description 
The mac-vlan add command is used to create a MAC-Based VLAN entry. 
Syntax 
mac-vlan add {vlan-id} {mac-addr} [description] 
Parameter 
vlan-id ——VLAN ID , ranging from 1 to 4094. 
mac-addr —— MAC address. 
description  ——Give a description to the MAC address for identification.By 
default , it is empty. 
Command Mode 
Global Configuration Mode 
Example 
Create VLAN 2 named “RD”,and the MAC address is 00:00:00:00:00:01: 
TP-LINK(config)# mac-vlan add 2 00:00:00:00:00:01 RD 
mac-vlan remove 
Description 
The mac-vlan remove command is used to delete the subsistent MAC-Based 
VLAN entry. 
Syntax 
mac-vlan remove {mac-addr} 
Parameter 
mac-addr —— MAC address. 
Command Mode 
Global Configuration Mode