mdi-mdix

Enables or disables Media Dependent Interface (MDI) and Media Dependent Interface Crossover (MDIX) detection on all Gigabit Ethernet Copper ports.
Syntax
mdi-mdix { mdi | mdix | auto }
no mdi-mdix [ mdi | mdix | auto ]
Command Default

The auto MDI/MDIX detection feature is enabled on all Gigabit Ethernet copper ports.

Parameters
mdi
Turns off automatic MDI/MDIX detection and defines a port as an MDI-only port.
mdix
Turns off automatic MDI/MDIX detection and defines a port as an MDIX-only port.
auto
Enables automatic MDI/MDIX detection on a port.
Modes

Interface configuration mode

Usage Guidelines

The auto MDI/MDIX detection feature can automatically correct errors in cable selection, making the distinction between a straight-through cable and a crossover cable insignificant. The command applies to copper ports only.

Note: The mdi-mdix mdi and mdi-mdix mdix commands work independently of auto-negotiation. Thus, these commands work whether auto-negotiation is turned on or off.

The no form of the command disables the specified mode.

Examples

The following example turns off automatic MDI/MDIX detection and defines a port as an MDI-only port.

device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# mdi-mdix mdi

The following example turns on automatic MDI/MDIX detection on a port that was previously set as an MDI or MDIX port.

device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# mdi-mdix auto