Jump to content

Ethernet/rj45 wiring

star_weaver

Does the order matter or does the order not matter along as the wire strands are the same on both ends? 

Link to comment
Share on other sites

Link to post
Share on other sites

https://www.iplocation.net/rj45-wiring

There's straight-through and cross-over(1). Modern network cards have auto-sensing so in general you can use either cable now. In the past you have to use straight to go to a router and cross-over for PC-to-PC connections.

 

1) Technically there's also some proprietary stuff like roll-over required to e.g. connect to Cisco terminals and the like, but those are uncommon and only for specific devices

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

43 minutes ago, Ralfi said:

For ‘straight’ cables, it doesn’t matter.

 

If you know you’ll be doing many of them, it’s good to follow the official colour code though, so it becomes a habit.

It kinda matters, in that you should have each twisted pair of conductors correspond to a differential pair for best EMI noise rejection.

Main System (Byarlant): Ryzen 7 5800X | Asus B550-Creator ProArt | EK 240mm Basic AIO | 16GB G.Skill DDR4 3200MT/s CAS-14 | XFX Speedster SWFT 210 RX 6600 | Samsung 990 PRO 2TB / Samsung 960 PRO 512GB / 4× Crucial MX500 2TB (RAID-0) | Corsair RM750X | Mellanox ConnectX-3 10G NIC | Inateck USB 3.0 Card | Hyte Y60 Case | Dell U3415W Monitor | Keychron K4 Brown (white backlight)

 

Laptop (Narrative): Lenovo Flex 5 81X20005US | Ryzen 5 4500U | 16GB RAM (soldered) | Vega 6 Graphics | SKHynix P31 1TB NVMe SSD | Intel AX200 Wifi (all-around awesome machine)

 

Proxmox Server (Veda): Ryzen 7 3800XT | AsRock Rack X470D4U | Corsair H80i v2 | 64GB Micron DDR4 ECC 3200MT/s | 4x 10TB WD Whites / 4x 14TB Seagate Exos / 2× Samsung PM963a 960GB SSD | Seasonic Prime Fanless 500W | Intel X540-T2 10G NIC | LSI 9207-8i HBA | Fractal Design Node 804 Case (side panels swapped to show off drives) | VMs: TrueNAS Scale; Ubuntu Server (PiHole/PiVPN/NGINX?); Windows 10 Pro; Ubuntu Server (Apache/MySQL)


Media Center/Video Capture (Jesta Cannon): Ryzen 5 1600X | ASRock B450M Pro4 R2.0 | Noctua NH-L12S | 16GB Crucial DDR4 3200MT/s CAS-22 | EVGA GTX750Ti SC | UMIS NVMe SSD 256GB /

TEAMGROUP MS30 1TB | Corsair CX450M | Viewcast Osprey 260e Video Capture | Mellanox ConnectX-2 10G NIC | LG UH12NS30 BD-ROM | Silverstone Sugo SG-11 Case | Sony XR65A80K

 

Camera: Sony ɑ7II w/ Meike Grip | Sony SEL24240 | Samyang 35mm ƒ/2.8 | Sony SEL50F18F | Sony SEL2870 (kit lens) | PNY Elite Perfomance 512GB SDXC card

 

Network:

Spoiler
                           ┌─────────────── Office/Rack ────────────────────────────────────────────────────────────────────────────┐
Google Fiber Webpass ────── UniFi Security Gateway ─── UniFi Switch 8-60W ─┬─ UniFi Switch Flex XG ═╦═ Veda (Proxmox Virtual Switch)
(500Mbps↑/500Mbps↓)                             UniFi CloudKey Gen2 (PoE) ─┴─ Veda (IPMI)           ╠═ Veda-NAS (HW Passthrough NIC)
╔═══════════════════════════════════════════════════════════════════════════════════════════════════╩═ Narrative (Asus USB 2.5G NIC)
║ ┌────── Closet ──────┐   ┌─────────────── Bedroom ──────────────────────────────────────────────────────┐
╚═ UniFi Switch Flex XG ═╤═ UniFi Switch Flex XG ═╦═ Byarlant
   (PoE)                 │                        ╠═ Narrative (Cable Matters USB-PD 2.5G Ethernet Dongle)
                         │                        ╚═ Jesta Cannon*
                         │ ┌─────────────── Media Center ──────────────────────────────────┐
