2 dynamic vlan configuration, 2 dynamic vlan configuration -94 – PLANET WGSW-52040 User Manual

Page 172

Advertising
background image

Notice: Dynamic VLAN needs to associate with Hybrid attribute of the ports to work, so the

ports that may be added to a dynamic VLAN must be configured as Hybrid port.

20.6.2 Dynamic VLAN Configuration

Dynamic VLAN Configuration Task Sequence:

1. Configure the MAC-based VLAN function on the port

2. Set the VLAN to MAC VLAN

3. Configure the correspondence between the MAC address and the VLAN

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-addrss> vlan

Add/delete the correspondence between

20-94

Advertising