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. Please note that product availability varies by region, and certain models may not be available in your region.
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
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.
As explained further in our website Privacy Policy, we allow certain advertising partners to collect information from our website through cookies and similar technologies to deliver ads which are more relevant to you, and assist us with advertising-related analytics (e.g., measuring ad performance, optimizing our ad campaigns). This may be considered "selling" or "sharing"/disclosure of personal data for "targeted advertising" as defined by certain U.S. state laws. To opt out of these activities, press "Opt Out" below. If the toggle below for "Targeted Advertising and 'Sale' Cookies" is to the left, you are already opted out and you can close these preferences.
Please note that your choice will apply only to your current device/browser. You must indicate your choice on each device and browser you use to access our website. If you clear your cookies or your browser is set to do so, you must opt out again.
Your Privacy Choices
As explained further in our website Privacy Policy, we allow certain advertising partners to collect information from our website through cookies and similar technologies to deliver ads which are more relevant to you, and assist us with advertising-related analytics (e.g., measuring ad performance, optimizing our ad campaigns). This may be considered "selling" or "sharing"/disclosure of personal data for "targeted advertising" as defined by certain U.S. state laws. To opt out of these activities, press "Opt Out" below. If the toggle below for "Targeted Advertising and 'Sale' Cookies" is to the left, you are already opted out and you can close these preferences.
Please note that your choice will apply only to your current device/browser. You must indicate your choice on each device and browser you use to access our website. If you clear your cookies or your browser is set to do so, you must opt out again.
Necessary Cookies
These cookies are necessary for the website to function and cannot be switched off.
TP-Link
SESSION, JSESSIONID, accepted_local_switcher, tp_privacy_banner, tp_privacy_base, tp_privacy_marketing, tp_top-banner, tp_popup-bottom, tp_popup-center, tp_popup-right-middle, tp_popup-right-bottom, tp_productCategoryType
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
Zendesk
OptanonConsent, __cf_bm, __cfruid, _cfuvid, _help_center_session, _pendo___sg__.<container-id>, _pendo_meta.<container-id>, _pendo_visitorId.<container-id>, _zendesk_authenticated, _zendesk_cookie, _zendesk_session, _zendesk_shared_session, ajs_anonymous_id, cf_clearance
Targeted Advertising and "Sale" Cookies
These cookies allow targeted ads or the "sale" of personal data (toggle to the left to opt out).
Analytics cookies enable us to analyze your activities on our and other websites in order to improve and adapt the functionality of our website and our ad campaigns.
Advertising 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
lidc, AnalyticsSyncHistory, UserMatchHistory, bcookie, li_sugr, ln_or
_rdt_uuid
Welcome to Our Website! If you stay on our site, we and our third-party partners use cookies, pixels, and other tracking technologies to better understand how you use our site, provide and improve our services, and personalize your experience and ads based on your interests. Learn more in your privacy choices.