Ethernet crossover cables are required when connecting like devices—such as PC to PC or router to router—because MDI interfaces share the same transmit and receive pin assignments and need the cable to swap them. Straight-through cables work for MDI-to-MDIX connections, such as a computer or router plugging into a switch.
Crossover vs. Straight-Through Cables
I often find that there's confusion on crossover cables and when to use them, so let's go over the different types of equipment there are and when to use a regular cable.
When it comes to Ethernet, there are two different types of equipment out there: MDI and MDIX. MDI stands for medium dependent interface, and the X at the end just means that it's crossed over. What I have here are two pieces of equipment: a computer, which functions as an MDI, and a switch, which has MDIX interfaces on it. The MDI interfaces have pins one and two as the transmit and pins three and six as the receive, versus the MDIX interfaces, which have pins one and two as the receive and pins three and six as the transmit.
So when you're connecting these two devices with a straight-through cable, everything lines up correctly. You don't have any problems, and so most of your equipment that's meant to connect together, that is switches connecting into computers, in those cases a straight-through cable is fine. The problem is when we start connecting MDI to MDI equipment, because now if we were to connect MDI together with a straight-through, then the transmits are both trying to transmit on the same line but no one's listening, and they're trying to receive on the same line but no one's talking. So this is a problem.
That's why we use a crossover cable. A crossover cable will take pins one and two and bring them to three and six, and pins three and six to pins one and two. Now this computer that's talking on pins one and two is receiving on pins three and six, and vice versa. Typically with crossover cables, there are a couple of different types, but with our T568A and T568B crossover cables, these are all going to be straight-through lines from there. So this is when we're connecting MDI to MDI equipment.
Let's take what a network typically looks like. We have all of these devices on the outside that plug into a switch. All of these devices are MDI type connectors, where the switch tends to be an MDIX type connector. Then we usually plug the router into a switch, so this again is typically an MDI. Whenever we're plugging an MDI into an MDI, we want a crossover cable. But if it's an MDI to MDIX, then we just want a straight-through. So all of these cables here, and this cable here, are fine as straight-through cables. But if we were to connect these two devices together, or these two devices together, then these would require a crossover cable to connect from the MDI to MDI equipment.
Here's a table that might describe it in a little different way. Here we have MDI equipment, which would be the PCs and the routers, and MDIX interfaces on the switches. If I were to follow this through with this table, a switch plugged into a PC is a straight-through, and a switch plugged into a router is a straight-through. Same thing: switch to PC is a straight-through, switch to a router is a straight-through. So there we see all of the straight-through connectors. The rest of these connections, though, are like equipment. This is MDI to MDI. So when we're connecting like equipment, we want crossover cables. A PC to PC is a crossover. PC to router, a crossover. So that's where we see these crossover cables. And also a switch to switch is a crossover.
Now, we can see switches that have both MDI and MDIX on them, and there are times when we run through where it's a switch to switch and you would still use a straight-through to connect that, if those are the MDI connectors or the uplink connectors. There is also such a thing as an auto MDI/MDIX. Let's say this switch is an auto MDI/MDIX. When we connect whatever this device is into this switch on whatever port, it would auto sense and change that port to be either MDI or MDIX to adjust to whatever equipment is on the other side. So a lot of our equipment now can actually auto adjust to this, making it even less likely that we have those crossover cables. Although every once in a while I'll run into a case where I still have to use a crossover cable to connect two different pieces of equipment that are the same type.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →