10
Configuring static MAC-based VLAN assignment
1.
Enter system view.
system-view
2.
Create a MAC-to-VLAN entry.
mac-vlan mac-address
mac-address
[
mask mac-mask
]
vlan vlan-id
[
dot1p
priority
]
By default, no MAC-to-VLAN entries exist.
3.
Enter Layer 2 Ethernet interface view.
interface
interface-type interface-number
4.
Set the port link type to 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
About dynamic MAC-based VLAN assignment
For successful dynamic MAC-based VLAN assignment, use static VLANs when you create
MAC-to-VLAN entries.
When a port joins a VLAN specified in the MAC-to-VLAN entry, one of the following events occurs
depending on the port configuration:
•
If the port has not been configured to allow packets from the VLAN to pass through, the port
joins the VLAN as an untagged member.
•
If the port has been configured to allow packets from the VLAN to pass through, the port
configuration remains the same.
The 802.1p priority of the VLAN in a MAC-to-VLAN entry determines the transmission priority of the
matching packets.
Restrictions and guidelines
•
If you configure both static and dynamic MAC-based VLAN assignments on a port, dynamic
MAC-based VLAN assignment takes effect.
•
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.
•
As a best practice, do not both configure dynamic MAC-based VLAN assignment and disable
MAC address learning on a port. If the two features are configured together on a port, the port
Summary of Contents for S6850 Series
Page 108: ...48 WGE1 0 3 32768 49153 50100 0x7b 0001 0001 0001 ACDEF...
Page 259: ...21 6 N A 200 6...
Page 337: ...ii...