How to Configure VLAN on TP-Link Switch

How to Configure VLAN on TP-Link Switch

How to Configure VLAN on TP-Link Switch
How to Configure VLAN on TP-Link Switch
2024-04-19 03:21:29 - last edited 2024-11-07 06:53:51

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.

3. If ping fails, you should refer to the troubleshooting of this guide:  What If My Windows Computer Is Not Accessible or Pingable Over the VPN/VLAN Interface

 

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.

 

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting ★ ☚ ● Be kind and nice. ● Stay on the topic. ● Post details. ● Search first. ● Please don't take it for granted. ● No email confidentiality should be violated. ● S/N, MAC, and your true public IP should be mosaiced.
  4      
  4      
#1
Options

Information

Helpful: 4

Views: 7811

Replies: 0

Related Articles