Straight vs Crossover Cable: Uses, Color Order, Differences

Aisyah Aldina

Illustration of a network cable reel for a guide on straight and crossover cables

Hi everyone, before we get into configuring Cisco routers and switches, there is one basic thing you really need to understand first: when to use a straight cable and when to use a crossover cable. Picking the wrong cable is the most common reason a network in Cisco Packet Tracer fails to ping, even though every IP address is correct.

In this article I cover the uses, color order, and differences between straight and crossover cables, and then I put them into practice in Cisco Packet Tracer 8.2.1. I also connect the wrong cable on purpose so you can see the warning signs for yourself, both in the topology and in the ping results.

Getting to Know Straight and Crossover Cables

The network cables used in a LAN are UTP cables with 8 small wires inside and an RJ45 connector on each end. The only difference between a straight cable and a crossover cable is the color order of those small wires when they are crimped into the connector.

Straight cable color order

A straight cable uses the same color order on both ends. The most widely used standard is T568B, with the following order from pin 1 to pin 8.

Pin 1  White Orange
Pin 2  Orange
Pin 3  White Green
Pin 4  Blue
Pin 5  White Blue
Pin 6  Green
Pin 7  White Brown
Pin 8  Brown

The other end is also T568B, with exactly the same order.

Crossover cable color order

A crossover cable uses T568B on one end and T568A on the other end. The T568A order from pin 1 to pin 8 is as follows.

Pin 1  White Green
Pin 2  Green
Pin 3  White Orange
Pin 4  Blue
Pin 5  White Blue
Pin 6  Orange
Pin 7  White Brown
Pin 8  Brown

Compared with T568B, the only pairs that swap places are orange and green. That swap is what lines up the transmit pins on one device with the receive pins on the other device.

When to use straight and when to use crossover

The easiest way to remember it is this: different types of devices use a straight cable, and devices of the same type use a crossover cable.

Straight : PC to switch, router to switch, PC to hub
Cross    : PC to PC, switch to switch, router to router, PC to router

PC to router uses a crossover cable because, on the port side, a PC and a router are both treated as end devices that transmit on the same pins.

Note: On modern real hardware, many ports support Auto MDIX, so the link still works even if you use the wrong cable type. But in Cisco Packet Tracer and in certification exams, the straight and crossover rules still apply, so you still need to memorize them.

Cable Types in Cisco Packet Tracer

Open the Connections category

Cable type options in the Connections category of Cisco Packet Tracer

In Cisco Packet Tracer, all cables live in the Connections category, which is the lightning bolt icon in the bottom left corner. From left to right, the icons are Automatically Choose Connection Type (orange lightning bolt), Console (curved light blue line), Copper Straight-Through (solid black line), Copper Cross-Over (dashed black line), Fiber (orange), Phone, Coaxial, Serial DCE, and Serial DTE. The name of the selected cable appears in the box below, and in the screenshot it shows Copper Cross-Over.

Warning: Avoid the Automatically Choose Connection Type lightning bolt while you are learning. Packet Tracer will pick the right cable for you, but then you never learn which cable you should actually be using.

Practicing Straight and Crossover Cables in Packet Tracer

The topology I built has two parts. The left side is two PCs connected to one switch, and the right side is two PCs connected directly to each other without a switch.

Place the devices

Cisco Packet Tracer topology with straight cables to a switch and a crossover cable between PCs

The devices used are 1 Cisco 2960-24TT switch and 4 PCs (PC-PT). The switch comes from the Network Devices category under Switches, while the PCs come from the End Devices category. To show port names on the topology like in the screenshot above, go to Options, Preferences, and tick Always Show Port Labels in Logical Workspace.

Connect straight cables from the PCs to the switch

Straight cables from PC0 and PC1 to ports Fa0/1 and Fa0/3 on a 2960 switch

