How to configure 802.1Q VLAN on TP-Link Easy Smart/Unmanaged Pro Switches
VLAN (Virtual Local Area Network) is a technology that can solve broadcasting issues. A LAN can be divided into several VLANs logically, and only the hosts in a same VLAN can communicate with each other.
Here are two configuration examples for 802.1Q VLAN.
Example 1:
As the following figure shows, the switch connects to two different groups. It is required that the computers in the two groups cannot communicate with each other, but both of them can access the internet via the router.
Configuration Scheme
To meet the above requirements, you can configure 802.1Q VLAN on the switch.
1) Create VLAN 2. Add port 1, 2 to VLAN 2.
2) Create VLAN 3. Add port 1, 3 to VLAN 3.
3) Keep port 1, 2, 3 in VLAN 1. (By default, all ports belong to VLAN 1.)
VLAN Configurations on the Switch:
VLAN |
Egress Rule |
PVID |
|
Port 1 |
VLAN 1-3 |
Untagged |
1 |
Port 2 |
VLAN 1-2 |
Untagged |
2 |
Port 3 |
VLAN 1, 3 |
Untagged |
3 |
Configuration Steps:
Exampled with TL-SG105E, the following section shows how to configure 802.1Q VLAN on the switch using web GUI and using configuration utility.
Step 1:
Choose the menu VLAN > 802.1Q VLAN to load the configuration page. Enable 802.1Q VLAN function. Add port 1, 2 to VLAN 2 as untagged ports; add port1, 3 to VLAN 3 as untagged ports; keep port 1-3 in VLAN 1 as untagged ports.
Note: Only after you enable the 802.1Q VLAN feature, you can add or modify VLANs.
Step 2:
Choose the menu VLAN > 802.1Q PVID Setting to load the configuration page. Configure the PVIDs for VLAN 1-3 as 1, 2 and 3 respectively.
Step 1
Choose the menu VLAN > 802.1Q VLAN to load the following page. Enable 802.1Q function. Leave port 1-3 as untagged ports in VLAN 1
.
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 2 in the VLAN (1-4094) field. Add port 1 and port 2 to VLAN 2 as untagged ports. Click Apply.
Step 3
In the 802.1Q VLAN Setting section, enter 3 in the VLAN (1-4094) field. Add port 1 and port 3 to VLAN 3 as untagged ports. Click Apply.
Step 4
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 the PVID of port 3 as 3.
Example 2:
As the following figure shows, a company has two groups which connect to two switches. It is required that the two groups cannot communicate with each other, but both of them can access the internet.
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 1,2, 4 of Switch B to VLAN 2.
2) Create VLAN 3. Add port 3, 4 of Switch A and port 1,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.
VLAN Configurations on Switch A and Switch B:
VLAN 1 |
VLAN 2 |
VLAN 3 |
|
Switch A |
Port 2-4 |
Port 2,4 |
Port 3,4 |
Switch B |
Port 1-4 |
Port 1,2,4 |
Port 1,3,4 |
Egress Rules and PVID Settings on Switch A and Switch B:
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.
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. Enable 802.1Q VLAN function. Add port 2 to VLAN 1 and VLAN 2 as untagged port; add port 3 to VLAN 1 and VLAN 3 as untagged port; Add port 4 to VLAN 1, VLAN 2 and VLAN 3 as tagged port.
Note: Only after you enable the 802.1Q VLAN feature, you can add or modify VLANs.
Step 2:
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.
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. Then Enter 1 in the VLAN (1-4094) field. Specify port 4 as tagged port and leave the other ports as untagged ports.
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 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 ports. Add port 4 to the VLAN as tagged port. Click Apply.
Step 3:
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 ports. Add port 4 to the VLAN as tagged port. Click Apply.
Step 4
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.
Είναι χρήσιμο αυτό το FAQ;
Τα σχόλιά σας συμβάλλουν στη βελτίωση αυτού του ιστότοπου.