hardwarenetworkingnetwork-plusBeginner21 min read

What Is Medium Dependent Interface Crossover in Networking?

Also known as: Medium Dependent Interface Crossover, MDIX, crossover cable, straight-through cable, auto-MDIX

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security

This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.

On This Page

Quick Definition

An MDIX cable is a type of Ethernet cable that crosses the send and receive wires. Normal straight-through cables connect different devices, like a computer to a switch. An MDIX cable lets you connect two similar devices, such as two computers or two switches, directly together. It is also called a crossover cable.

Must Know for Exams

The term Medium Dependent Interface Crossover is specifically tested in the CompTIA Network+ (N10-008 and N10-009) exam objectives under domain 2.0 (Networking Fundamentals) and domain 3.0 (Network Implementations).

The exam expects you to know the difference between a straight-through cable and a crossover cable, and the correct scenarios for each. You must be able to identify which cable type is required when connecting two PCs, a PC to a switch, a switch to a router, two switches, or two routers. The exam also covers auto-MDIX, and you need to know that modern devices can automatically detect and adjust, but older devices cannot.

Questions may present a scenario where a technician is unable to establish a link between two switches, and you must deduce that a crossover cable is needed. The exam may also ask about T568A and T568B wiring standards and which pairs are swapped in a crossover cable. In the Network+ exam, this topic is considered foundational and often appears in multiple-choice questions, sometimes with a diagram of pinouts.

It is also tested in the context of troubleshooting. For example, a technician reports that two computers connected directly with a straight-through cable cannot ping each other. You must identify the fix: use a crossover cable instead.

The exam may also test whether you know that auto-MDIX is enabled by default on most modern Gigabit Ethernet ports. The Cisco CCNA exam also covers this topic, though it focuses more on configuring auto-MDIX on Cisco switches. In both exams, the concept is considered low-difficulty but high-importance because getting it wrong breaks network connectivity.

The exam may include the term in a list of port types or in a question about network topologies.

Simple Meaning

Imagine you have two telephones. Each phone has a mouthpiece for speaking and an earpiece for listening. To have a conversation, you need the mouthpiece of one phone connected to the earpiece of the other, and vice versa.

If you connected mouthpiece to mouthpiece and earpiece to earpiece, neither person would hear anything. Ethernet cables work in a similar way. A network device has pins that transmit data (like a mouthpiece) and pins that receive data (like an earpiece).

When you connect a computer to a switch, the switch is designed to have its transmit connected to the computer's receive, so a straight-through cable works fine. But when you connect two computers directly, you must swap the transmit and receive pairs so each computer sends to the other's receiver. That is exactly what a Medium Dependent Interface Crossover cable does.

It literally crosses the wiring inside the cable, linking transmit on one end to receive on the other. This simple physical change makes direct device-to-device communication possible without needing an intermediate network device. Modern switches and many network interface cards have a feature called auto-MDIX, which automatically detects the cable type and adjusts internally, so crossover cables are less common today.

But the concept remains fundamental to understanding how Ethernet networking works at the physical layer. The term “Medium Dependent Interface” refers to the connector and signaling used on a specific medium, like copper twisted-pair cable. The “Crossover” part tells you that the transmit and receive pairs are swapped.

In the CompTIA Network+ exam, you must know when to use a crossover cable versus a straight-through cable, and also understand that auto-MDIX changed the rules.

Full Technical Definition

The Medium Dependent Interface (MDI) is the standard pinout for an Ethernet port on a network interface card (NIC) or other end device. In 10BASE-T and 100BASE-TX Ethernet, the MDI uses two wire pairs: pins 1 and 2 for transmit (TX+) and transmit- (TX-), and pins 3 and 6 for receive (RX+) and receive- (RX-). A straight-through cable connects pin 1 to pin 1, pin 2 to pin 2, pin 3 to pin 3, and pin 6 to pin 6.

This works perfectly when linking an MDI device (like a computer) to an MDIX device (like a switch or hub). The MDIX port on a switch reverses the pairs internally: pins 1 and 2 become receive, and pins 3 and 6 become transmit. When two MDI devices need to be connected directly, a crossover cable is required.

