Configuration restrictions and guidelines, Configuring static mac-based vlan assignment – H3C Technologies H3C S5560 Series Switches User Manual
Page 164
130
2.
Assigns the port that connects the user to the MAC-based VLAN.
When the user goes offline, the device automatically deletes the MAC-to-VLAN entry and removes the
port from the MAC-based VLAN. For more information about 802.1X and MAC authentication, see
Security Configuration Guide.
Configuration restrictions and guidelines
When you configure MAC-based VLANs, follow these restrictions and guideline:
•
Do not configure a VLAN as both a super VLAN and a MAC-based VLAN.
•
H3C recommends not using dynamic MAC-based VLAN assignment together with the MAC
learning limit or disabling MAC address learning.
When dynamic MAC-based VLAN assignment is enabled on a port, packets received on the port
are delivered to the CPU. Processing to these packets has the highest priority. The configuration of
MAC learning limit and disabling of MAC address learning cannot take effect.
•
Do not use dynamic MAC-based VLAN assignment together with 802.1X or MAC authentication.
•
For successful dynamic MAC-based VLAN assignment, use static VLANs when you create
MAC-to-VLAN entries.
•
The MAC-based VLAN feature is mainly configured on downlink ports of user access devices. Do
not enable this function with link aggregation.
•
H3C recommends not using dynamic MAC-based VLAN assignment together with MSTP. In MSTP
mode, if a port is blocked in the MSTI of the target VLAN, the port drops the received packets
instead of delivering them to the CPU. As a result, the receiving port will not be dynamically
assigned to the VLAN.
•
H3C recommends not using dynamic MAC-based VLAN assignment together with PVST. In PVST
mode, if the target VLAN is not permitted on a port, the port is placed in blocked state. The received
packets are dropped instead of being delivered to the CPU. As a result, the receiving port will not
be dynamically assigned to the VLAN.
•
H3C recommends not configuring both dynamic MAC-based VLAN assignment and automatic
voice VLAN assignment mode on a port. If you have to configure both of them on a port, configure
dynamic MAC-based VLAN assignment first. If you configure them in a reverse order, conflict will
occur. When you remove one of the configurations, the operation of the other is affected.
Configuring static 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
[ mask mac-mask ] vlan vlan-id [ dot1q
priority ]
N/A
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.
- H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module