Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Straight-through

Direct answer

A straight-through cable uses the same pinout at both ends and connects unlike devices such as a PC to a switch.

When to use this

Use it when connecting an end device to a switch, or when patching unlike devices.

First 30 seconds

1. Link up? show interfaces status.

2. No link between two switches with a straight cable → Auto-MDIX off (mdix auto) on old hardware.

3. Link only at 100 Mb/s → a pair missing or mis-wired.

4. test cable-diagnostics tdr interface <if>.

5. Re-terminate or replace the cable.

Operational verification

same pinout both ends → unlike devices (or Auto-MDIX) → all four pairs connected → link at full speed

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Mixing T568A on one end and T568B on the other by accident (becomes a crossover).
  • Untwisting pairs too far at the termination.
  • Using patch cable (stranded) for long permanent runs.
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Scope / prerequisiteUse it when connecting an end device to a switch, or when patching unlike devices.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Troubleshooting a cable Narrow the fault
  • Link down: check both ends, try a known-good cable, and use test cable-diagnostics tdr interface Gi1/0/1 then show cable-diagnostics tdr.
  • Link only at 100 Mb/s: a pair is broken (Gigabit needs all four).
  • Intermittent errors: damaged connector or bent cable — replace the patch cord first.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Straight-through connects unlike devices: PC or router to switch. Pinout T568B at both ends (or T568A at both). Almost all modern ports have Auto-MDIX, so the cable type rarely matters any more — but 1 Gb/s and faster need all four pairs wired correctly.

Key checks
  • show interfaces status — connected, speed, duplex, VLAN and media type per port.
  • show interfaces <if> — line/protocol state, input errors, CRC, collisions, last change.
  • show interfaces <if> counters errors — FCS, alignment, runts and late collisions.
  • test cable-diagnostics tdr interface <if> then show cable-diagnostics tdr interface <if> — pair status and fault distance (supported copper ports).
  • show interfaces transceiver detail — optical levels on fibre ports.
  • show logging | include LINK|DUPLEX — link flaps and duplex mismatches.
ReferenceWhat it is1 section · depth on demand

When it is used

Both ends use the same standard (T568B–T568B or T568A–T568A). It connects unlike devices: PC → switch, router → switch, AP → switch.

With Auto-MDIX (standard on Gigabit and newer ports) the port swaps transmit and receive pairs itself, so a straight-through cable also works between like devices. Gigabit Ethernet uses all four pairs anyway.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Straight-through cables

A straight-through cable connects each pin to the same pin at the other end. Cisco's Catalyst cable guide gives the classic rule: hubs and switches connect to routers and workstations with straight-through cables, and on IOS switches the cable doesn't change when a port is configured as Layer 3 instead of Layer 2.

When straight-through is used (Cisco table)

FromToCable
Switch or hubRouterStraight-through
Switch or hubWorkstation, server, printerStraight-through
Switch or hubSwitch or hubCrossover
RouterWorkstationCrossover

The rule follows from the port types: hosts and routers transmit on the pins switches receive on, so a straight cable connects them correctly.

Wiring

ItemDetail
StandardBoth ends T568B (or both T568A)
10/100 Mbit/sPins 1-2 and 3-6 carry data
1000 Mbit/s and fasterAll four pairs carry data in both directions
SW1# show interfaces GigabitEthernet1/0/5 | include media|duplex
  Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX
SW1# show controllers ethernet-controller GigabitEthernet1/0/5 phy | include MDIX

Auto-MDIX changes the practical picture

Catalyst 9300 interfaces have auto-MDIX enabled by default (Catalyst 9300 interface guide), so the port detects the cable type and adapts. In practice almost every modern link uses straight-through patch cords, including switch-to-switch links.

When the cable type still matters

SituationReason
Auto-MDIX disabledFor example when speed and duplex are hard-coded on some platforms
Very old equipmentNo auto-MDIX support
Console connectionsUse a rolled or USB console cable, not an Ethernet cable

Label patch cords and keep only one cable type in stock where possible.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

Straight-through cables connect pins 1–8 to 1–8 (both ends T568B or both T568A) and historically linked unlike devices (PC to switch).

Since virtually all modern ports support Auto-MDI/MDIX, the cable type rarely matters today; straight-through is the standard patch cord. If a link fails only with a specific cable, test it — damaged pairs show as CRC errors or a link that comes up at 100 Mb/s instead of 1 Gb/s.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Physical Networking → Copper Ethernet → Straight-through. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Confirmation

Confirm action

Continue?