The crossover cable swaps the pairs so that the transmit pins on one end connect to the receive pins on the other end. Specifically, in a T568A to T568B wired crossover cable, the orange pair (pins 1 and 2) at one end connects to the green pair (pins 3 and 6) at the other end, and vice versa. For 1000BASE-T (Gigabit Ethernet) and faster standards, all four wire pairs are used for bidirectional data transmission.

In these standards, each pair carries both transmit and receive signals simultaneously using hybrid circuits and echo cancellation. This means that crossover cables are not strictly necessary for Gigabit Ethernet because each device can handle the signal mixing internally. However, auto-MDIX (Automatic Medium Dependent Interface Crossover) is a feature defined in IEEE 802.

3ab that allows a port to automatically negotiate and configure the appropriate MDI or MDIX configuration. When auto-MDIX is enabled, the device determines the cable type by transmitting a short test signal and detecting the wiring arrangement. It then switches its internal transceiver to match the cable.

Most modern network interfaces and switches support auto-MDIX, making the physical distinction between straight-through and crossover cables largely irrelevant for modern equipment. However, the CompTIA Network+ exam still tests knowledge of the cable types and the scenarios where crossover cables would be used without auto-MDIX. The TIA/EIA-568 standard defines the wiring pinouts for both T568A and T568B configurations.

Real-Life Example

Think of a building where each office has a mailbox with a slot for incoming mail and a tray for outgoing mail. The building also has a central mailroom with its own incoming and outgoing slots. If you want to send mail from your office to the mailroom, you simply drop your letter into the outgoing slot.

The mailroom collects it through their incoming slot. That is like a straight-through cable: your office (computer) sends, the mailroom (switch) receives. Now imagine you want to send a letter directly from your office to a colleague's office next door, without going through the mailroom.

If you both have your own outgoing and incoming slots, you cannot just run a tube from your outgoing slot to their outgoing slot, because you would both be sending and neither would receive. Instead, you need a tube that connects your outgoing slot to their incoming slot, and their outgoing slot to your incoming slot. That is a crossover cable.

The crossover cable physically swaps the connections so that each person can send and the other can receive. If you had a modern building with a smart mail system that could detect the way the tube was connected and automatically route the mail correctly, you would not need the special tube at all. That is what auto-MDIX does.

For many years, IT technicians had to carry both types of cables. Now, with auto-MDIX on nearly all devices, you can almost always use a straight-through cable and let the devices figure out the connection. But on older equipment, or in exam scenarios, knowing the difference is critical.

For example, connecting two old switches without auto-MDIX requires a crossover cable.

Why This Term Matters

In real IT work, understanding MDIX and crossover cables matters most when dealing with older or low-cost network equipment that does not support auto-MDIX. Many small office or home office networks still use equipment that may have auto-MDIX disabled by default. If you need to connect two switches to expand a network, or connect two computers directly to transfer files quickly, knowing whether you need a crossover cable saves time and troubleshooting.

The concept also appears frequently when setting up lab environments. In a network lab, you often connect devices directly without a switch in between. If you forget auto-MDIX or use the wrong cable, the link light will not come on, and you must check the cable.

This is a fundamental physical-layer issue. More broadly, understanding the difference between MDI and MDIX helps you grasp how Ethernet standards define the electrical and signaling characteristics of the physical medium. It builds a foundation for understanding other networking concepts like port roles, uplink ports, and even some aspects of Power over Ethernet (PoE).

In cybersecurity, physical-layer vulnerabilities are sometimes overlooked. Knowing the cable type can be relevant when physically securing network segments or when troubleshooting why a link is down even though the cable looks fine. For network administrators, being able to quickly identify cable types by the color of the crimps or by testing with a cable tester is a practical skill.

Moreover, the principle of swapping transmit and receive is not limited to copper Ethernet. Fiber optic transceivers also use transmit and receive fibers, and you must ensure the transmit on one end goes to the receive on the other. The MDIX concept carries over to fiber as well, often called a cross in fiber patch cables.

So the knowledge extends beyond copper twisted pair.

How It Appears in Exam Questions

Exam questions about MDIX typically fall into three categories: scenario-based, definition-based, and troubleshooting. Scenario-based questions describe a network setup and ask which cable type is required. For example: A technician needs to connect two switches that do not support auto-MDIX.

Which cable type should be used? The answer is crossover. Another pattern: A user wants to connect two laptops directly to share files. What cable should be used? Crossover. Definition-based questions may ask: Which type of cable reverses the transmit and receive pairs?

