0Pricing
Network+ Academy · Lesson

Straight-Through vs Crossover Cables

Know when each cable type is needed between devices.

Straight-Through vs Crossover Cables is a free Network+ Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Network+ Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Same Plug, Different Wiring

Two Ethernet cables can look identical on the outside yet behave very differently inside. The difference is whether the two ends use the same wiring standard or different ones. This gives us straight-through and crossover cables. Knowing which to use between two devices is a classic Network+ topic, even though modern hardware has made the choice less critical than it once was.

Straight-Through Cables

A straight-through cable uses the same standard on both ends — either T568B on both or T568A on both. Pin 1 connects to pin 1, pin 2 to pin 2, and so on. This is the everyday cable that connects a computer to a switch or a switch to a router. The vast majority of patch cables you buy are straight-through.

Crossover Cables

A crossover cable uses T568A on one end and T568B on the other. This swaps the transmit and receive pairs so that the sending pins of one device line up with the receiving pins of the other. Crossover cables were traditionally needed to connect two similar devices directly, where both would otherwise try to transmit on the same pins.

The Like-vs-Unlike Rule

The classic guideline: connect unlike devices with a straight-through cable and like devices with a crossover.

  • Straight-through — PC to switch, switch to router.
  • Crossover — PC to PC, switch to switch, router to router.

The idea is that unlike devices already use opposite transmit/receive pins, while like devices need the cable to do the swap.

Transmit and Receive Pairs

Why does this work? Each device transmits on certain pins and listens on others. A PC and a switch are wired oppositely, so a straight-through cable lines transmit up with receive automatically. Two PCs both transmit on the same pins, so a straight-through cable would connect transmit to transmit — useless. The crossover's swap fixes that, connecting transmit to receive on both ends.

Auto-MDIX Changed Everything

Modern equipment includes Auto-MDIX (Automatic Medium-Dependent Interface Crossover). It lets a port automatically detect whether it needs a straight-through or crossover connection and adjust electronically. With Auto-MDIX, either cable type works between any two devices. This is why you can plug two modern switches together with an ordinary cable and it just works.

Why the Topic Still Matters

Even with Auto-MDIX, the concept stays on the exam and in the field. Older devices may lack Auto-MDIX and still need the correct cable. Troubleshooting a dead link between two old switches might come down to needing a crossover. Understanding transmit/receive pairing also deepens your grasp of how Ethernet physically works, which helps with harder questions.

Rollover Cables Too

A third type worth knowing is the rollover (or console) cable. Its wiring is fully reversed end to end, and it is not for carrying network data. Instead it connects a computer to the console port of a router or switch for direct management. It is often flat and light blue. Do not confuse it with a crossover; their purposes are completely different.

Identifying a Cable

To tell cables apart, hold the two RJ45 ends side by side with the clips facing the same way and compare the wire colors through the clear plastic. Same color order on both ends means straight-through. Orange and green swapped between the ends means crossover. A cable tester can also confirm the type by showing the pin-to-pin mapping.

Practical Guidance

In practice today: buy and use straight-through cables for almost everything, rely on Auto-MDIX to handle like-device links, and keep a labeled crossover and a rollover cable in your toolkit for old gear and console access. On the exam, apply the like-uses-crossover, unlike-uses-straight-through rule unless the question states Auto-MDIX is present.

Why the Like/Unlike Rule Has Exceptions

The classic like-versus-unlike rule has wrinkles worth knowing. A router and a PC are technically like devices in pin terms and traditionally needed a crossover, while a PC and a switch are unlike and used straight-through. Memorizing the transmit/receive idea — connect a sender's transmit pins to the other's receive pins — lets you reason out any pairing instead of memorizing a long list. Auto-MDIX makes the point moot on modern gear.

Quick Check

Test your cable-selection skills.

Recap

You learned the two main copper cable wirings. A straight-through uses the same standard on both ends and connects unlike devices like a PC to a switch. A crossover uses T568A on one end and T568B on the other, swapping transmit and receive to connect like devices such as switch to switch. Auto-MDIX now lets ports adapt automatically, so either cable usually works. The rollover cable is a separate type used only for console management.

Frequently asked questions

Is the “Straight-Through vs Crossover Cables” lesson free?

Yes — the full text of “Straight-Through vs Crossover Cables” is free to read here on the web, and the Network+ Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Network+ Academy course, upgrade to CoddyKit PRO.

What will I learn in “Straight-Through vs Crossover Cables”?

Know when each cable type is needed between devices. You practise Network+ Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Network+ Academy?

No prior experience is required. Network+ Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Straight-Through vs Crossover Cables” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Network+ Academy lesson?

Yes. Every Network+ Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Twisted Pair Cable Categories
  2. RJ45 Connectors and Wiring Standards
  3. Straight-Through vs Crossover Cables
  4. Coaxial Cable and Where It Still Lives
← Back to Network+ Academy