Configuration Guide How to Configure VLAN on TP-Link Switch
The topic was originally posted by Clive_A in How to Configure VLAN on TP-Link Switch
Background:
This post provides a configuration guide to set up a VLAN-tagged and untagged port, PVID, and trunk on TP-Link switches.
This Article Applies to:
All Omada switches that support 802.1Q VLAN.
Application Scenario:
Port 5 on the router has been selected in VLAN interfaces. Or you can think that port 5 on the router is tagged with VLAN 10 20 30 40, and 50.
Configuration Steps:
We do not discuss the VLAN interface creation or anything about the VLAN interface in this setup. Here's a config of the VLAN on the router so that we are aware of the VLANs on this network.
For the purpose of easy understanding and logic, we will start from the L2+ models.
We will discuss the VLAN tag and untag, trunk and PVID in different modes.
1. L2+ models. (AKA Omada switches SG2XYZ models)
Note L3 models share the same config page in Layer 2 features. Will not expand the L3 models in this guide.
Tag and Trunk and Untag with PVID (in Controller Mode)
1. Go to Settings > Wired Networks > LAN > Profile.
To create a port that is trunk, we can create a profile to allow the VLANs 10 to 30. Default profile All is a profile that trunks the ports. To help you understand how to set up the 802.1Q VLAN, we will not expand that here.
VLAN 1 is untagged and PVID is Native Network.
2. Set this profile to the port and Apply. This will take effect immediately.
3. Now port 8 is called a trunk port with tagged VLAN 10, 20 and 30. 40 and 50 are not included as configured. Untagged VLAN 1, PVID 1.
Tag and Trunk and Untag with PVID (in Standalone Mode)
1. Go to L2 Features > VLAN > 802.1Q VLAN. Click Add to add a new VLAN:
Tag the uplink from the SG2210P as a trunk port on SG3210. And configure port 6 as the downlink to the SG105E.
2. Set port 7 as the untagged port with PVID. Click Port Config and set PVID. Apply.
Make sure your port 7 is set to untagged.
3. Plug the PC on port 7 and check if you can get an IP.
2. Easy Smart models.
Typically known as TL-SG105E, SG108E, SG1016DE.
Tag, Trunk and Untag
Go to VLAN > 802.1Q VLAN > Enable 802.1Q VLAN Configuration > Apply.
Then, input the VLAN ID and name:
Set the uplinkfrom SG3210 as a trunk port on SG105E(port 1). VLAN 10 and VLAN 20.
Port 2 is a trunk with VLAN 10 and 20.
Port 3 and 4 are untagged with VLAN 20.
Port 5 is tagged with VLAN 10.
Result:
PVID
1. Set up the PVID. Go to 802.1Q PVID Setting. Select the port and put the PVID. Apply.
2. PC connect to port 3 or 4.
Note:
1. The difference between VLAN Interface and 802.1Q VLAN has been explained in this guide, in the Note area: How to Set Up VLAN Interface on the Omada Router
2. With the default profile All, all new created VLAN interfaces are placed in the tagged networks.
Update Log:
Apr 19th, 2024:
Release of this guide.
Recommended Threads:
How to Set Up Switch as DHCP Server on Omada SDN Controller
How to Set Up VLAN Interface on the Omada Router
Howto - A Guide to Use Forum Effectively. Read Before You Post.
Feedback:
- If this was helpful, welcome to give us Kudos by clicking the upward triangle below.
- If there is anything unclear in this solution post, please feel free to comment below.
Thank you in advance for your valuable feedback!
------------------------------------------------------------------------------------------------
Have other off-topic issues to report?
Welcome to > Start a New Thread < and elaborate on the issue for assistance.