Command Manual (For Soliton) – VLAN
H3C S3100 Series Ethernet Switches
Chapter 1 VLAN Configuration Commands
1-19
Field
Description
STATE
The state of the MAC-to-VLAN mapping, which can be:
z
S
, indicating that the MAC-to-VLAN mapping is configured
statically.
z
D
, indicating that the MAC-to-VLAN mapping is created
automatically during authentication.
z
S&D
, indicating that the MAC-to-VLAN mapping is created
both statically and dynamically
1.3.3 mac-vlan mac-address
Syntax
mac-vlan mac-address mac-addr
vlan
vlan-id
[
priority priority
]
undo mac-vlan
{
all
|
mac-address
mac-addr
|
vlan
vlan-id
}
View
System view
Parameters
mac-addr
: Specifies a MAC address.
vlan vlan-id
: Specify a VLAN ID, in the range of 1 to 4094.
priority priority
:
Specify an 802.1p priority for the MAC address, in the range of 0 to 7.
The default is 0.
all
: Removes all the static MAC-to-VLAN mappings.
Description
Use the
mac-vlan mac-address
command to map a MAC address to a VLAN and set
its 802.1p priority.
Use the
undo mac-vlan
command to remove the mapping.
Examples
# Map MAC address 000f-e201-0001 to VLAN 100 and set its 802.1p priority to 7.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] mac-vlan mac-address 000f-e201-0001 vlan 100 priority 7
1.3.4 mac-vlan enable
Syntax
mac-vlan enable