Octet

When do you need a crossover cable instead of a straight-through cable, and what does Auto-MDIX change?

Show the answer

Say this first

For 10 and 100 Mbps, PCs and routers (MDI) send on pins 1 and 2 and receive on 3 and 6, while switches and hubs (MDI-X) do the reverse. Unlike devices (PC to switch) use straight-through; like devices (switch to switch, PC to PC, router to PC) need crossover. Auto-MDIX detects the wiring and swaps the pairs electronically, so on modern gear either cable works. It is on by default on current Cisco switches.

Go deeper

Pinouts

PinT568AT568B
1white-greenwhite-orange
2greenorange
3white-orangewhite-green
4blueblue
5white-bluewhite-blue
6orangegreen
7white-brownwhite-brown
8brownbrown
  • Straight-through: the same standard on both ends (usually T568B to T568B).
  • Crossover: T568A on one end, T568B on the other. That swaps pairs 1-2 and 3-6. A full gigabit crossover also swaps 4-5 with 7-8.
  • Rollover (console): pin 1 to 8, 2 to 7 and so on, for RJ-45 console ports.

Auto-MDIX on Cisco

Cisco IOS
interface GigabitEthernet1/0/10
 speed auto
 duplex auto
 mdix auto

mdix auto is the default. On older Catalyst platforms it only works when speed and duplex are left on auto, so hard-coding speed could silently disable it and bring the link down with the wrong cable.

Traps

  • Saying router to switch needs crossover. Router (MDI) to switch (MDI-X) is straight-through.
How did you do?Book 2.2 Encoding