SNR S2940-8G-v2 Switch Configuration Guide
Dynamic VLAN Configuration
4. Configure the IP-subnet-based VLAN function on the port
5. Configure the correspondence between the IP subnet and the VLAN
6. Configure the correspondence between the Protocols and the VLAN
7. Adjust the priority of the dynamic VLAN
1. Configure the MAC-based VLAN function on the port
Command Explanation
Port mode
switchport mac-vlan enable
no switchport mac-vlan enable
Enable/disable the MAC-based VLAN function
on the port.
2. Set the VLAN to MAC VLAN
Command Explanation
Global mode
mac-vlan vlan <vlan-id>
no mac-vlan
Configure the specified VLAN to MAC VLAN; the no mac-vlan
command cancels the MAC VLAN configuration of this VLAN.
3. Configure the correspondence between the MAC address and the VLAN
Command Explanation
Global mode
mac-vlan mac <mac-address> vlan <vlan-
id> priority <priority-id>
no mac-vlan { mac <mac-address> | all }
Add/delete the correspondence between the
MAC address and the VLAN, namely specified
MAC address join/leave specified VLAN.
4. Configure the IP-subnet-based VLAN function on the port
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.
5. Configure the correspondence between the IP subnet and the VLAN
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 speci-
fied IP subnet joins/leaves specified VLAN.
144