Notes:                   └─ UniFi Switch 8 ─────────┬─ UniFi Access Point nanoHD (PoE)
═══ is Multi-Gigabit                                ├─ Sony Playstation 4 
─── is Gigabit                                      ├─ Pioneer VSX-S520
* = cable passed to Bedroom from Media Center       ├─ Sony XR65A80K (Google TV)
** = cable passed from Media Center to Bedroom      └─ Work Laptop** (Startech USB-PD Dock)

Retired/Other:

Spoiler

Laptop (Rozen-Zulu): Sony VAIO VPCF13WFX | Core i7-740QM | 8GB Patriot DDR3 | GT 425M | Samsung 850EVO 250GB SSD | Blu-ray Drive | Intel 7260 Wifi (lived a good life, retired with honor)

Testbed/Old Desktop (Kshatriya): Xeon X5470 @ 4.0GHz | ZALMAN CNPS9500 | Gigabyte EP45-UD3L | 8GB Nanya DDR2 400MHz | XFX HD6870 DD | OCZ Vertex 3 Max-IOPS 120GB | Corsair CX430M | HooToo USB 3.0 PCIe Card | Osprey 230 Video Capture | NZXT H230 Case

TrueNAS Server (La Vie en Rose): Xeon E3-1241v3 | Supermicro X10SLL-F | Corsair H60 | 32GB Micron DDR3L ECC 1600MHz | 1x Kingston 16GB SSD / Crucial MX500 500GB

Link to comment
Share on other sites

Link to post
Share on other sites

17 minutes ago, AbydosOne said:

It kinda matters, in that you should have each twisted pair of conductors correspond to a differential pair for best EMI noise rejection.

I took the OP as saying the wires will be in the same order at both ends & that they were asking if it matters which order they are in.

 

My response to that was that it doesn't matter what order the wires are in, so long as the order is the same of both ends of a straight cable.

 

If I misunderstood the OP, apologies.

Link to comment
Share on other sites

Link to post
Share on other sites

The order DOES matter. 

 

For a regular ethernet cable, use one of the two orders, and use same choice on both ends of the cable.  The recommended one and most commonly use is the B variant where you have the white-orange wire the first (if you look at the connectors with the contacts on top and clip on bottom).

So a regular cable has the wires in the same order on both ends. 

 

If you want to connect two computers together without using a switch, in the old days of 100 mbps network cards you had to use a crossover cable, which basically flips the transmit and receive pairs of wires on one connector. 

Modern network cards auto detect the wires and their role so you don't need to make a cross-over cable with modern network cards, but should you wish to nothing stops you.  For gigabit and higher speeds, you have to rearrange ALL FOUR pairs of wires, like in the picture below  (leave one connector normal, and the other like on the right side of the picture).   

 

image.png.2bceb343bf1a1472b81e0be17a1ed399.png

 

 

100 mbps and older ethernet network cards did not have this auto detect feature and for those, you had to make a crossover cable.  But, because 100 mbps ethernet only uses 4 out of the 8 wires to transmit data, leaving the other four unused, you can make a simplified crossover cable, like in the picture below. 

 

So as you can see 1+2  is on pair (transmit data) and 3+6 is the receive pair. Because the other pairs 4+5 and 7+8 are unused, they can be left untwisted.  So again, this is ONLY for 100 mbps. If you use such crossover with gigabit cards, they'll probably keep trying to auto detect wire order and fail, because it's neither a straight cable and it's not all four pairs rearranged like in the picture above.  You would probably get it working by forcing the network card down to 100 mbps from Device Manager but then you lose speed.

 

image.png.1888212799cdc7bd10c9f215af5f02be.png

 

 

 

For 10 mbps and 100 mbps, most likely you'll get away with using any pair as transmit pair  and receive pair .. for example use white-blue and blue for 1+2 (transmit), and white-brown and brown for 3+6 (receive)  ... in fact often people saved ethernet cable by installing two ethernet jacks or wall sockets at the end of one cable, and inserting only the 4 wires in the connector... the 2 100mbps signals go on their separate receive and transmit pairs so it all works OK. 

 

But with 1 gbps  all four pairs have to twisted properly in a cross over cable, or not twisted at all, leaving the network cards auto detect things.

Link to comment
Share on other sites

Link to post
Share on other sites

5 hours ago, Ralfi said:

