How to configure 802.1Q VLAN on TP-Link Easy Smart/Unmanaged Pro Switches
DS1018GMP , TL-SG1428PE , TL-SG108PE , TL-SG1210MPE , DS1008X , TL-SG108E , TL-SG1016PE , DS116GE , TL-SG105PE , TL-SG1016DE , DS108GE , TL-SG1218MPE , TL-SG1024DE , TL-SG105E , TL-SG116E
Recent updates may have expanded access to feature(s) discussed in this FAQ. Visit your product's support page, select the correct hardware version for your device and check either the Datasheet or the firmware section for the latest improvements added to your product.
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.
- Using Web GUI
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.
- Using Configuration Utility
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.
- 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. 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.
- 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. 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.
Looking for More
Is this faq useful?
Your feedback helps improve this site.
What’s your concern with this article?
- Dissatisfied with product
- Too Complicated
- Confusing Title
- Does not apply to me
- Too Vague
- Other
We'd love to get your feedback, please let us know how we can improve this content.
Thank you
We appreciate your feedback.
Click here to contact TP-Link technical support.
TP-Link Community
Still need help? Search for answers, ask questions, and get help from TP-Link experts and other users around the world.
We have updated our Policies. Read Privacy Policy and Terms of Use here.
This website uses cookies to improve website navigation, analyze online activities and have the best possible user experience on our website. You can object to the use of cookies at any time. You can find more information in our privacy policy .
We have updated our Policies. Read Privacy Policy and Terms of Use here.
This website uses cookies to improve website navigation, analyze online activities and have the best possible user experience on our website. You can object to the use of cookies at any time. You can find more information in our privacy policy .
Basic Cookies
These cookies are necessary for the website to function and cannot be deactivated in your systems.
TP-Link
accepted_local_switcher, tp_privacy_base, tp_privacy_marketing, tp_smb-select-product_scence, tp_smb-select-product_scenceSimple, tp_smb-select-product_userChoice, tp_smb-select-product_userChoiceSimple, tp_smb-select-product_userInfo, tp_smb-select-product_userInfoSimple, tp_top-banner, tp_popup-bottom, tp_popup-center, tp_popup-right-middle, tp_popup-right-bottom, tp_productCategoryType
Livechat
__livechat, __lc2_cid, __lc2_cst, __lc_cid, __lc_cst, CASID
Youtube
id, VISITOR_INFO1_LIVE, LOGIN_INFO, SIDCC, SAPISID, APISID, SSID, SID, YSC, __Secure-1PSID, __Secure-1PAPISID, __Secure-1PSIDCC, __Secure-3PSID, __Secure-3PAPISID, __Secure-3PSIDCC, 1P_JAR, AEC, NID, OTZ
Analysis and Marketing Cookies
Analysis cookies enable us to analyze your activities on our website in order to improve and adapt the functionality of our website.
The marketing cookies can be set through our website by our advertising partners in order to create a profile of your interests and to show you relevant advertisements on other websites.
Google Analytics & Google Tag Manager
_gid, _ga_<container-id>, _ga, _gat_gtag_<container-id>
Google Ads & DoubleClick
test_cookie, _gcl_au
Meta Pixel
_fbp
Crazy Egg
cebsp_, _ce.s, _ce.clock_data, _ce.clock_event, cebs
Hotjar
OptanonConsent, _sctr, _cs_s, _hjFirstSeen, _hjAbsoluteSessionInProgress, _hjSessionUser_14, _fbp, ajs_anonymous_id, _hjSessionUser_<hotjar-id>, _uetsid, _schn, _uetvid, NEXT_LOCALE, _hjSession_14, _hjid, _cs_c, _scid, _hjAbsoluteSessionInProgress, _cs_id, _gcl_au, _ga, _gid, _hjIncludedInPageviewSample, _hjSession_<hotjar-id>, _hjIncludedInSessionSample_<hotjar-id>
lidc, AnalyticsSyncHistory, UserMatchHistory, bcookie, li_sugr, ln_or