Or: What is the purpose of an MDIX port on a switch? Troubleshooting questions: A network administrator connects a router to a switch using a straight-through cable, but the link light is off. What is the most likely issue?

The answer might be that the switch port is set to MDI instead of MDIX, but if auto-MDIX is disabled, a crossover cable would be needed. Some questions test the wiring pinouts: Which pins are swapped in a T568A to T568B crossover cable for 10/100 Ethernet? (Pins 1 and 2 swap with pins 3 and 6).

There are also questions that ask about auto-MDIX: What feature allows a switch to automatically detect the cable type and adjust its internal connection? Answer: auto-MDIX. Exam questions may also present a table of devices and ask you to match the cable type: Computer to switch (straight), computer to computer (crossover), switch to switch (crossover without auto-MDIX, straight with auto-MDIX).

Some scenario questions add complexity by including routers: Router to router (crossover), router to switch (straight). The exam might ask about the impact of using the wrong cable: The link will not come up, or there may be excessive errors. You must also know that crossover cables are not needed for Gigabit Ethernet if auto-MDIX is enabled.

A typical question might be: A technician connects a Gigabit Ethernet switch to a router using a crossover cable, but the link works. Why? Because auto-MDIX on both ports negotiated the correct connection.

The exam expects you to reason through these scenarios.

Practise Medium Dependent Interface Crossover Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

An IT intern is asked to set up a small training lab with two old desktop computers and a very old switch that does not have auto-MDIX. The intern wants to connect the two computers directly to each other to transfer some large files quickly. The intern finds a box of cables labeled CAT5e and grabs a straight-through cable.

He connects one end to the first computer's network port and the other end to the second computer's port. The link lights on both computers remain dark. The intern tries a different straight-through cable, but still no link.

He then uses a cable tester and confirms the cable is good. Finally, he finds a cable with a different colored boot, marked crossover, and tries it. The link lights come on, and the computers can ping each other.

In this scenario, the intern learned the practical difference between straight-through and crossover cables. The straight-through cable connected transmit to transmit and receive to receive, so neither computer could hear the other. The crossover cable swapped the pairs, allowing communication.

If the intern had known about MDIX and auto-MDIX, he would have saved time. This scenario shows that even in a simple two-device connection, cable type matters when auto-MDIX is not supported.

Common Mistakes

Using a straight-through cable to connect two computers directly.

Two computers both use MDI ports, which have the same pinout. A straight-through cable connects transmit to transmit and receive to receive, so neither device can receive the other's signal.

Use a crossover cable, or enable auto-MDIX on both computers if supported.

Thinking crossover cables are only for 10/100 Mbps Ethernet and not for Gigabit.

Gigabit Ethernet uses all four pairs for bidirectional communication, but crossover cables still work. Auto-MDIX is more common on Gigabit ports, making crossover cables unnecessary, but they are still valid.

Understand that crossover cables work at any speed, but auto-MDIX makes them optional on modern equipment.

Assuming a switch always needs a straight-through cable to another switch.

Switches have MDIX ports, so they are internally crossed relative to MDI devices. Connecting two switches with a straight-through cable results in transmit-to-transmit and receive-to-receive. Without auto-MDIX, a crossover cable is required.

When connecting two switches, use a crossover cable unless you know both support auto-MDIX.

Confusing the terms MDI and MDIX. Thinking MDI is the crossover version.

MDI stands for Medium Dependent Interface and is the standard pinout used on end devices like computers and routers. MDIX is the crossover version that swaps the pairs, typically found on switches and hubs.

Remember MDI = end device (no crossover), MDIX = switch (crossover internally).

Believing that auto-MDIX is always enabled on all devices.

While most modern devices enable auto-MDIX by default, some older or low-cost equipment may not. Also, some managed switches allow disabling auto-MDIX on specific ports.

Do not assume auto-MDIX is present. When troubleshooting, always check the equipment specifications or test with a known cable.

Exam Trap — Don't Get Fooled

The exam asks: Which cable type should you use to connect a router to a switch? The learner chooses crossover because they remember that two different device types sometimes need crossover. Always remember the fundamental mapping: end devices (PCs, routers, printers) are MDI and use straight-through to connect to switches (MDIX).

