28
Chapter 4 MAC-based 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.
4.1 mac-vlan mac-address
Description
The mac-vlan mac-address command is used to create a MAC-based VLAN
entry. To delete a MAC-based VLAN entry, please use the no mac-vlan
mac-address command.
Syntax
mac-vlan mac-address
mac-addr
vlan
vlan-id
[description
descript
]
no mac-vlan mac-address
mac-addr
Parameter
mac-addr
—— MAC address, in the format of XX:XX:XX:XX:XX:XX.
vlan-id
—— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
descript
—— Give a description to the MAC address for identification, which
contains 8 characters at most.
Command Mode
Global Configuration Mode
Privilege Requirement
Only Admin, Operator and Power User level users have access to these
commands.
Example
Create VLAN 2 with the MAC address 00:11:11:01:01:12 and the name “TP”:
T1600G-52TS(config)#mac-vlan mac-address 00:11:11:01:01:12 vlan 2
description TP