Short answer: put the switch on 35 mm DIN rail inside a 10 x 8 x 6 in (254 x 203 x 152 mm) stainless wall-mount box, give each of the six cables its own gland, and budget 5 W of heat. That load raises the box about 7 C (13 F) over a 40 C (104 F) ambient, so the box stays sealed with no vent and no fan. The enclosures are manufacturer-rated NEMA 4X / IP66; not UL listed, and every gland and fitting you add must hold the same grade. The sections below size the box, fix the heat budget, and take the install from rail to hose check.
What size sealed box fits a DIN rail Ethernet switch?
A 10 x 8 x 6 in (254 x 203 x 152 mm) wall-mount box fits: 5.91 in (150 mm) of inside depth takes a 0.6 in rail, a 3.9 in switch body and a 1.0 in RJ45 plug with air left, and 7.91 in of width holds six glands.
Work the depth stack layer by layer and compare the total with the inside depth on the catalog drawing:
| Layer in the depth stack | Figure to use | Basis |
|---|---|---|
| Removable backplate | 0.1 in (3 mm) | panel sheet, per the catalog CAD |
| Top-hat DIN rail, front face | 0.6 in (15 mm) | TS35 rail on its clips |
| Switch body | 3.5 to 4.0 in (90 to 100 mm) | compact 5-port DIN switch; measure yours |
| RJ45 plug plus boot | about 1.0 in (25 mm) | standard 8P8C plug |
| Total | 5.2 to 5.7 in (132 to 145 mm) | against 5.91 in (150 mm) inside depth |
A 4.0 in (100 mm) body with chunky boots eats most of the 5.91 in. When a DIN power supply or a second switch joins the rail, step up to the 12 x 10 x 8 in box, which gives 7.91 in (201 mm) of inside depth. The same stack, worked for any device list, is the minimum-depth method for DIN rail devices.
Width comes easier. A 7.5 in (190 mm) rail spans the 7.91 in (201 mm) inside width, the switch itself needs only about 1.7 in (43 mm) of rail, and six glands at 1.2 in (30 mm) centers span 6.0 in (152 mm) on the bottom wall. Both grades share every size: take the 10 x 8 x 6 in box in 304 stainless for washdown and most outdoor sites, or the same 10 x 8 x 6 in box in 316L for salt air, brine and chemical areas. The wall-mount range runs from 6 x 4 x 4 in to 60 x 36 x 16 in. Pick the switch before the box: a guide to selecting DIN rail unmanaged Ethernet switches covers ports, temperature range and watts.
How much heat does a 5-port switch add inside a sealed box?
Budget 5 W: the datasheet of a typical 5-port industrial gigabit switch lists about 2.8 W at full load, and doubling it covers a bigger model and rounding; add the DIN supply's loss and the working figure for this box is 5.7 W, an 8 C rise.
Here is the arithmetic for the 10 x 8 x 6 in box:
- Skin area: 2 x (10 x 8) + 2 x (10 x 6) + 2 x (8 x 6) = 376 in² (0.243 m²). Wall-mounted, the 80 in² (0.052 m²) back face sits against the wall, so 296 in² (0.191 m²) does the cooling.
- Wall transfer: 3.7 W/m²K for stainless, the figure this site's heat guides use, so kA = 3.7 x 0.191 = 0.707 W/C.
- Switch at the 2.8 W datasheet figure: rise = 2.8 / 0.707 = 4.0 C.
- Budget case: 5 W of switch plus 0.7 W of supply loss, from a DIN supply at 87% efficiency feeding 5 W: 5 x (1 / 0.87 - 1) = 0.7 W. Rise = 5.7 / 0.707 = 8.1 C.
At a 40 C (104 F) design ambient the inside air lands near 48 C, and most industrial switch datasheets print -40 to +75 C (-40 to 167 F) as the operating range, so the budget case keeps about 27 C of margin. Hold the rise at or under 10 C (18 F) at your design ambient; that is the line this build meets with room to spare.
Two things move the number. PoE is the big one: four 802.3af ports can deliver 4 x 15.4 W = 61.6 W, the switch's own loss grows with the delivered watts, and any powered device kept inside the box adds its heat — size that case with the sealed-enclosure PoE method. Ambient is the other: above 45 C (113 F) the sealed options narrow, and the hot-ambient cooling options article sorts them.
How do you mount the switch on the backplate?
Fix a 7.5 in (190 mm) length of 35 mm top-hat rail to the removable backplate with three screws, clip the switch on with 1 in (25 mm) of empty rail at each end, and wire the 24 V DC feed before any data cable.
- Pull the line-side fuse or breaker feeding the DIN supply, lock it out, and check zero volts at the supply input before any wiring.
- Scribe a level line at mid-depth, leaving 2 in (50 mm) between the gland row and the rail for cable bends: structured cabling standards (TIA-568) hold 4 jacket diameters of bend radius for UTP, about 1 in (25 mm) on 6 mm Cat6.
- Screw the rail to the line with stainless screws in every third slot, about 3 in (75 mm) apart — three screws on a 7.5 in rail.
- Clip the switch at one end of the rail and keep 1 in (25 mm) of empty rail beside it for the release tool and plug access.
- Mount the DIN supply below the switch: warm air rises, and the supply usually carries the lower temperature rating, so it takes the cooler spot.
- Terminate the 24 V DC feed with the polarity marked, tightened to 5 in-lb (0.56 N·m) or the torque printed on the case.
- Land the supply's protective earth on the box grounding stud; with shielded cable, bond the shield at the gland as set out in cable gland bonding for stainless junction boxes.
The rail work itself — marking the panel, screw sizes, cutting rail to length — is in the guide to mounting DIN rail on a backplate. This job adds one thing to it: the gland row below the rail, feeding upward.
How many cable glands does a 5-port switch need?
Six: one 24 V DC feed and five Ethernet runs — the uplink plus four drops — each in its own cutout, each sealed by a gland rated for the same duty as the box, because one bad entry drags the whole assembly down to that entry's grade.
Size each gland to the jacket you measure, not the one on the box label. A common nylon gland for a 0.61 in (15.5 mm) hole clamps 0.16 to 0.31 in (4 to 6.4 mm), so standard Cat6 at about 0.24 in (6 mm) OD sits mid-range; shielded and outdoor jackets run fatter and take the next insert up. Fit the sealing washer outside the wall and the locknut inside, tighten to the gland's printed turns, and re-torque after the first heat cycle, because elastomer relaxes.
An IP68 mark on a gland describes immersion under conditions the gland maker defines; the mark alone does not carry the box rating. What holds a Type 4X / IP66 assembly at grade is the matched gland rating, the right hole, the right insert and the tightening — the lowest-rated part in the wall sets the number. On the box itself, IP66 means dust-tight plus powerful jets from a 12.5 mm nozzle at 100 L/min, which is the washdown duty you are sealing for. In US installations, NEC 110.28 says an IP code does not stand in for an enclosure Type rating, so put both on the spec.
Order the six cutouts with the box through the custom builder: each hole lands on the drawing you approve, and the box is delivered in 10 business days from that approval, with every wall unbroken. Six small glands sit straight in the bottom wall; if a bigger bundle is coming later, read when a stainless gland plate earns its place.
How does an RJ45 plug get through a sealed wall?
It does not: a booted RJ45 plug is about 0.5 in (13 mm) wide and cannot pass a 6.4 mm gland clamp, so feed the bare cable through the gland, then crimp the plug inside the box, leaving a 6 in (150 mm) service loop at the switch.
Crimp with plugs matched to the conductor — solid plugs for the run cable, stranded plugs for short jumpers — and wire-map each run as you make it. A factory-molded patch cord needs a different route through the wall: oversized glands and sealed bulkhead connectors do the job, as covered in getting a connector through a cable gland. Keep the patch cords inside the box, where they cost the rating nothing.
What checks prove the box still seals and stays cool?
Three numbers settle it: every run passes a wire map on all four pairs, the inside air sits 10 C (18 F) or less above ambient after an hour of full traffic, and a 5-minute hose-down leaves the gasket line and all six glands dry when you open the door.
- Wire map: test all six runs, four pairs each, and read link LEDs at full speed on every port.
- Temperature: run full traffic for an hour, then measure the inside air away from the switch body — placement changes the reading, as set out in where to measure ambient temperature inside an enclosure. This build computes to 8.1 C of rise, so a reading near 10 C means something is wrong.
- Water: hose the closed box from all sides for 5 minutes, open it, and look for drips at the gasket line and every gland. The shop hose checks your workmanship; the Type 4X / IP66 rating stays the manufacturer's test result.
- Seals: re-torque the six locknuts after the first heat cycle and swap the desiccant pack on its maker's schedule.
Which mistakes cost the rating or the switch?
The costly one is the field-drilled hole: it rarely matches the gland, the swarf stays behind the seal, and one bad entry un-rates a box that arrived cut right — so order all six cutouts with the box and keep every wall intact.
The rest of the list, in order of what it costs you:
- A breather or drain added to fight condensation: an IP54 vent makes the assembly an IP54 box whatever the door label says. Stay sealed and dry the air instead; the sealed-versus-vented tradeoff is worked through in enclosure vent or sealed box outdoors.
- PoE left out of the heat budget: re-run the PoE sizing before you order, because the delivered watts are the number that moves the rise.
- A clamp insert one size over the measured jacket: the seal rides on air instead of rubber and lets go first at the jet.
- The supply forgotten in the watt budget: here it is 0.7 W, but a 40 W supply at 87% efficiency loses 6.0 W and pushes the rise past 15 C.
Enclosures in this article
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 10 × 8 × 6 in | 304 stainless | 10 x 8 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 10 × 8 × 6 in | 316L stainless | 10 x 8 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 12 × 10 × 8 in | 304 stainless | 12 x 10 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Can two cables share one cable gland?
Not with a standard gland: the clamp seals one cable inside a stated range, and the common 0.61 in (15.5 mm) nylon type takes 0.16 to 0.31 in (4 to 6.4 mm). Two jackets under one seal leave a leak path, so each cable gets its own hole, or you order a multi-hole gland the maker rates for the duty.
What heat figure should I use for a PoE switch in the same box?
Start from the PoE budget, not the idle draw: four 802.3af ports can deliver 4 x 15.4 W = 61.6 W, and the switch's own loss plus any powered device kept inside the box all become heat. Size that case with the sealed-enclosure PoE method; the 5 W figure in this article is for a non-PoE switch.
Does a sealed box stay dry through an overnight temperature drop?
Yes, when it stays sealed: the water that fogs a box comes in with exchanged air, and a gasketed box holding dry air has little to condense through a 10 to 15 C overnight drop. Keep the desiccant fresh and re-torque the gland locknuts after the first heat cycle instead of adding a vent.
What gland hole fits outdoor-rated Cat6?
Match the hole to the measured jacket, not the category name: standard Cat6 runs about 0.24 in (6 mm) OD and sits mid-range in a 4 to 6.4 mm clamp on a 0.61 in (15.5 mm) hole, while shielded and outdoor jackets reach 0.30 in (7.6 mm) and need the next gland size up.





