How to configure 802.1Q VLAN on Smart and Managed switches using the new GUI

T1600G-18TS( V2 ) , TL-SG2008P , TL-SG3452X , TL-SG2218P , TL-SG3452XP , TL-SG2016P , TL-SG2210P , SG2210MP , T2600G-28MPS( V3 ) , TL-SX3008F , TL-SL2428P , TL-SX3016F , S4500-8G , SG3428 , TL-SG3452P , TL-SG3428X , S4500-16GP , SL2428P , T1600G-28TS( V3 ) , S4500-8GHP2F , TL-SG3428XF , TL-SG2210MP , T1600G-28PS( V3 ) , SG3210 , SG3452 , SG3452X , TL-SG3210XHP-M2 , S5500-24GP4XF , T1600G-52PS( V3 ) , TL-SG2428P , T1500G-8T( V2 ) , T1600G-52TS( V3 ) , SG3428XF , TL-SG2210 , T1500G-10PS( V2 ) , SG2428LP , Festa FS308GP , SX3008F , SG3428MP , SG3428X , SG3452P , T2600G-52TS( V3 ) , SX3016F , T2600G-28TS( V3 ) , SG2218P , SG2428P , SG2008P , SG3452XP , T1500G-10MPS( V2 ) , TL-SG3428 , SG2210P , SG2016P , S5500-4XHPP2XF , S5500-8MHP2XF , TL-SG3428MP , TL-SG2008 , T1500-28PCT( V3 ) , T2600G-28SQ( V1 ) , TL-SG3210 , TL-SG3452 , Festa FS310GP , TL-SX3206HPP , SG3428XMP , TL-SG3428XMP , SX3206HPP , S5500-24MPP4XF
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 is a configuration example for 802.1Q VLAN.
Network Topology:
Network Requirement:
- Hosts in the same department can communicate with each other.
- Hosts in different departments cannot communicate with each other.
- Both department A and department B can visit the FTP server.
Configuration Scheme:
- Create VLAN 10 and VLAN 20 for department A and department B respectively.
- Create VLAN 30 for the FTP server, and add the hosts in department A and department B to VLAN 30.
- Configure PVIDs for ports. With correct PVID settings, both department A and department B can visit the FTP server, but cannot communicate with each other.
VLAN Configurations on Switch 1 and Switch 2:
|
VLAN 10 |
VLAN 20 |
VLAN 30 |
Switch 1 |
Port 1-2 |
Port 1, 3 |
Port 1-3 |
Switch 2 |
Port 1-2, 4 |
Port 1, 3-4 |
Port 1-4 |
Egress Rule and PVID settings for Switch 1 and Switch 2:
Switch |
Switch 1 |
Switch 2 |
|||||
Port |
1 |
2 |
3 |
1 |
2 |
3 |
4 |
Egress Rule |
Tagged |
Untagged |
Untagged |
Tagged |
Untagged |
Untagged |
Untagged |
PVID |
1 |
10 |
20 |
1 |
10 |
20 |
30 |
Configurations on Switch 1:
Step 1
Go to L2 Features > VLAN > 802.1Q VLAN > VLAN Config, create VLAN 10, VLAN 20 and VLAN 30; add Untagged port 2 and Tagged port 1 to VLAN 10; add Untagged port 3 and Tagged port 1 to VLAN 20; add Untagged port 2-3 to VLAN 30 and Tagged port 1 to VLAN 30.
Step 2
Go to L2 Features > VLAN > 802.1Q VLAN > Port Config, set the PVID value as 1, 10, 20 for port 1, port 2 and port 3 respectively.
Configurations on Switch 2:
Step 1
Go to L2 Features > VLAN > 802.1Q VLAN > VLAN Config, create VLAN 10, VLAN 20 and VLAN 30; add Untagged port 2, Untagged port 4 and Tagged port 1 to VLAN 10; add Untagged port 3, Untagged port 4 and Tagged port 1 to VLAN 20; add Untagged port 2-4 to VLAN 30 and Tagged port 1 to VLAN 30.
Step 2
Go to L2 Features > VLAN > 802.1Q VLAN > Port Config, set the PVID value as 1, 10, 20 and 30 for port 1, port 2, port 3 and port 4 respectively.
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
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.