R3102-R3103-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Command Reference

111
mac-vlan enable
Use mac-vlan enable to enable the MAC-based VLAN feature on a port.
Use undo mac-vlan enable to disable the MAC-based VLAN feature on a port.
Syntax
mac-vlan enable
undo mac-vlan enable
Default
The MAC-based VLAN feature is disabled on a port.
Views
Layer 2 Ethernet port view
Default command level
2: System level
Usage guidelines
This command is available on only hybrid ports.
Examples
# Enable the MAC-based VLAN feature on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/1
[Sysname–GigabitEthernet4/0/1] mac-vlan enable
mac-vlan mac-address
Use mac-vlan mac-address to associate the specified VLAN and priority value with the specified MAC
addresses.
Use undo mac-vlan to remove the association.
Syntax
mac-vlan mac-address mac-address [ mask mac-mask ] vlan vlan-id [ priority pri ]
undo mac-vlan { all | mac-address mac-address [ mask mac-mask ] | vlan vlan-id }
Default
The hexadecimal digits of this argument are all Fs.
Views
System view
Default command level
2: System level
Parameters
mac-address mac-address: Specifies a MAC address.