Two end devices need crossover. Two switches need crossover unless auto-MDIX is on. The trap is that the learner tries to categorize by function (router vs switch) rather than by port type.

Focus on the port type: MDI vs MDIX. If you know the router's Ethernet port is MDI (which it usually is), then connect straight to an MDIX switch port.

Commonly Confused With

Medium Dependent Interface CrossovervsStraight-through cable

A straight-through cable connects pins 1 to 1, 2 to 2, etc. It is used to connect a computer (MDI) to a switch (MDIX). A crossover cable swaps pairs to connect two MDI devices or two MDIX devices.

Connecting your laptop to a wall jack that leads to a switch uses a straight-through cable. Connecting your laptop directly to a friend's laptop uses a crossover cable.

Medium Dependent Interface CrossovervsAuto-MDIX

Auto-MDIX is a feature on network ports that automatically detects the cable type (straight or crossover) and adjusts the port's internal wiring accordingly. When auto-MDIX is enabled, you can use either cable type and it will work. MDIX is a physical cable or port wiring standard.

If your switch supports auto-MDIX, you can connect two switches with any Ethernet cable and it will work. Without auto-MDIX, you must use a crossover cable to connect two switches.

Medium Dependent Interface CrossovervsRollover cable

A rollover cable (also called a console cable) is used to connect a computer to a router or switch's console port for management. It rolls the pinout: pin 1 on one end connects to pin 8 on the other, pin 2 to pin 7, etc. This is completely different from a crossover cable, which only swaps a specific pair for Ethernet data.

A rollover cable is used to configure a Cisco router from a laptop's serial port. A crossover cable is used to connect two PCs for Ethernet file sharing.

Medium Dependent Interface CrossovervsUplink port

An uplink port on a switch is a dedicated port that is internally wired as MDI (like an end device) to allow connection to another switch with a straight-through cable. Many modern switches have auto-MDIX, making uplink ports obsolete. MDIX refers to the general cable crossover concept.

On an old switch without auto-MDIX, port 1 might be an uplink port labeled MDI, and you use a straight-through cable to connect it to another switch's normal port.

Step-by-Step Breakdown

1

Identify the device types

First, determine whether each device is an end device (like a computer, router, or printer) or a network infrastructure device (like a switch or hub). End devices typically have MDI ports. Switches and hubs have MDIX ports.

2

Check for auto-MDIX support

Verify if the ports on both devices support auto-MDIX. Most modern Gigabit Ethernet ports do. If both support auto-MDIX, you can use either a straight-through or crossover cable. The devices will negotiate and configure the correct internal wiring automatically.

3

Determine if same or different port types

If auto-MDIX is not supported, you must know the port types: MDI or MDIX. Connecting two devices with the same port type (MDI to MDI or MDIX to MDIX) requires a crossover cable. Connecting different port types (MDI to MDIX) requires a straight-through cable.

4

Select the cable

Based on the above analysis, choose a straight-through cable for MDI to MDIX connections, or a crossover cable for MDI to MDI or MDIX to MDIX connections. If auto-MDIX is present on both sides, any standard Ethernet cable works.

5

Crimp or purchase the correct cable

To physically create a crossover cable, use the T568A wiring standard on one end and T568B on the other. This swaps the orange and green pairs. For straight-through, use the same standard on both ends. Pre-made cables are color-coded at the factory.

6

Connect and verify link

After connecting the cable, check the link lights on both devices. A solid green or amber light indicates a successful connection. If the link light is off, try a different cable type or verify that auto-MDIX is enabled on the ports.

Practical Mini-Lesson

The concept of Medium Dependent Interface Crossover is rooted in the physical layer of networking. To understand it fully, you must first know that an Ethernet port on a computer or router (MDI) has dedicated transmit and receive pairs. In 10BASE-T and 100BASE-TX, pins 1 and 2 are transmit, and pins 3 and 6 are receive.

A switch or hub (MDIX) reverses these internally: pins 1 and 2 become receive, and pins 3 and 6 become transmit. This reversal allows a straight-through cable to work when connecting an end device to a switch. However, when connecting two end devices or two switches directly, the wiring must be crossed so that transmit from one connects to receive on the other.

That is the crossover cable. In practice, the crossover cable is made by using T568A on one connector and T568B on the other. The T568A standard wires the green pair on pins 1 and 2 and the orange pair on pins 3 and 6.

