What is Auto-MDIX and why is it useful?
Auto-MDIX (Automatic Medium-Dependent Interface Crossover) lets a port sense whether a straight-through or crossover cable is plugged in and swap its transmit/receive pins accordingly, so the cable type no longer has to match the devices.
Before Auto-MDIX, you had to pick the cable based on what was at each end, because Ethernet sends on one pair and listens on another — connect two "same" devices and both would transmit on the same pins and hear nothing. The rule was: straight-through between unlike devices (host-to-switch, router-to-switch) and crossover between like devices (switch-to-switch, host-to-host, router-to-router). Getting it wrong meant a dead link, which is a classic source of confusion.
Auto-MDIX removes that trap: the port detects the cable type and internally crosses or un-crosses its transmit/receive pairs to make the link work either way, so cable choice becomes irrelevant.
A few practical notes:
- It's enabled by default on Cisco switches running IOS 12.2(18)SE or later, and can be disabled — though that isn't recommended.
- If needed, re-enable it on an interface with
mdix auto. - Best practice: still use the correct cable type; treat Auto-MDIX as a safety net, not an excuse for sloppy cabling, especially since it requires speed/duplex autonegotiation to function.
Go deeper:
Medium-dependent interface — MDI / MDI-X / Auto-MDIX (Wikipedia) — the straight-through vs crossover pinout rule Auto-MDIX automates, and why gigabit links no longer need crossover cables.