Pcornel
Networking · Physical Networking › Copper Ethernet

Straight-through

Cheat sheet · https://pcornel.dk/topic.php?topic=882

Back to the Topic

Answer

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

Remember

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.

First 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.

Commands

test cable-diagnostics tdr interface Gi1/0/1
show cable-diagnostics tdr

Verify in this order

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

Where it usually breaks

media/optics → administrative state → carrier/line protocol → negotiation → error/drop counters → neighbor discovery → upper-layer adjacency

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=882

Confirmation

Confirm action

Continue?