I’m in the process of designing a home server and am curious how many ethernet ports are required at minimum and how many people recommend. The single board computer (SBC) I plan to use has two built in and has a pcie slot to add four more if necessary. If I don’t need the four extra I’d like to use the pcie slot for a pcie Coral Edge TPU (preferred over the USB variant but still an option).

I expect to plan to use the server to connect to my home network so any device on the network via WiFi can access NextCloud. Besides that I want to use Frigate in another container for home video surveillance. I don’t know if I can or want to yet also add a Plex or Jellyfin instance to then connect to my TV or use a separate SBC for that.

What are your thoughts? I’m new to all of these things and just don’t want to waste money on the wrong hardware. Thanks!

  • FiveMacs@lemmy.ca
    link
    fedilink
    English
    arrow-up
    34
    arrow-down
    2
    ·
    1 year ago

    1 is required at minimum, there is no maximum

    I’m so confused by your question.

      • thejevans@lemmy.ml
        link
        fedilink
        English
        arrow-up
        14
        ·
        1 year ago

        Off the top of my head, here are a few scenarios where you would like multiple network ports, none of which you are likely to need to worry about.

        1. You only have gigabit network devices, but you’re running a file server that you expect to often have multiple devices utilizing concurrently, so you connect all those devices to the same switch that the file server is plugged into and you implement bonding to increase the throughput to/from the server.
        2. You are virtualizing a router, so you need a WAN port as well as a LAN port.
        3. You have mostly gigabit devices, but you want a really fast connection between two servers or between your server and a workstation, so you add 10 Gbps or higher network cards to those machines and you connect them directly.
        4. You’re running a high-availability cluster and you want to use a ceph pool, so you use a second network port on each device for the ceph network.
        • sic_semper_tyrannis@feddit.chOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          #1 seems like something I understand and could use but doubt I really need that. The other things you mention I don’t fully understand what they are and since you say I probably don’t need to worry about them then I won’t.

          I believe I’ll need to use a second port to add an ePOE hub for a few cameras though.

          Thank you!

          • peregus@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            I would segregate the CCTV stuff on a separate VLAN since most likely it will be available from Internet. Since you are planning to use frigate and not connect directly to each single camera, place a firewall rule that block Internet access to them (or at least don’t add the gateway).

          • thejevans@lemmy.ml
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            I believe I’ll need to use a second port to add an ePOE hub for a few cameras though.

            You mean a POE network switch? You can run POE powered devices on the same network as everything else, so you don’t need an extra port for that.

            • sic_semper_tyrannis@feddit.chOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              Specifically POE security cameras. So those can be connected to my all-in-one router and thus to my server running Frigate? That’s good to understand. Thank you

              • _TK@lemmy.antemeridiem.xyz
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                They can only be connected to your router if the router has POE support. If it doesn’t, you will need a separate switch that has POE ports. Many POE cameras etc are sold with power injectors. You plug the Ethernet from the router into the injector, plug the injector into a wall outlet, then run Ethernet from the injector to the device. If you don’t want to get a whole new switch with POE ports, you could get POE that way.

      • MigratingtoLemmy@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Adding to thejevans’ answer, if you were running a network analysis tool like Snort, it would be easier if you had multiple ports.

      • FiveMacs@lemmy.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Backup internet, eg two ISPs supplying internet to your house.

        Two (or more) seperate networks that need access to the same server. This is done so is network A is down, network B can still access the server.

        I still don’t fully understand your question. You NEED at least one rj45 to supply network access to the server. (I’m ignoring the fact that wifi exists)

        • sic_semper_tyrannis@feddit.chOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I didn’t know you could have to ISPs connected to one device. I won’t be requiring that however. I was wondering if besides the one port to connect my server to the router there was anything else I was missing or is commonly used that I should be aware of to take up another port.

          • FiveMacs@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Well they would be going to the router and the router would be handling it, but you could still have seperate feeds from the router on lan/opt ports to the device.dont think they will both function at the same time though, system needs priorities

            • grahamsz@kbin.social
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              I’ve seen it done in data center environments where there are two connections to two different switches - so you can do maintenance on either switch without downtime.

              Same reason for having dual power feeds to each machine.

      • MajinBlayze
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        1 year ago

        Are you confusing “ports” with “interfaces”? I can see that happening since we do colloquially refer to both as ports depending on context.

        Each service will bind to it’s own “port” which is tied up by that service. However each interface (the external physical connection) supports like 65,000 software ports.

        So in practice, no, you don’t usually need more than one physical network connection to run multiple services.

        • sic_semper_tyrannis@feddit.chOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I didn’t know that you could have two “interfaces” vs “ports”. I was talking about the physical ports knowing this. This helps me understand what @fiivemacs means. I’m definitely not going to be using more than one provider. Thank you!

      • cmnybo@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I have two ports bonded on my server to get more speed, but I could get by with a single port just fine.
        If you need to connect to multiple networks you can use VLANs and a single ethernet port if you want to.

          • cmnybo@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Bonding is using multiple ports for increased throughput or redundancy. I have my server set to balance-alb which will share the load over both ports when transferring data between two or more computers. It will not increase the throughput to a single computer though.

    • peregus@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      And VLAN to segment the network (separate the CCTV stuff that I guess will be reachable from Internet and…I don’t know what else OP may have)

  • arthurpizza@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    Remember a homelab can be anything from multiple rack mounts humming along in your basement to just SBC running some clever Podman containers. Everyone’s wants, needs, and interests are different.

    Sounds like most of what you want to do could be done with one or two machines, a decent switch, and some kind of Wi-Fi access point. There is no wrong or right way to do it.

  • Moonrise2473@feddit.it
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    The cameras are on the same network, or worse, on the same WiFi?

    If everything is on the same WiFi, then you need a single gigabit Ethernet port as you will never be able to saturate it

    • sic_semper_tyrannis@feddit.chOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I would prefer to keep the cameras off of the WiFi. I don’t want them accessing the internet. I have never used containers before which Frigate will be on so hopefully there is a way to disable internet access to a container. Otherwise though the SBC comes with two 2.5Gbit ports and I believe my router is at least 1Gbit though regardless I plan to upgrade it.

      • Moonrise2473@feddit.it
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        that’s not about them accessing the internet or not (if you don’t have a dedicated VLAN just keep empty the gateway in their network config), it’s that at 2-6 mbits each, they saturate the bandwidth fast if everything is on the same network, especially wifi

        • sic_semper_tyrannis@feddit.chOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Well I’ve certainly got a lot more learning to do and these projects give me something to apply my knowledge to. I’ll be looking more into Vlans and also how to beef up my throughput (if that’s the right term to use here).

  • apigban@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    i didnt have a problem with network ports (I use a switch) what I shouldve considered during purchasing was the number of drives (sata ports), pcie features (bifurcation, version, number of nvme slots)

    I need to do high IOPs for my research now and I am stuck with raid0 commodity SSDs in 3 ports.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    DNS Domain Name Service/System
    PoE Power over Ethernet
    SBC Single-Board Computer
    SSD Solid State Drive mass storage

    4 acronyms in this thread; the most compressed thread commented on today has 7 acronyms.

    [Thread #114 for this sub, first seen 6th Sep 2023, 23:15] [FAQ] [Full list] [Contact] [Source code]

  • Faceman🇦🇺@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    I have 6 ports on my main server and I used to use them all just because I could, but I only really use 3 these days.

    1x 10gbe for file server access, plex, downloaders, nextcloud etc.

    1x 1gbe for DNS (Adguard Home), home automation stuff, web hosting, etc etc.

    1x 1gbe for VMs

    I could do them all with one 10gbe and split out subnets with Vlans in software, but I like dedicated connections where possible as it is easier to manage and monitor.

    If you are looking to run a plex or jellyfin server it is usually best to use a dedicated player for those (nvidia shield, apple Tv, chromecast GTV etc…) as they always tend to have better support for things like multiple HDR formats and things like Atmos or DTSX compared to running a DIY HTPC box.

    • sic_semper_tyrannis@feddit.chOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Thanks! It gives me context and better understanding with your example. Good to know about the extra features dedicated movie boxes might have. I’ll keep that in mind when looking for or designing one.

  • notdeadyet@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Unless you’re planning on virtualizing your router on the server (think OPNsense VM or something) then really only one ethernet port is required. Otherwise the sky is the limit. For example, mine has a 1 Gbps port, a 2.5gbps port, and two 10 Gbps ports.

    Depends on what you want/need and whether you want to future proof I guess.

  • mkwarman@lemmy.mkwarman.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    For what it’s worth, I have a server with two rj45s (and a third for BMC), but I only plugged one of them into my switch. I run anywhere from 2-8 containers/vms on that server and never felt the need to hook up the other jack. I guess there’s probably some contention of running multiple hosts all through that one connection, but typically I don’t really need anything faster than the ~2-400mbps I get with WiFi anyway. So to answer you question, it depends, but I would generally say maybe start with the one and don’t worry about it unless you’re really moving massive amounts of data regularly and saturating your line. You’d also need to consider you’ll need a switch and other network hardware capable of handling that throughout as well if you’re really going to potentially saturate those ports.

    • sic_semper_tyrannis@feddit.chOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thank you. This gives a lot of context and makes sense. I think I’ll use the second port for an ePOE hub for the cameras and the pcie slot for the Coral. Right now I use a half decent all-in-one router with OpenWRT but have been wanting to upgrade to get AX WiFi. I’ll look into makinging sure I get competent hardware.

  • lilShalom@lemmy.basedcount.com
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    Im using 10gb network cards in my homelab. My vm server has an extra 1gb port for an outside interface on multiple pfsesne vms that i use to route traffic over vpn tunnels.

    Then on my nas i have 10gb to a switch with the vm servers. It has another 1gb interface that i run directly to another nas. It uses that direct link to backup data nightly.