mac-vlan trigger enable
Use mac-vlan trigger enable to enable dynamic MAC-based VLAN assignment.
Use undo mac-vlan trigger enable to restore the default.
Syntax
mac-vlan trigger enable
undo mac-vlan trigger enable
Default
Dynamic MAC-based VLAN assignment is not enabled.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Usage guidelines
After receiving a packet, the port reports the source MAC address of the packet to the CPU.
If the source MAC address matches a MAC-to-VLAN entry whose mask is all Fs, the device dynamically learns the source MAC address and assigns the receiving port to the VLAN specific to the entry.
Subsequent packets with this source MAC address can be directly forwarded through the port.
If the MAC address does not match any MAC-to-VLAN entries or matches only a MAC-to-VLAN entry whose mask is not all Fs, the device does not dynamically learn the MAC address or assign the receiving port to the VLAN.
Examples
# Enable dynamic MAC-based VLAN assignment on Ten-GigabitEthernet 1/0/1.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] mac-vlan trigger enable
Related commands
port pvid forbidden