BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Learning paths › CCNA › 1. Network Fundamentals

Switch Interfaces

Understand full vs half duplex, collision domains, CSMA/CD, speed/duplex autonegotiation, duplex mismatches, and interface error counters.

About 13 minutes

Why it matters

When two ends of a link disagree about speed or duplex, the link can crawl while still showing as up. Reading interface counters finds that quickly.

Duplex, Speed & Collision Domains

Half-duplex devices can only transmit or receive at one time; Full-duplex devices transmit and receive simultaneously.

A collision domain is a network segment where data packets can collide along a shared wire (hubs create large collision domains).

Switches isolate collision domains — each switchport is its own private full-duplex collision domain.

A duplex mismatch occurs when one side is configured for full duplex and the other for half duplex, causing collisions and frame drops.

Full-Duplex vs. Half-Duplex Operation

• Full Duplex: Device can send and receive simultaneously. Requires a switch. Eliminates collision domains entirely. • Half Duplex: Device can only send OR receive at one time. Hubs operate exclusively in half duplex.

CSMA/CD Process (Half-Duplex Only): 1. Listen before talking: The device checks if the wire is idle. 2. If busy, it waits a random backoff time. 3. If a collision occurs during transmission, a jam signal is sent to notify all hosts, and both devices wait a random backoff timer before retrying.

Speed and Duplex Autonegotiation Rules

Connected devices advertise their capabilities using Fast Link Pulses (FLPs): • Both devices choose the highest mutually supported speed (1000M > 100M > 10M) and full duplex.

If the other end has autonegotiation disabled: 1. The switch senses the speed by listening to incoming electrical pulses. 2. Duplex rule of thumb: If 10 or 100 Mbps, assume half-duplex. If 1000 Mbps, assume full-duplex.

Interface Error Counter Definitions

Counter: Runts · Definition: Frames that are smaller than the minimum Ethernet frame size (64 bytes).

Counter: Giants · Definition: Frames that are larger than the maximum Ethernet frame size (1518 bytes).

Counter: CRC Errors · Definition: Frames that failed the Cyclic Redundancy Check in the Ethernet trailer (damaged in transit).

Counter: Frame Errors · Definition: Frames that have an incorrect format or non-integer number of octets.

Counter: Output Drops · Definition: Frames discarded because the switch transmit buffer queue was completely full.

The words you need

Full Duplex — A communication mode where a device can transmit and receive data simultaneously without collisions.

Half Duplex — A communication mode where a device can only transmit OR receive at any given moment, not both simultaneously.

Collision Domain — The section of a network where packets can collide with each other along a shared physical medium.

CSMA/CD — Carrier Sense Multiple Access with Collision Detection. Media access control method used on half-duplex Ethernet to listen before transmitting and back off if a collision occurs.

Late Collision — A collision that occurs after the first 64 bytes (512 bits) of a frame have been transmitted, usually caused by a duplex mismatch or excessive cable length.

Autonegotiation — A protocol by which two connected devices exchange capabilities to automatically select the highest shared speed and duplex mode.

Command reference

show interfaces status (Privileged EXEC) — Display a compact table of all switchports: status, VLAN, duplex (a-full / full), speed (a-100 / 100), and port type.

interface range <start-end> (Global Config) — Select multiple interfaces simultaneously to configure at once (e.g. interface range f0/1 - 24).

speed {10 | 100 | 1000 | auto} (Interface Config) — Manually force the port transmission speed or set to auto.

duplex {half | full | auto} (Interface Config) — Manually force half or full duplex or set to auto.

shutdown (Interface Config) — Disable an unused port to improve security (shows 'disabled' in show int status).

Run it on the switch

Ports g0/10 to g0/12 face three old printers that cannot negotiate. Pin them to 100 Mb/s full duplex, then take them out of service until the printers are swapped, and read the result.

enable
show interfaces status
configure terminal
interface range g0/10 - 12
speed 100
duplex full
shutdown
end
show interfaces status

The three ports now read disabled with a fixed a-full and a-100 replaced by full and 100. Hard-coding one end only is how a duplex mismatch starts, so the far end must be set the same way.

Takeaways

Next: IPv4 Header

More free lessons in 1. Network Fundamentals