I took the OP as saying the wires will be in the same order at both ends & that they were asking if it matters which order they are in.

 

My response to that was that it doesn't matter what order the wires are in, so long as the order is the same of both ends of a straight cable.

 

If I misunderstood the OP, apologies.

Yeah, I just don't really want to have to twist wires over each other, makes it hard to keep them in the same order, was thinking of putting  the same color pair together/side by side instead of the official layout. Green next to green/white then blue-blue/white and so on

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, star_weaver said:

Yeah, I just don't really want to have to twist wires over each other, makes it hard to keep them in the same order, was thinking of putting  the same color pair together/side by side instead of the official layout. Green next to green/white then blue-blue/white and so on

Here's a tip - expose 50mm of wires, un-twist them as naturally as possible, arrange them in order & straighten them by running your fingers along them multiple times.

 

Then snip them to length, before feeding them into the plug.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Ralfi said:

Here's a tip - expose 50mm of wires, un-twist them as naturally as possible, arrange them in order & straighten them by running your fingers along them multiple times.

 

Then snip them to length, before feeding them into the plug.

Thats what I do but half the time I end up putting am orange where brown needs to go or I swap a solid with a white making it so I need to redo that end of the cable

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, star_weaver said:

Thats what I do but half the time I end up putting am orange where brown needs to go or I swap a solid with a white making it so I need to redo that end of the cable

What kind of plug are you using?

 

There are three that i'm aware of; CAT5, CAT6 & CAT6 with a sleeve, the latter of which are easiest to work with.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Ralfi said:

What kind of plug are you using?

 

There are three that i'm aware of; CAT5, CAT6 & CAT6 with a sleeve, the latter of which are easiest to work with.

5

Link to comment
Share on other sites

Link to post
Share on other sites

The wires are colored like that for a reason.

Each two wires with same color (blue, orange, green, brown)  are twisted together and then insulated from the other pairs within the cable 

Each pair even has a different number of twists per feet/meter whatever, for extra protection against noise, picking up signals from the other pairs, whatever. 

 

Pins 1 and 2 must be wires from same color,  pins 3 and 6 must  be wires from same color,  then pins 4+5 should be wires from same color, and pins 7+8 should be wires from same color.  

 

Crimping ethernet jacks is fairly easy ... strip 1-2 inches of insulation, untwist about a  half an inch from each pair, use the blade to cut them to same length, insert the wires in the channels until you hit the back with all the wires, pull out and use blade again to shorten the wires and insert all again, push on the sleeve until the sleeve is after that bump that's gonna hold the sleeve once crimped ... done. 

On a properly made ethernet cable, the individual wires are not untwisted for more than around 1/3 inch,  around the width of your small finger on your hand.

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, mariushm said:

The wires are colored like that for a reason.

Each two wires with same color (blue, orange, green, brown)  are twisted together and then insulated from the other pairs within the cable 

Each pair even has a different number of twists per feet/meter whatever, for extra protection against noise, picking up signals from the other pairs, whatever. 

 

Pins 1 and 2 must be wires from same color,  pins 3 and 6 must  be wires from same color,  then pins 4+5 should be wires from same color, and pins 7+8 should be wires from same color.  

 

Crimping ethernet jacks is fairly easy ... strip 1-2 inches of insulation, untwist about a  half an inch from each pair, use the blade to cut them to same length, insert the wires in the channels until you hit the back with all the wires, pull out and use blade again to shorten the wires and insert all again, push on the sleeve until the sleeve is after that bump that's gonna hold the sleeve once crimped ... done. 

On a properly made ethernet cable, the individual wires are not untwisted for more than around 1/3 inch,  around the width of your small finger on your hand.

I know how to do it, it's just a bit hard to line colors up properly for me

Link to comment
Share on other sites

Link to post
Share on other sites

I would get the passthrough RJ45 plug ends so you can feed extra wire through the end of the cable, it makes life SO much easier

Current Network Layout:

Current Build Log/PC:

Prior Build Log/PC:

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, Lurick said:

I would get the passthrough RJ45 plug ends so you can feed extra wire through the end of the cable, it makes life SO much easier

As long as your crimper has a sharp guillotine blade on it, yes.

 

If the blade is dull, and mushrooming the cut ends so they just about touch, that can make some problems that are fun to track down.

I sold my soul for ProSupport.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×