124
Step Command Remarks
4.
Configure the link type of
the port as hybrid.
port link-type
hybrid
By default, all ports are access
ports.
5.
Assign the hybrid port to
the MAC-based VLANs.
port hybrid
vlan
vlan-id-list
{
tagged
|
untagged
}
By default, a hybrid port is an
untagged member of the VLAN
to which the port belongs when
its link type is
access
.
6.
Enable the MAC-based
VLAN feature.
mac-vlan enable
By default, this feature is
disabled.
7.
(Optional.) Configure the
system to assign VLANs
based on the MAC
address preferentially.
vlan precedence mac-vlan
By default, the system assigns
VLANs based on the MAC
address preferentially when both
the MAC-based VLAN and IP
subnet-based VLAN are
configured on a port.
Configuring dynamic MAC-based VLAN assignment
Configuration restrictions and guidelines
When you configure dynamic MAC-based VLAN assignment, follow these restrictions and guideline:
•
As a best practice to ensure correct operation of 802.1X and MAC authentication, do not use
dynamic MAC-based VLAN assignment with 802.1X or MAC authentication.
•
When dynamic MAC-based VLAN assignment is enabled on a port, the configuration of MAC
learning limit and disabling of MAC address learning do not take effect.
•
For successful dynamic MAC-based VLAN assignment, use static VLANs when you create
MAC-to-VLAN entries.
•
As a best practice, do not use dynamic MAC-based VLAN assignment with MSTP. In MSTP
mode, if a port is blocked in the MSTI of its target VLAN, the port drops the received packets
instead of delivering them to the CPU. As a result, the port will not be dynamically assigned to
the target VLAN.
•
As a best practice, do not use dynamic MAC-based VLAN assignment with PVST. In PVST
mode, if the target VLAN of a port is not permitted on the port, the port is placed in blocked state.
The port drops the received packets instead of delivering them to the CPU. As a result, the port
will not be dynamically assigned to the target VLAN.
•
As a best practice, do not configure both dynamic MAC-based VLAN assignment and automatic
voice VLAN assignment mode on a port. They can have a negative impact on each other.
Configuration procedure
To configure dynamic MAC-based VLAN assignment:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a MAC-to-VLAN
entry.
mac-vlan mac-address
mac-address vlan vlan-id
[
dot1q priority
]
By default, no MAC-to-VLAN entry
exists.
3.
Enter Layer 2 Ethernet
interface view.
interface interface-type
interface-number
N/A
4.
Configure the link type of
the port as hybrid.
port link-type
hybrid
By default, all ports are access
ports.
Summary of Contents for H3C S7500E-X
Page 70: ...57 ...