100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace

What is a Crossover Cable?

Learn what a crossover cable is, how transmit and receive pins are swapped, and when it is still needed, with interview Q&A.

easyQ153 of 224 in Computer Networks Est. time: 4 minsLast updated:
Open Code Lab

Expected Interview Answer

A crossover cable is an Ethernet cable wired so that the transmit pins on one end connect to the receive pins on the other end, allowing two similar devices, such as two computers or two switches, to communicate directly without an intermediary device performing that crossover.

A standard Ethernet cable maps each pin straight through from one end to the same pin number on the other end (a straight-through cable), which works when connecting dissimilar devices like a computer to a switch, because the switch’s ports internally reverse the transmit and receive pairs. When connecting two similar devices — computer to computer, switch to switch, or router to router — both ends expect to transmit on the same pins, so a straight-through cable would leave both sides sending on the same wires and neither able to receive. A crossover cable rewires pins 1/2 (transmit) on one end to pins 3/6 (receive) on the other end following the T568A/T568B standards, so each side’s transmit lines feed the other side’s receive lines. Most modern Gigabit Ethernet NICs and switches implement Auto-MDI-X, which automatically detects and corrects the wiring, making manual crossover cables largely unnecessary today, though they remain relevant in legacy 10/100 Mbps environments and troubleshooting scenarios.

  • Enables direct device-to-device links without a switch in between
  • Matches transmit pins to receive pins for like-to-like device connections
  • Useful for quick lab, testing, or emergency direct-link setups
  • Understanding it clarifies how Auto-MDI-X removed the need for manual selection

AI Mentor Explanation

A crossover cable is like two batters at the same end of the pitch trying to hand the bat directly to each other instead of through an umpire — normally the umpire (a switch) receives from one and passes to the other, but for a direct hand-off, each batter must physically twist to offer the bat to the other’s receiving hand rather than both holding it out the same way. If both simply held it out identically, neither hand would actually connect. This deliberate crossing of hand positions is exactly what a crossover cable does with transmit and receive wires for two similar devices.

Step-by-Step Explanation

  1. Step 1

    Identify the need

    Two similar devices (e.g., PC to PC, switch to switch) need a direct link without an intermediary.

  2. Step 2

    Wire the crossover

    One end follows T568A, the other T568B, swapping transmit pins 1/2 with receive pins 3/6.

  3. Step 3

    Connect the devices

    Each device now transmits directly into the other device's receive pins.

  4. Step 4

    Auto-MDI-X fallback

    On modern Gigabit hardware, Auto-MDI-X detects and corrects wiring automatically, so a straight-through cable often works too.

What Interviewer Expects

  • Explains the transmit-to-receive pin swap and why it is needed
  • Distinguishes when a crossover vs straight-through cable is required
  • Mentions T568A/T568B wiring standards
  • Knows Auto-MDI-X made manual crossover cables largely unnecessary on modern hardware

Common Mistakes

  • Thinking crossover cables are still strictly required on all modern networks
  • Confusing crossover cable use cases with straight-through use cases
  • Not knowing which pins are swapped (1/2 with 3/6)
  • Assuming a crossover cable is a different cable category rather than a different wiring order

Best Answer (HR Friendly)

A crossover cable is a special Ethernet cable used to connect two similar devices, like two computers or two switches, directly to each other. It swaps the send and receive wires on one end so both devices can actually talk to each other, since normally a switch does that swapping for you. Most modern equipment can detect and adjust for this automatically now, so you rarely need to think about it, but it is still useful to understand for troubleshooting.

Code Example

Checking link status when connecting two hosts directly
# Confirm link is up after connecting two PCs with a crossover (or Auto-MDI-X) cable
ip link show eth0
# eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 ... state UP

# Assign static IPs on the same subnet to test direct connectivity
sudo ip addr add 192.168.50.1/24 dev eth0    # host A
sudo ip addr add 192.168.50.2/24 dev eth0    # host B
ping -c 3 192.168.50.2

Follow-up Questions

  • What is the difference between T568A and T568B wiring standards?
  • How does Auto-MDI-X eliminate the need for manual crossover cables?
  • When would you still need a crossover cable today?
  • What is a straight-through cable used for by comparison?

MCQ Practice

1. Which pins does a standard crossover cable swap?

A crossover cable swaps transmit pins 1/2 on one end with receive pins 3/6 on the other end.

2. When is a crossover cable traditionally needed?

Crossover cables are traditionally used to connect two similar devices directly without an intermediary switch.

3. What feature on modern Gigabit hardware reduces the need for crossover cables?

Auto-MDI-X automatically detects and corrects transmit/receive wiring, making manual crossover cables largely unnecessary.

Flash Cards

What is a crossover cable?An Ethernet cable wired so transmit pins on one end connect to receive pins on the other.

When is it needed?To directly connect two similar devices, like PC to PC or switch to switch.

Which pins are swapped?Pins 1/2 (transmit) with pins 3/6 (receive).

What reduced its necessity?Auto-MDI-X, which auto-detects and corrects wiring on modern Gigabit hardware.

1 / 4

Continue Learning