Copper cabling: straight, crossover and Auto-MDIX

Before Auto-MDIX, picking the wrong cable was the most common reason a new link stayed down. The rule still matters for the exam and for old equipment.

Who sends on which pins

Port typeDevicesSends onReceives on
MDIPCs, servers, routers, access points, firewallsPins 1 and 2Pins 3 and 6
MDI-XSwitches and hubsPins 3 and 6Pins 1 and 2

A link works when one end's send pair lands on the other end's receive pair. Between an MDI and an MDI-X port, a straight-through cable does that. Between two ports of the same kind, the pairs must cross: a crossover cable joins pins 1 and 2 to 3 and 6 on the other end.

LinkCable without Auto-MDIX
PC to switch, router to switchStraight-through
Switch to switch, router to router, PC to PCCrossover
PC to routerCrossover: both are MDI, a frequent exam trap

The pinouts are TIA/EIA-568A and 568B. A straight cable uses the same standard at both ends; a crossover uses 568A at one end and 568B at the other.

Gigabit and faster use all four pairs

10BASE-T and 100BASE-TX use only pins 1, 2, 3 and 6. 1000BASE-T sends and receives on all four pairs at once, in both directions. That is why a cable with only two good pairs gives you 100 Mbps and never gigabit.

Auto-MDIX

Auto-MDIX lets a port find out which pairs the other end sends on and swap its own, so either cable works. Nearly every port sold today does it, and it is on by default on Cisco switches.

interface FastEthernet0/1
 speed auto
 duplex auto
 mdix auto