T2700G-28TQ
JetStream 28-Port Gigabit Stackable L2+ Managed Switch CLI Guide
43
mac-vlan
Description
The
mac-vlan
command is used to enable a port for the MAC-based VLAN
feature. Only the port is enabled can the configured MAC-based VLAN take
effect. To disable the MAC-based VLAN function, please use
no mac-vlan
command. All the ports are disabled by default.
Syntax
mac-vlan
no mac-vlan
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Enable the Gigabit Ethernet port 1/0/3 for the MAC-based VLAN feature:
T2700G-28TQ(config)#interface gigabitEthernet
1/0/3
T2700G-28TQ(config-if)#mac-vlan
show mac-vlan
Description
The
show mac-vlan
command is used to display the information of the
MAC-based VLAN entry. MAC address and VLAN ID can be used to filter the
displayed information.
Syntax
show mac-vlan
{
all
|
mac-address
mac-addr
|
vlan
vlan-id
}
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Parameter
mac-addr
—— MAC address, in the format of XX:XX:XX:XX:XX:XX.