U2 Networking
Home network fundamentals: cable, switches and wireless
Most strange network problems start at the physical layer: a bad cable, a hidden unmanaged switch or a wireless router asked to cover a whole house. Get the foundations right and everything built on top becomes easier to reason about.
At a glance
- Run solid copper Cat 6 for new in-wall cable, or Cat 6A if you want 10 GbE over long runs. Never buy copper-clad aluminum.
- Gigabit is enough for almost everything in a home. Spend on 10 GbE only between storage and the machines that move large amounts of data.
- Every switch in a VLAN path must understand VLANs. One unmanaged switch hidden behind a desk can break segmentation in confusing ways.
- Wired access points beat wireless mesh. One well-placed access point usually beats an expensive router in a cupboard.
- Wire everything that does not move.
Know the roles on your network
Consumer routers combine several jobs in one plastic box. In a homelab it helps to separate them, at least in your head and often in hardware.
| Role | What it does | Where it lives in a typical lab |
|---|---|---|
| Modem or ONT | Converts the provider's signal to Ethernet | Provider equipment, ideally in bridge mode |
| Router and firewall | Moves traffic between networks, applies rules, performs NAT, hands out addresses | A dedicated firewall appliance |
| Switch | Connects wired devices within a network and carries VLANs | One managed core switch, sometimes more |
| Access point | Connects wireless devices to the wired network | Ceiling or high wall, wired back to the switch |
When each role has its own device, you can upgrade, reboot or replace one without touching the others, and faults are much easier to isolate.
Cable that will not let you down
Which category to run
- Cat 6 is the sensible default for new runs. It carries gigabit and multi-gig speeds comfortably and 10 GbE over shorter distances.
- Cat 6A carries 10 GbE over the full 100 meter channel. Choose it if you are opening walls once and want headroom.
- Cat 5e already in the walls is usually fine for gigabit and often for 2.5 GbE. Test before replacing it.
- Fiber is excellent inside a rack and between buildings, but running it through a house is rarely worth the cost and fragility.
Caution
Cheap bulk cable is often copper-clad aluminum. It looks identical, terminates the same way and frequently works at first. Then connections start failing months later as the aluminum oxidizes and fatigues. Buy solid copper from a seller who states it plainly.
Ratings and local code
Fire ratings matter for safety and inspections. Riser-rated cable is generally acceptable inside walls between floors, and plenum-rated cable is required in spaces that carry air for heating or cooling. Plenum is a burn rating, not a speed rating. Rules differ by country and municipality, so check your local code before a large project.
Terminate properly
Terminate in-wall runs on a patch panel with keystone jacks, then use short pre-made patch cables from the panel to the switch. It costs a little more than crimping plugs onto solid cable, but it is far more reliable and much easier to change later. Shielded cable is rarely needed at home unless you are routing near strong electrical interference.
Myth
"Patch cables have a minimum length." They do not. Very short cables are fine. What matters is the total channel length, which should stay within 100 meters.
How fast does it need to be?
Gigabit Ethernet moves roughly 110 to 118 MB per second in practice. That is enough for several high-resolution video streams, backups of ordinary household data and remote desktop sessions. A single spinning hard drive cannot fill a gigabit link for long in random workloads, so faster networking only helps when the storage at both ends can keep up.
| Speed | Cabling | Where it pays off |
|---|---|---|
| 1 GbE | Cat 5e or better | Nearly every device in the house |
| 2.5 GbE | Cat 5e or better for typical runs | Fast internet plans, access points, a workstation |
| 10 GbE copper | Cat 6 for short runs, Cat 6A for full length | Workstations in another room that edit large files from the NAS |
| 10 GbE SFP+ | Direct-attach copper or fiber | NAS to hypervisor links, backups, VM migration inside a rack |
Inside a rack, used dual-port SFP+ network cards and direct-attach copper cables are the cheapest and coolest way to reach 10 GbE. RJ45 10 GbE runs hotter and draws more power. SFP and SFP+ modules look the same but are not interchangeable at 10 GbE, so read part numbers carefully, and check that RJ45 transceivers are supported by both the switch and the card before buying.
Rule of thumb
Use jumbo frames only on a dedicated storage network, and set the same MTU on every device in that network. A mismatch produces the worst kind of fault: some traffic works, large transfers stall, and nothing logs an error.
Choosing switches
Unmanaged, managed and layer 3
- Unmanaged switches just forward frames. They are fine at the edge for devices on a single network, but they do not understand VLAN tags.
- Managed switches support VLANs, port monitoring, link aggregation and statistics. Your core switch should be managed.
- Layer 3 switches can route between VLANs. Many inexpensive models route in a small CPU rather than in hardware, so advertised routing features run far below line rate. In a homelab, routing between VLANs usually belongs on the firewall, where rules are enforced.
Power over Ethernet
PoE lets one cable carry data and power to access points, cameras and small devices. Check two numbers: the power each port can supply and the total power budget for the whole switch. Standard PoE provides up to 15.4 W per port, PoE+ up to 30 W, and the higher classes up to 60 or 90 W. A switch with a small total budget may not power every port at once.
Controller-managed or standalone
Some switch and access point ecosystems are managed from a central controller, which makes VLANs easy because you define them once and they appear everywhere. Devices keep forwarding traffic when the controller is off; it is needed for changes, statistics and firmware updates. Prefer ecosystems where you can run the controller yourself rather than only through a vendor cloud, and back up the controller configuration off the machine it runs on. Standalone switches with a command line are less friendly but easier to automate and to learn transferable skills on.
Warning
Never connect two switch ports to each other, directly or through other switches, unless spanning tree is enabled and you understand the result. A loop can flood the whole network in seconds. Leave spanning tree settings at their defaults unless you have a specific reason to change them.
Wireless that covers the house
Most complaints about home wireless come from asking one router to cover a house from inside a cabinet at one end. A single access point mounted high and central, wired back to the switch, almost always does better than a more expensive router in the wrong place.
- Wire your access points. Wireless mesh links that share one radio between clients and backhaul can lose around half their throughput at each hop, and every hop adds latency. Use mesh backhaul only where a cable truly cannot go.
- Mount high and central. Ceilings are ideal. Metal, mirrors, concrete and appliances block signal.
- Keep the number of wireless networks small. Each extra network name adds overhead to every channel. Three or four is plenty: trusted, IoT and guest cover most homes.
- Map each wireless network to a VLAN and carry the VLANs to the access point over a trunk port. See VLANs and Segmentation.
- Use narrower channels in crowded areas. Wide channels are faster on paper and slower in practice when neighbors overlap.
- Tune before you buy. In apartments and dense neighborhoods, survey which channels are busy and move away from them before adding another access point. Interference, not coverage, is often the real problem.
- Blame clients carefully. Roaming problems are often caused by the client device deciding when to switch, not by the access points.
Powerline adapters are a last resort. Real-world throughput is usually a small fraction of the number on the box, and it varies with whatever else is plugged into the circuit. Point-to-point wireless bridges are a better option for reaching a detached garage or workshop.
Common physical-layer mistakes
- A hidden unmanaged switch in the middle of a VLAN path strips tags and puts devices on the wrong network.
- A cable that negotiates at 100 Mb/s instead of 1 Gb/s, usually because of a damaged pair. Check link speed on the switch whenever something feels slow.
- Zip ties pulled tight on bundles, which deform cables. Use hook-and-loop straps.
- Undocumented ports. Label both ends of every cable and keep a port map. See Documentation and Technical Debt.
- Buying before planning. Sketch the network, count the ports and power budget, then buy.
When something still does not work, our Troubleshooting guide walks through testing from the cable upward.