7. Adjust the priority of the dynamic VLAN
Command
Global Mode
dynamic-vlan mac-vlan prefer
dynamic-vlan subnet-vlan prefer
20.6.3 Typical Application of the Dynamic VLAN
Scenario:
In the office network Department A belongs to VLAN100. Several members of this department
often have the need to move within the whole office network. It is also required to ensure the
resource for other members of the department to access VLAN 100. Assume one of the
members is M, the MAC address of his PC is 00-03-0f-11-22-33, when M moves to VLAN200
or VLAN300, the port connecting M is configured as Hybrid mode and belongs to VLAN100
with untag mode. In this way, the data of VLAN100 will be forwarded to the port connecting M,
and implement the communication requirement in VLAN100.
SwitchA
VLAN100
VLAN200
VLAN300
M
Figure 20-8: Typical topology application of dynamic VLAN
Configuration
Items
MAC-based VLAN
SwitchB
Configuration Explanation
Global configuration on Switch A, Switch B, Switch C.
Explanation
Configure the priority of the dynamic
VLAN.
20-96
SwitchC