The T568B standard does the opposite: orange on pins 1 and 2, green on pins 3 and 6. So when you join T568A to T568B, the green pair on one end connects to the orange pair on the other end, which achieves the crossover. With the advent of Gigabit Ethernet and auto-MDIX, the need for dedicated crossover cables diminished.

Auto-MDIX is defined in IEEE 802.3ab and works by having a port initialize transmission on its transmit pair and listen on its receive pair. During link negotiation, the port sends a fast link pulse on its transmit pair and expects to see a response on its receive pair.

If no response is received, the port assumes the cable is crossed and flips its internal assignment. This negotiation happens in milliseconds. For network professionals, the most practical advice is to remember the rule: Straight-through for PC to switch, crossover for PC to PC or switch to switch, unless auto-MDIX is in play.

When troubleshooting, if a link is not coming up, always check the cable type first. A cable tester can quickly determine if the cable is straight or crossover. Also, many network interfaces have a status LED that may blink differently when the cable is wrong.

Another practical tip: keep a crossover cable in your toolkit for legacy equipment or lab scenarios where auto-MDIX is not available. In data centers, almost all equipment supports auto-MDIX, so crossover cables are rare, but they still appear in testing environments. Understanding this concept also helps when working with fiber optic cabling, where the transmit and receive fibers must be crossed at one end.

So the principle is universal. Finally, remember that the term Medium Dependent Interface refers specifically to the connector and signaling for a given medium, such as 10BASE-T over copper twisted pair. The crossover variant adjusts the wiring for direct device-to-device connections.

Memory Tip

If the device type is the same, you need a crossover cable. Same device, cross the wires.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Legacy Exam Context

Older materials may mention these exam versions, but learners should use the current objectives for their target exam.

N10-008N10-009(current version)

Related Glossary Terms

Frequently Asked Questions

What is the difference between MDI and MDIX?

MDI is the standard pinout for an Ethernet port on an end device like a computer, where pins 1 and 2 are transmit and pins 3 and 6 are receive. MDIX is the crossover version where those pairs are swapped, commonly found on switches and hubs.

Do I need a crossover cable to connect two computers today?

It depends on the devices. Most modern computers have auto-MDIX, which allows them to use a straight-through cable. However, if both computers do not support auto-MDIX, you need a crossover cable.

How does auto-MDIX work?

Auto-MDIX automatically detects the cable type by sending a signal and listening for a response. If the transmit and receive pairs are mismatched, the port swaps its internal wiring so the link works.

Can I use a crossover cable for Gigabit Ethernet?

Yes, a crossover cable works with Gigabit Ethernet. However, Gigabit Ethernet uses all four wire pairs and auto-MDIX is almost always supported, so a straight-through cable will also work.

What happens if I use a straight-through cable to connect two switches?

Without auto-MDIX, the link will not come up because both switches are trying to transmit on the same pair. With auto-MDIX on both switches, it will work fine.

How do I identify a crossover cable visually?

Look at the end connectors. If the wires are in the same order on both ends, it is a straight-through cable. If the order is different (usually the first pair is swapped with the third pair), it is a crossover cable. Many cables are labeled or color-coded.

Is a rollover cable the same as a crossover cable?

No. A rollover cable is used for console connections and rolls the entire pinout (pin 1 to pin 8, etc.). A crossover cable only swaps a specific pair of wires for Ethernet data.

Why do older network exams test crossover cables so much?

Because before auto-MDIX became common, knowing when to use a crossover cable was essential for network connectivity. It is still a fundamental concept that tests your understanding of the physical layer.

Summary

The Medium Dependent Interface Crossover, commonly called a crossover cable, is an Ethernet cable that swaps the transmit and receive wire pairs to allow two similar devices to communicate directly. Understanding it is essential for grasping how the physical layer of networking works, especially when auto-MDIX is not available. You must know the wiring standards (T568A and T568B), the difference between MDI and MDIX ports, and the rules for when to use straight-through versus crossover cables.

For CompTIA Network+ and other certification exams, this concept appears in scenario and troubleshooting questions that test your ability to connect devices correctly. While modern systems often handle this automatically, the principle remains a core part of networking knowledge. Remember: same port type needs a crossover; different port types need a straight-through cable, unless auto-MDIX saves the day.