cross-posted from: https://lazysoci.al/post/12597342

Okay, I’ve been watching lots of YouTube videos about switches and I’ve just made myself more confused. Managed versus unmanaged seems to be having a GUI versus not having a GUI, but why would anyone want a GUI on a switch? Shouldn’t your router do that? Also, a switch is like a tube station for local traffic, essentially an extension lead, so why do some have fans?

  • Moonrise2473@feddit.it
    link
    fedilink
    arrow-up
    18
    ·
    7 months ago

    it depends what you need it. If you want a “stupid” tube station for local traffic, then you want unmanaged. It needs less power. If you instead want to have multiple VLANs, which are separate virtual networks inside your network, you need managed. Then from the GUI you say “port 8-12 are for VLAN 5 which is 10.0.0.1/8 and does not have internet access, rest is normal LAN”. If then the switch has lots of fast ports, then it needs lots of power to manage the communication, more power means more hot, and more fans.

      • Pohl@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        edit-2
        7 months ago

        Your question exposes a language problem.

        A router cannot do that. A router connects two networks together and routs traffic between them. That is it.

        A home “router” is a combination device that includes a router, a wireless access point, maybe a modem, a managed switch, a dhcp server, a firewall, and more.

        If you need a managed switch with more than 4 ports… you buy a managed switch. It is simple.

      • IsoKiero@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        5
        ·
        7 months ago

        Think a large office space or industrial application with several hundred (or thousands) of hosts connected to the network. Some of them need to be isolated from the internet and/or rest of the network, some need only access to the internet, some need internet and local services and so on.

        With that kind of setup you could just run separate cables and unmanaged switches for every different type of network you have and have the router manage where each of those can talk to. However, that would be pretty difficult to change or expand while being pretty expensive as you need a ton of hardware and cabling to do it. Instead you use VLANs which kinda-sorta split your single hardware switch into multiple virtual ones and you can still manage their access from a single router.

        If you replace all the switches with routers they’re quite a bit more expensive and there’s not too many routers with 24 or 48 ports around. And additonally router configuration is more complex than just telling the switch that ‘ports 1-10 are on vlan id 5 and ports 15-20 are on id 8’. With dozens of switches that adds up pretty fast. And while you could run most routers as a switch you’ll just waste your money with that.

        VLANs can be pretty useful in home environment too, but they’re mostly used in bigger environments.

      • Superb
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        7 months ago

        A router usually can do all that but it also does a whole lot more, like NAT, DHCP, etc. Sometimes you need a just a switch that understands VLANs and link aggregation

          • Superb
            link
            fedilink
            English
            arrow-up
            5
            ·
            7 months ago

            Yeah the line can get pretty ambiguous. In general I try to use the device with the least complexity that still gets the job done

            • catloaf@lemm.ee
              link
              fedilink
              English
              arrow-up
              7
              ·
              7 months ago

              No, a modem modulates and demodulates a signal. Basically, they’re a converter. For example, to send your Ethernet traffic over coax. They don’t often understand or care about what’s in an Ethernet frame.

        • sabreW4K3@lazysoci.alOP
          link
          fedilink
          arrow-up
          1
          ·
          7 months ago

          Isn’t there some overlap between NAT, DHCP and DNS, they feel like they should be the same thing? Or am I oversimplifying it? Because DHCP is assigning IP addresses, DNS is looking up IP addresses and NAT is saying that IP address points there 👉🏾

          • FutileRecipe@lemmy.world
            link
            fedilink
            arrow-up
            5
            ·
            7 months ago

            Isn’t there some overlap between NAT, DHCP and DNS, they feel like they should be the same thing?

            Absolutely no overlap. Now, can a conventional home router do all those? Typically NAT and DHCP, but not too often DNS (except to point at a real DNS). That’s like saying “isn’t there overlap between milk and eggs? I mean, sure, they deal with animals and stored in the fridge, but used for different purposes.”

            Because DHCP is assigning IP addresses, DNS is looking up IP addresses and NAT is saying that IP address points there 👉🏾

            Sure, they deal with IP addresses and some devices (home routers) can do 2-3 of those fuctions, but that doesn’t mean they overlap. I can read a book (IP) and my book (IP) can be stored in a book bag or on a book shelf, but that doesn’t mean myself, the bookbag, and the bookshelf overlap.

  • MystikIncarnate@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    As a networking professional, I’ll just say: it gets worse the more you look at it.

    I think others have covered most of what you wanted to know, but ask me any follow up questions that might still be lingering.