185
Syntax
mac-vlan enable
undo mac-vlan enable
Default
The MAC-based VLAN feature is disabled on a port.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Usage guidelines
Execute this command 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
Related commands
display mac-vlan interface
mac-vlan mac-address
Use
mac-vlan mac-address
to configure a MAC-to-VLAN entry.
Use
undo mac-vlan
to delete the specified MAC-to-VLAN entries.
Syntax
mac-vlan mac-address mac-address
[
mask
mac-mask
]
vlan
vlan-id
[
dot1q pri
]
undo mac-vlan
{
all
|
mac-address
mac-address
[
mask
mac-mask
] |
vlan
vlan-id
}
Default
No MAC-to-VLAN entries are configured.
Views
System view
Predefined user roles
network-admin
Parameters
mac-address mac-address
: Specifies a MAC address.
mask mac-mask
: Specifies the MAC address mask. For the
mac-mask
argument, the high-order bits
must be consecutive 1s in binary notation or consecutive Fs in hexadecimal notation. The default
value is all Fs in hexadecimal notation.
vlan vlan-id
: Specifies a VLAN ID in the range of 1 to 4094.
dot1q pri
: Specifies the 802.1p priority of the VLAN specific to the MAC-to-VLAN entry. The value
range for the
pri
argument is 0 to 7, and the default value is 0.
all
: Deletes all static MAC-to-VLAN entries.
Summary of Contents for FlexNetwork 5130 HI series
Page 302: ...294 ...