203
6.5.2 Dynamic VLAN Configuration
6.5.2.1 Dynamic VLAN Configuration Task Sequence
1. Configure the MAC-based VLAN function on the port
2. Configure the correspondence between the MAC address and the VLAN
3. Configure the IP-subnet-based VLAN function on the port
4. Configure the correspondence between the IP subnet and the VLAN
5. Configure the correspondence between the Protocols and the VLAN
6. Adjust the priority of the dynamic VLAN
1.
Configure the MAC-based VLAN function on the port
2.
Configure the correspondence between the MAC address and the VLAN
3.
Configure the IP-subnet-based VLAN function on the port
4.
Configure the correspondence between the IP subnet and the VLAN
Command
Explanation
Port Mode
switchport mac-vlan enable
no switchport mac-vlan enable
Enable/disable the MAC-based VLAN
function on the port
Command
Explanation
Global Mode
mac-vlan mac <mac-addrss> vlan
<vlan-id> priority <priority-id>
no mac-vlan {mac <mac-addrss>|all}
Add/delete the correspondence
between the MAC address and the
VLAN, namely specified MAC
address join/leave specified VLAN
Command
Explanation
Port Mode
switchport subnet-vlan enable
no switchport subnet-vlan enable
Enable/disable the port IP-subnet-base
VLAN function on the port
Command
Explanation
Global Mode
subnet-vlan ip-address <ipv4-addrss>
mask <subnet-mask> vlan <vlan-id>
priority <priority-id>
no subnet-vlan {ip-address
<ipv4-addrss> mask <subnet-mask>|all}
Add/delete the correspondence
between the IP subnet and the VLAN,
namely specified IP subnet
joins/leaves specified VLAN