A PC and a switch are different types of devices, so use Copper Straight-Through. Click the straight cable icon, click PC0 and choose port FastEthernet0, then click Switch0 and choose port FastEthernet0/1. Repeat this for PC1, from port FastEthernet0 on PC1 to port FastEthernet0/3 on the switch.

Here is how the cables are connected.

PC0 FastEthernet0  ->  Switch0 FastEthernet0/1  (straight)
PC1 FastEthernet0  ->  Switch0 FastEthernet0/3  (straight)

A straight cable is drawn as a solid black line. Green triangles on both ends of the cable mean the link is up.

Connect a crossover cable from PC to PC

Dashed crossover cable from PC2 to PC3 with green link lights

PC2 and PC3 are the same type of device, so use Copper Cross-Over. Click the crossover cable icon, click PC2 and choose FastEthernet0, then click PC3 and choose FastEthernet0.

PC2 FastEthernet0  ->  PC3 FastEthernet0  (cross)

A crossover cable is drawn as a dashed black line, and both of its ends are green as well.

Set the IP address on each PC

Setting IP address 192.168.1.10 in the IP Configuration of PC0 in Packet Tracer

Click PC0, open the Desktop tab, then IP Configuration. Choose Static and fill in the IPv4 Address. When you click the Subnet Mask field, Packet Tracer automatically fills in 255.255.255.0. Do the same on the other PCs.

PC0  192.168.1.10  255.255.255.0
PC1  192.168.1.11  255.255.255.0
PC2  192.168.2.10  255.255.255.0
PC3  192.168.2.11  255.255.255.0

PC0 and PC1 are on the 192.168.1.0 network, while PC2 and PC3 are on the 192.168.2.0 network. The default gateway is left empty because there is no router yet.

Test ping over the straight cable

Successful ping from PC0 to PC1 over straight cables and a switch

Click PC0, open Desktop and then Command Prompt, and ping PC1.

ping 192.168.1.11

Four replies of Reply from 192.168.1.11 and Lost = 0 (0% loss) mean PC0 and PC1 are connected through the switch with straight cables.

What Happens When You Use the Wrong Cable

Use a straight cable for PC to PC

Straight cable from PC2 to PC3 showing red link lights because of the wrong cable

As an experiment, I connected PC2 and PC3 with a straight cable. As a result, both ends of the cable turned red. Red means the link is down and no data can get through.

Ping from PC2 to PC3 showing Request timed out because a straight cable is used

A ping from PC2 to PC3 returns Request timed out four times with Lost = 4 (100% loss), even though both IP addresses are correct.

Replace it with a crossover cable

Successful ping from PC2 to PC3 after switching to a crossover cable

Remove the wrong cable with the Delete icon (the X mark) on the toolbar, then connect PC2 and PC3 again using Copper Cross-Over. Once the lights on both ends turn green, ping again from PC2.

ping 192.168.2.11

This time every reply comes back with Lost = 0 (0% loss). The first reply can take a little longer, 17 ms on my machine, because the PC is still looking up the destination MAC address through ARP.

Common Problems and How to Fix Them

Red link lights

This is almost always caused by the wrong cable type. Remember the rule: different device types use straight, same device types use crossover, and PC to router uses crossover. If the cable is correct but the light on a router stays red, the router port probably has not been turned on with the no shutdown command yet. I will cover this in the router configuration article.

Orange light on a switch port

An orange light on a switch is not an error. The switch is running the Spanning Tree process for about 30 seconds before the port is ready to use. Wait until it turns green, then test the ping.

Green lights but ping still fails

If the cable is already green, the problem is in the IP addresses. Make sure both PCs are on the same network, for example both on 192.168.1.x with a subnet mask of 255.255.255.0, and that no IP address is used twice.

By now you can tell straight and crossover cables apart, you know their color order, and you have seen for yourself what happens when the wrong cable is connected in Cisco Packet Tracer. In the next article we will move on to basic Cisco CLI commands. If anything is still unclear, just drop a comment below and we can work through it together.

Leave a Comment