90
Examples
# Specify the IP address as 1.1.0.1, the subnet mask as 255.255.255.0 for VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip address 1.1.0.1 255.255.255.0
mac-vlan enable
Syntax
mac-vlan enable
undo mac-vlan enable
View
Ethernet port view, WLAN-BSS interface view
Default level
2: System level
Parameters
None
Description
Use
mac-vlan enable
to enable the MAC-based VLAN feature on a port.
Use
undo mac-vlan enable
to restore the default.
By default, the MAC-based VLAN feature is disabled on a port.
This command is available only on hybrid ports.
Examples
# Enable the MAC-based VLAN feature on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname–GigabitEthernet1/0/1] mac-vlan enable
# Enable the MAC-based VLAN feature on WLAN-BSS 0.
<Sysname> system-view
[Sysname] interface WLAN-BSS 0
[Sysname–WLAN-BSS0] mac-vlan enable
mac-vlan mac-address
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
}
View
System view