138
Examples
# Enable MAC-based dynamic port assignment on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mac-vlan trigger enable
port pvid disable
Syntax
port pvid disable
undo port pvid disable
View
Layer 2 Ethernet port view
Default level
2: System level
Parameters
None
Description
Use the
port pvid disable
command to disable the default VLAN of the current port from forwarding
packets whose source MAC addresses do not match any MAC address-to-VLAN mapping.
Use the
undo port pvid disable
command to restore the default.
By default, when a port receives a packet with an unknown source MAC address that does not match any
MAC address-to-VLAN mapping, it forwards the packet in its default VLAN.
Examples
# Disable the default VLAN of GigabitEthernet 1/0/1 from forwarding packets whose source MAC
addresses do not match any MAC address-to-VLAN mapping.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port pvid disable
vlan precedence
Syntax
vlan precedence
{
mac-vlan
|
ip-subnet-vlan
}
undo vlan precedence
View
Layer 2 Ethernet port view
Default level
2: System level
Parameters
mac-vlan
: Specifies to match VLANs based on MAC addresses preferentially.