The following is the network topology weβll use for this section

show ip interface briefRunning show ip interface brief in privileged EXEC mode will do the trick just like with routers

We can already tell a difference between Cisco switches and routers; interfaces do not have the shutdown command applied by default. So if you connect them to another device they will usually be in the status=up and protocol=up state with no configuration required. π₯
status=down and protocol=down state by defaultshow interfaces status
name = descriptionVlan: they can be used to divide LANs into smaller LANs
Duplex: indicates whether the device is capable of sending and receiving data at the same time π₯π₯π₯
full duplex when capablehalf duplex when notduplex is auto by default in Cisco switches. Meaning it will negotiate with neighbor device and use full duplex if possiblea-full: automatically negotiated full duplex with connected deviceSpeed
auto by default. Meaning it will negotiate with neighbor device and use the fastest speed both devices are capable.a-100: automatically negotiated 100Mbps
interface f0/1 to select f0/1 interfacespeed 100 to configure speed to 100Mbpsduplex full to configure duplex to fulldescription <description> to change the name field (description)
For security concerns we should disable the unused interfaces

interface range f0/5 - 12 to select multiple interfaces at once (f0/5 to f0/12 in this one) π₯π₯π₯description <description> to change the name field (description)shutdown to disable interfacesThe device cannot send and receive data at the same time. If it is receiving a frame, it must want before sending a frame.
Half Duplex is pretty much unused in modern networks
In the past, before network switches, HUBS were used. Hubs acted as a repeater, meaning that any frame it receives is FLOODED. π₯
PC1 sends a frame for PC2 and PC3 sends a frame for PC1

Both frames are sent through their network interfaces

The Hub will try to FLOOD both at the same time resulting in a collision π₯


The device can send and receive data at the same time.

To deal with colisions in a half-duplex situation like the one above, ethernet devices use a mechanism called CSMA/CD.
It stands for Carrier Sense Multiple Access with Collision Detection π₯





Runts: frames that are smaller than the minimum frame size of 64 bytesGiants: frames that are larger than the maximum frame size of 1518 bytesCRC: frames that failed the CRC check (in the ethernet FCS trailer)Frame: frames that have an incorrect format (due to an error)Input errors: total of various counters, such as the above fourOutput errors: frames the switch tried to send, but failed due to an error