How to configure 802.1Q VLAN on TP-Link Easy Smart/Unmanaged Pro Switches?

A VLAN (Virtual Local Area Network) is a network topology configured according to a logical scheme rather than the physical layout. Hosts in the same VLAN communicate with each other as if they are in a LAN. However, hosts in different VLANs cannot communicate with each other directly.

The following example shows how to configure 802.1Q VLAN on TP-Link Easy Smart/Unmanaged Pro Switches.

Network Topology

As the following figure shows, Switch A and Switch B are connected with each other through port 4. The computers of Group A is connected to port 2 of Switch A and Switch B, and Group B to port 3 of them. Switch B is connected to the Internet via a router through port 1.

Requirement

1) The computers of Group A can communicate with each other.

2) The computers of Group B can communicate with each other.

3) The computers of Group A cannot communicate with computers of Group B, and vice versa.

4) Both Groups can access the internet via the router.

Configuration Scheme

To implement the above requirements, you can configure 802.1Q VLAN on both Switches.

1) Create VLAN 2. Add port 2, 4 of Switch A and port 2, 4 of Switch B to VLAN 2.

2) Create VLAN 3. Add port 3, 4 of Switch A and port 3, 4 of Switch B to VLAN 3.

3) Configure the default VLAN 1 to make sure the router can communicate with all ports of the two switches. 

The following two tables show the desired 802.1Q VLAN parameters.

 

VLAN 1

VLAN 2

VLAN 3

Switch A

2-4

2,4

3,4

Switch B

1-4

1,2,4

1,3,4

 

Switch

Switch A

Switch B

Port

2

3

4

1

2

3

4

Egress Rule

Untagged

Untagged

Tagged

Untagged

Untagged

Untagged

Tagged

PVID

2

3

1

1

2

3

1

 

Configuration Steps

Exampled with TL-SG105E, the following section shows how to configure 802.1Q VLAN on both switches using web GUI and using configuration utility.

  • Using Web GUI

The configuration steps for Switch A and Switch B are similar. Here we take Switch A for example.

Step 1

Choose the menu VLAN > 802.1Q VLAN to load the following page. Select 802.1Q VLAN configuration as Enable. Click Apply.

Note: Only after you enable the 802.1Q VLAN feature, you can add or modify VLANs.

Step 2

Enter 1 in the VLAN ID field. By default, all the ports are in VLAN 1 as untagged ports. Specify port 4 as tagged port. Click Add/Modify.

Step 3

Enter 2 in the VLAN ID field. Specify the VLAN name as Group_A. Add port 2 to the VLAN as untagged port. Add port 4 to the VLAN as tagged port. Click Add/Modify.

Step 4

Enter 3 in the VLAN ID field. Specify the VLAN name as Group_B. Add port 3 to the VLAN as untagged port. Add port 4 to the VLAN as tagged port. Click Add/Modify.

Step 5

Choose the menu VLAN > 802.1Q VLAN PVID Setting to load the following page. By default, PVID of all the ports are 1. Specify the PVID of port 2 as 2 and click Apply. Specify the PVID of port 3 as 3 and click Apply.

  • Using Configuration Utility

The configuration steps for Switch A and Switch B are similar. Here we take Switch B for example.

Step 1

Choose the menu VLAN > 802.1Q VLAN to load the following page. In the Global Config section, select 802.1Q VLAN status as Enable. Click Apply.

Note: Only after you enable the 802.1Q VLAN feature, you can add or modify VLANs.

Step 2 

In the 802.1Q VLAN Setting section, Enter 1 in the VLAN (1-4094) field. By default, all the ports are in VLAN 1 as untagged port. Specify port 4 as tagged port. Click Apply.

 Step 3 

In the 802.1Q VLAN Setting section, enter 2 in the VLAN (1-4094) field. Specify the VLAN name as Group_A. Add port 1 and port 2 to the VLAN as untagged port. Add port 4 to the VLAN as tagged port. Click Apply.

Step 4

In the 802.1Q VLAN Setting section, enter 3 in the VLAN (1-4094) field. Specify the VLAN name as Group_B. Add port 1 and port 3 to the VLAN as untagged port. Add port 4 to the VLAN as tagged port. Click Apply.

Step 5

Choose the menu VLAN > 802.1Q VLAN PVID Setting to load the following page. By default, PVID of all the ports are 1. Specify the PVID of port 2 as 2 and click Apply. Specify the PVID of port 3 as 3 and click Apply.

This Article Applies to:
TL-SG1016DE , TL-SG116E , TL-SG108E
User Application Requirement | Updated 03-29-2018 02:33:15 AM