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.

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