ccna-notes

Switch Interfaces

Configuring interfaces

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

show ip interface brief

Running 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. πŸ”₯

show interfaces status

Configuring interface speed and duplex

Disabling unused interfaces

For security concerns we should disable the unused interfaces

Full/Half Duplex

Half Duplex

The 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

LAN Hubs

In the past, before network switches, HUBS were used. Hubs acted as a repeater, meaning that any frame it receives is FLOODED. πŸ”₯

  1. PC1 sends a frame for PC2 and PC3 sends a frame for PC1

  2. Both frames are sent through their network interfaces

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

Full Duplex

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

CSMA/CD

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 πŸ”₯

Speed/Duplex Autonegotiation

What if autonegotiation is disabled on the device connected to the switch ?

Interface Errors πŸ”₯πŸ”₯πŸ”₯