Auto-MDIX
Table of Contents
Feature in modern Ethernet network interfaces that automatically detects whether a straight-through or crossover cable is required and configures the transmit/receive pairs accordingly. Eliminates the need to select the correct cable type when connecting two devices directly. Standard on Fast Ethernet (100 Mbps) and above per IEEE 802.3ab.
Background — Why It Exists
Traditional Ethernet required different cable types depending on the devices being connected:
| Connection | Cable without Auto-MDIX |
|---|---|
| Switch → PC | Straight-through |
| Switch → Switch | Crossover |
| PC → PC | Crossover |
| Switch → Router | Straight-through (usually) |
Getting the cable wrong resulted in no link. Auto-MDIX removes this requirement — either cable type works on any Auto-MDIX port.
How It Works
The interface negotiates during the link establishment phase (part of the auto-negotiation process defined in IEEE 802.3). Both ends exchange information and one side flips its TX/RX pairs to establish a valid connection regardless of cable wiring.
Practical Notes
- All modern managed and consumer switches support Auto-MDIX — cable type is irrelevant in practice for modern hardware
- Both ends must support Auto-MDIX for automatic detection to work; connecting to a legacy device may still require the correct cable
- Gigabit Ethernet (1000BASE-T) uses all four pairs bidirectionally so the crossover vs straight-through distinction is even less meaningful
- In a CTF or lab context this is never a practical concern — virtual network interfaces and modern hardware handle it transparently