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 type | Devices | Sends on | Receives on |
|---|---|---|---|
| MDI | PCs, servers, routers, access points, firewalls | Pins 1 and 2 | Pins 3 and 6 |
| MDI-X | Switches and hubs | Pins 3 and 6 | Pins 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.
| Link | Cable without Auto-MDIX |
|---|---|
| PC to switch, router to switch | Straight-through |
| Switch to switch, router to router, PC to PC | Crossover |
| PC to router | Crossover: 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