Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    TP-LINK Smart Switches anyone?

    Scheduled Pinned Locked Moved Hardware
    239 Posts 54 Posters 169.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      verigoth
      last edited by

      @robi:

      Apart from that, you can use any port as "uplink" today, on these cheaper switces. Not on Ciscos, the Ciscos still require cross-cables to connect to each-other.

      I'm not sure which Cisco switches you're using but every one I've used that was made in the last decade has worked just fine using straight-through cables on "trunk" links.

      Let me know how you like the TP-Link - I've been eyeing the TL-SG3216.

      1 Reply Last reply Reply Quote 0
      • R
        robi
        last edited by

        OK trying to figure it out, seems to be able to do what I need but it's a bit cumbersome:
        TP-LINK: How to configure 802.1q VLAN on Smart Switches?

        1 Reply Last reply Reply Quote 0
        • H
          Harvy66
          last edited by

          @verigoth:

          @robi:

          Apart from that, you can use any port as "uplink" today, on these cheaper switces. Not on Ciscos, the Ciscos still require cross-cables to connect to each-other.

          I'm not sure which Cisco switches you're using but every one I've used that was made in the last decade has worked just fine using straight-through cables on "trunk" links.

          Let me know how you like the TP-Link - I've been eyeing the TL-SG3216.

          I agree. I cannot remember the last time I saw a non-auto MDI-X port on a 1gb switch. Even the cheapest of the cheap can detect. My integrated NIC even supports detecting and adjusting for wrong polarities. You can actually mix up the solid and striped wires on the crimp and it'll still work, just get the colors correct.

          1 Reply Last reply Reply Quote 0
          • R
            robi
            last edited by

            Tested TL-SG2216 with a pfSense box, it works handling multple VLANs on a port.

            Tp-Link has a substantially different approach to implementation of the 802.1Q VLAN standard seen from the user's perspective, but the results seem to be the same as the other swithces.

            The main idea is (as can be probably seen in the article I linked in the post above) that you have to consider the VLANs as the "owners" of the ports, and not the other way around, as Cisco thinks of it. Because of this, you can't simply define a port as a "trunk" (cisco-like, containing all VLANs) or an access port. You have to add the ports to the various VLANs, and the way you add it to them causes traffic to pass through accordingly.

            You can add a port to a VLAN in three ways, from the outgoing (egress) perspective of the port:

            • "Untagged": traffic coming in, which has no VLAN tag, will go into VLAN specified at PVID option. Traffic going out will have no VLAN tag
            • "Tagged": traffic coming in, which has the VLAN tag set, will go into that VLAN. Traffic going out will have the VLAN tag set accordingly.
            • "Not member": port does not handle traffic with tag number of the selected VLAN.

            It's like multidimensional matrix where you have to tick the corresponding rows and columns between the VLAN and the ports.

            As you see this approach makes it a bit more difficult to have an overview of how to set it up but it's possible.

            Here's an example where you'd set up port 16 as a Cisco-like trunk (port containing multiple VLANs, 10 and 20) and ports 2 and 3 as access ports for VLANs 10 and 20 respectively.

            1. First you define all your existing VLANs in the network. In the web interface go to menu VLAN→802.1Q VLAN→VLAN Config and create VLAN 10 and VLAN 20.

            2. Select in the list VLAN 10. In the table below (VLAN Membership) select "Untagged" for port 2 and set PVID to 10. This will make port 2 catch all the traffic and push it into VLAN 10. Also select "Tagged" for port 16. This will make port 16 push out VLAN 10's traffic with vlan tag set in the headers.

            3. Select in the list VLAN 20. In the table select "Untagged" for port 3 and set PVID to 20. This will make port 3 catch all the traffic and push it into VLAN 20. Also select "Tagged" for port 16. This will make port 16 push out also VLAN 20's traffic with vlan tag set in the headers.

            That's it! You have now both VLANs tagged traffic present on port 16.
            I tested this by creating these VLANs on a pfSense box's nic, added some static IP addresses to these new interfaces in pfSense, connected that nic to port 16, and I was able to ping them separately from PCs connected to ports 2 and 3.

            One thing to consider though.

            Port 16 is also a member of VLAN 1, which is the default VLAN of the switch, factory preset. It passes the traffic of VLAN 1 untagged, together with the tagged VLANs 10 and 20. This allowed me to ping pfSense's box nic directly from any other port than 2 or 3 (because these all belong to VLAN 1 by default). I tried to avoid that by removing port 16 from VLAN 1 (setting it to "NotMember"), but it wouldn't let me do that, because port 16's PVID is set to VLAN 1. Changing the PVID first to any other VLAN allowed me to remove it from VLAN 1, but unfortunately broke the functionality, as it only forwarded traffic belonging to that other VLAN.
            So it seems that you have to keep a dummy VLAN (can remain VLAN 1) where your cisco-like "trunk" ports have to be untagged - in this case it's probably advisable to remember not to put any sensitive traffic on that VLAN which can be accessed on the port untagged.

            The TL-SG2216/TL-SG2424/TL-SG2424P/TL-SG2452 switches also have a CLI interface (both Telnet and SSH). I looked into the CLI Reference Guide and quickly noticed that the majority of the commands are similar to Cisco's! Moreover, the security approach is very similar, it's got User EXEC Mode, Privileged EXEC Mode, Configuration Modes just like the Cisco Catalyst series. Very funny, here's how I re-created the above example from CLI interface:

            login as: admin
            Further authentication required
            admin@x.x.x.x's password:

            TL-SG2216>

            TL-SG2216>enable

            TL-SG2216#

            TL-SG2216#conf

            TL-SG2216(config)#

            TL-SG2216(config)#vlan 10

            TL-SG2216(config-vlan)#exit

            TL-SG2216(config)#interface gigabitEthernet 1/0/2

            TL-SG2216(config-if)#switchport general allowed vlan 10 untagged

            TL-SG2216(config-if)#switchport pvid 10

            TL-SG2216(config-if)#exit

            TL-SG2216(config)#vlan 20

            TL-SG2216(config-vlan)#exit

            TL-SG2216(config)#interface gigabitEthernet 1/0/3

            TL-SG2216(config-if)#switchport general allowed vlan 20 untagged

            TL-SG2216(config-if)#switchport pvid 20

            TL-SG2216(config-if)#exit

            TL-SG2216(config)#interface gigabitEthernet 1/0/16

            TL-SG2216(config-if)#switchport general allowed vlan 10 tagged

            TL-SG2216(config-if)#switchport general allowed vlan 20 tagged

            TL-SG2216(config-if)#exit

            TL-SG2216(config)#exit

            TL-SG2216#copy running-config startup-config
            Start to save user config…...

            Saving user config OK!

            TL-SG2216#

            I was looking at the web interface too after entering the commands, refreshing the page in the browser showed all the steps just like I would have done them there. Very nice.

            I think this switch suits my needs so I'm definitely considering purchasing a second one.
            Further investigations I need to do are related to multicasting, I have high hopes there related to multimedia content, because I see there's quite a lot configuration possibilities.

            Another very positive aspect of TL-SG2216 is that it runs really cool. At living room temperature you can hardly notice any heating on the top/surface with your hand.

            Edit: my switch shipped with the very first firmware version, v1.0_20120528. The first thing I did was to upgrade to versions v1_130925 and v1_131031. Reason was that config file of the first version is not compatible with further versions (as stated on the manufacturer's website and read in a review too), + a good couple of new features are present in the updates.

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Thanks for the write up.  :)
              The VLAN config looks almost identical to that of most other small managed switches (in my very limited experience). All except Cisco perhaps.  ::)

              Steve

              1 Reply Last reply Reply Quote 0
              • M
                mikeisfly
                last edited by

                Looks pretty good to me. Has most of the features that you would want and the back plane is fast enough to support all the ports transmitting a full bandwidth. Has support of VLAN tagging and LAG as well as rapid spanning tree. I think you will be good. The only thing I didn't see which is a shop stopper is radius support. If I could offer some suggestions.

                When you connect to switches together via a tagged port (Cisco call it trunk port, but more proper to call it a tagged port) you should not put untagged traffic on the same port. If you have untagged traffic on a tagged port then make sure that both switches have the same pvid on both sides otherwise you will have traffic from one vlan getting onto another.

                P.S.

                Modern Cisco switches will automatically cross over the connection just make sure  you have the command: mdix auto under the interface

                1 Reply Last reply Reply Quote 0
                • R
                  robi
                  last edited by

                  I agree that my view may be distorted, as my (not so wide) experience on VLANs was almost exclusively based on Cisco Catalyst series. That's still what they teach nowdays on CCNA training… And, to be honest, Cisco's implementation is indeed very confortable and easy to maintain.

                  What I'm missing from this TP-Link VLAN implementation, is something like Cisco's VTP (VLAN Trunking Protocol), where you can set master/slave relationship between switches, and if you add a VLAN to the master switches, it will automatically created on the slaves too. This makes it easy and fast to maintain if you have dozens of switches connected to each other, plus minimizes mistakes.

                  I can of course live without VTP in my lab, but I think it's trivial to have it in a corporate environment.

                  1 Reply Last reply Reply Quote 0
                  • R
                    robi
                    last edited by

                    @mikeisfly:

                    When you connect to switches together via a tagged port (Cisco call it trunk port, but more proper to call it a tagged port) you should not put untagged traffic on the same port. If you have untagged traffic on a tagged port then make sure that both switches have the same pvid on both sides otherwise you will have traffic from one vlan getting onto another.

                    I didn't find a way to avoid that. As I wrote, it seems you can't have a port with tagged-only traffic, a PVID must be set. That means you'd have to sacrifice a (dummy) VLAN number to catch the untagged traffic. Not a big problem as you can have up to 512 VLANs simultaneously (on the Smart series).

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      They can't use VTP since that's a proprietary Cisco protocol. Wikipedia suggests the standards based equivalent is GVRP or MVRP. Neither appear to be supported.  :(

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • C
                        charliem
                        last edited by

                        @stephenw10:

                        They can't use VTP since that's a proprietary Cisco protocol. Wikipedia suggests the standards based equivalent is GVRP or MVRP. Neither appear to be supported.  :(

                        Steve

                        Then next model up, ie, full layer 2 managed switch like TL-3216, do appear to support GVRP.  Haven't read deep enough to see what else you get with those over their 'smart switch' line.  Seems like the TL-SG2216 is pretty capable.

                        1 Reply Last reply Reply Quote 0
                        • M
                          mikeisfly
                          last edited by

                          Just my experience with GVRP and MVRP, they don't compare to VTP. With that being said VTP can get you in big trouble so it might be a good thing not to have it. Sounds a little crazy that you can't have a port without a pvid but a way to get around that would be not to assign that vlan to that port. On most every switch except Cisco there are a couple of things that you need to know about vlans.

                          1. When you add a vlan to a port it can be tagged or untagged.
                              a. Tagged is like a trunk port in cisco using the command switchport trunk allowed vlan x only the vlans specified by x will be on the trunk
                              b. untagged is like a access port in cisco
                          2. You then need to assign a pvid to a port which tells the switch what vlan to put the traffic on when untagged traffic enter that port. The similar command in Cisco would be switchport trunk native vlan x

                          Hope this helps :)

                          1 Reply Last reply Reply Quote 0
                          • R
                            razzfazz
                            last edited by

                            @robi:

                            I didn't find a way to avoid that. As I wrote, it seems you can't have a port with tagged-only traffic, a PVID must be set. That means you'd have to sacrifice a (dummy) VLAN number to catch the untagged traffic. Not a big problem as you can have up to 512 VLANs simultaneously (on the Smart series).

                            Can't you just set the PVID to 4095 (the "discard" VLAN)?

                            1 Reply Last reply Reply Quote 0
                            • R
                              robi
                              last edited by

                              No because the PVID appears as a dropdown box in the GUI, and it contains only the defined VLANs. Could work in CLI though, but I guess that may cause unpredictable results when looking at the GUI…

                              1 Reply Last reply Reply Quote 0
                              • peteP
                                pete
                                last edited by

                                Here purchased two of the TP-Link Easy switches (24 ports each).

                                That said one is mounted inside of a Leviton can which replaced a small 24 port generic switch.

                                I haven't had much time to play other than I am over port capacity on the two switches and had to add my old non managed Gb switches back into play (also 24 port).

                                • Pete

                                Auto mater
                                23.09.1-RELEASE (amd64)
                                built on Mon Dec 11 12:24:00 CST 2023
                                FreeBSD 14.0-CURRENT
                                PFSense + Qotom - Master
                                PFSense + Jetway - Backup
                                PFSense + Jetway - Backup
                                PFSense + Generic - Backup

                                1 Reply Last reply Reply Quote 0
                                • A
                                  aus_guy
                                  last edited by

                                  I was looking for a 16port smart switch aswell and ended up getting a Cisco SG300 20 port and have not looked back, I was initially looking at the 200 series but then decided to get the best i could afford. most cisco equipment costs an arm and a leg but surprisingly the SG-200 18 port was cheaper here than most of the 16port competitors(TPlink did not have a gigabit smart switch with the same features available here at the time). Now with the 300 series i got 2 more ports (having 4 uplink ports ontop of the 16 ports i was looking for has been very helpful and gives me more room to grow) and more features than i needed at the time and firmware upgrades keep adding more. The one feature the hp pro-curve had cisco did not was that you could turn off the link LEDs to save power, upgraded the firmware on my cisco before i started using it and the feature was now added.

                                  Ive had mixed experences with TP-Link equipment, i find that in basic operation it works well but start doing anything complex and performance goes down. You will not get full gigabit thoughput on every port at once but then in a home enviroment do you really need to. if it works for you then great but price up all the options, you might be surprised as i was.

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    robi
                                    last edited by

                                    @aus_guy:

                                    I was looking for a 16port smart switch aswell and ended up getting a Cisco SG300 20 port and have not looked back

                                    I've been looking at it too, but unfortunately the price for it in my area is almost 4x the price of the TL-SG2216. And I needed 2 of them.

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bennyc
                                      last edited by

                                      @robi:

                                      @aus_guy:

                                      I was looking for a 16port smart switch aswell and ended up getting a Cisco SG300 20 port and have not looked back

                                      I've been looking at it too, but unfortunately the price for it in my area is almost 4x the price of the TL-SG2216. And I needed 2 of them.

                                      The price is way more because the SG300 series is L3. The best comparable would be the SG200 series, which is the L2 series. I guess the one that comes closest is the SG200-18; It will be still more expensive than a TP-Link, but that is what I would consider normal.
                                      As most of the time; you get what you pay for, and there's rarely such a thing as free lunch.
                                      FWIW: I'm using a couple SG200 series @home instead of the TL-SG2216 I had previously, and am also very satisfied. But that's not because the TP-link had issues, I just needed other kind of setup over time.

                                      my €0.02 -> YMMV.  ;)

                                      4x XG-7100 (2xHA), 1x SG-4860, 1x SG-2100
                                      1x PC Engines APU2C4, 1x PC Engines APU1C4

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        aus_guy
                                        last edited by

                                        @bennyc:

                                        @robi:

                                        @aus_guy:

                                        I was looking for a 16port smart switch aswell and ended up getting a Cisco SG300 20 port and have not looked back

                                        I've been looking at it too, but unfortunately the price for it in my area is almost 4x the price of the TL-SG2216. And I needed 2 of them.

                                        The price is way more because the SG300 series is L3. The best comparable would be the SG200 series, which is the L2 series. I guess the one that comes closest is the SG200-18; It will be still more expensive than a TP-Link, but that is what I would consider normal.
                                        As most of the time; you get what you pay for, and there's rarely such a thing as free lunch.
                                        FWIW: I'm using a couple SG200 series @home instead of the TL-SG2216 I had previously, and am also very satisfied. But that's not because the TP-link had issues, I just needed other kind of setup over time.

                                        my €0.02 -> YMMV.  ;)

                                        layer 2/3 modes are actually switchable to get MAC based vlans I run mine in layer 2 mode and do the routing in pfsense. However I agree that the 200 series is more comparable to the tl-SG2216. I had budgeted for the SG200-18 but after selling my netgear 8 port for about the difference i could afford the SG300-20, I didn't really need the extra features at the end of the day i like having things to be able to play with but my going upto the best i could afford it also provided a future proof solution. While no one has a crystal ball i advise you to look beyond what you need right now and try and look into what you may need in the future or else the cheaper solution may end up being more expensive when you have to augment it or replace it. Im going through this with my TPlink access point at the moment, i thought it would be ok for what i needed at home but now im finding I just have to bite the bullet and spend the money, doing this twice has costed me more in the long run.

                                        I certainly know that in the right situation tplink gear can be dead on for price/performance/features, however that use case is small so know what your getting into. same thing goes for any brad/manufacturer.

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          robi
                                          last edited by

                                          Cisco SG200-18 also costs more than twice of the price of TL-SG2216.

                                          I've done some further testing with my TL-SG2216 pair, and I must say I'm perfectly satisfied of the results. Soon they will be installed to their final location. I admit that Cisco as a brand is much more respected one than the others - but for my needs, I'll be perfectly fine with my TP-Links. I really don't see the reason to just pay for the brand name, while in my setup they would perform equally well.

                                          1 Reply Last reply Reply Quote 0
                                          • peteP
                                            pete
                                            last edited by

                                            Yup here I come from using Cisco in a "work" environment; work was an airline for many many years.

                                            Cisco is embedded/ingrained in my head; it is a good product.

                                            My PFSense firewall is at home.

                                            I did initially use Cisco stuff at home; then went to downsizing the stuff to smaller footprint non managed switches, then to unmanaged "el cheapo" Gb switches; then to the TP-Link Managed switches which have worked fine for me.

                                            I was just looking for a reasonably priced product for my home and that would work with my automation stuff.

                                            I push the two 24 port switches and they are at port capacity such that I have more switches in place today (well and POE stuff).  I have little Aopen DE's connected to the GB network running XBMC. (well in every room that has an LCD TV).  I have tested all of the streaming HD stuff and they do fine.  I also have some 20 touchscreens connected via Gb connectivity; they have multiple CCTV streaming video streams plus TV streaming and an assortment of other stuff to manage my automation.  I have not broken the two switches yet.  My home is sort of a sandbox and I have filled up about 1/2 of a class c subnet with a variety of connected do whats; well need to go to a full class c as I am running of of IPs.

                                            I do side stuff stuff related to my hobbies. Helping (well forum moderation) a new company in Taiwan called Securifi which has a neato product that I am playing with called the Almond +.

                                            This is a plug for the Almond plus as it is a combo router, firewall, Wireless Gb (well AC) and automation touch screen about 4" square and maybe 1.5" thick that talks Zigbee and Z-Wave and wireless automation protocols.

                                            That said Securifi just installed a few of the TP-Link managed switches in their offices in Taiwan and they are really happy with them.

                                            • Pete

                                            Auto mater
                                            23.09.1-RELEASE (amd64)
                                            built on Mon Dec 11 12:24:00 CST 2023
                                            FreeBSD 14.0-CURRENT
                                            PFSense + Qotom - Master
                                            PFSense + Jetway - Backup
                                            PFSense + Jetway - Backup
                                            PFSense + Generic - Backup

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.