#3 Layer 2 Switches

Layer 2 Switches – The Foundation of Modern Networks

https://www.lightoptics.co.uk/cdn/shop/articles/Gigabit_Ethernet_Switch_1024x1024.jpg?v=1651479383
https://online.visual-paradigm.com/repository/images/061db788-c53c-42d6-ade4-da52ea017608.png

The problems created by bus topology and hubs made it clear that networks needed a smarter, scalable, collision-free solution.
This need gave rise to the Ethernet Switch, also known as a Layer 2 Switch.

Today, switches are the physical backbone of every enterprise network, regardless of size or industry. Without switches, modern networking simply does not exist.

What Is an Ethernet Switch?

A switch is a device designed to interconnect computers, servers, access points, firewalls, and other network equipment efficiently.

It includes:

  • Ethernet (RJ-45) ports for UTP cables
  • A Console Port for direct configuration
  • SFP/SFP+ ports for fiber modules
  • A metal chassis optimized for rack installation
  • Professional models with redundant power supplies
  • Modular and fixed (non-modular) versions
  • Managed and unmanaged models

Let’s break down each component.

Ethernet Ports – Where Devices Physically Connect

https://www.trendnet.com/email2/2018/0508/closeUp.png
https://media.maplesystems.com/wp-content/uploads/2025/11/ms1-L05G01F-with-fiber-closeup.webp

These ports are used to connect:

  • computers
  • printers
  • access points
  • firewalls
  • servers
  • IP cameras
  • and other switches

They use standard Ethernet cables like Cat5e, Cat6, Cat6A, and Cat7.

Console Port – Accessing the Brain of the Switch

https://i.ytimg.com/vi/Z2-QHMQPqAU/maxresdefault.jpg
https://www.cisco.com/c/dam/en/us/td/i/300001-400000/350001-360000/354001-355000/354883.jpg
https://m.media-amazon.com/images/I/712FZSsOWLL._AC_UF1000%2C1000_QL80_.jpg

The console port is used for direct management and initial configuration.

Through it, administrators configure:

  • VLANs
  • Spanning Tree
  • MAC address tables
  • QoS
  • Layer 2 features
  • management and logging

It requires a console cable (RJ-45, Mini-USB, or USB-C depending on the model) and a terminal program such as PuTTY or SecureCRT.

SFP and SFP+ Ports – Connecting Fiber to the Switch

https://m.media-amazon.com/images/I/61j9g0ihxpL.jpg
https://www.fibermall.com/blog/wp-content/uploads/2023/08/hot-pluggable.png

SFP ports allow the switch to use fiber optics through removable transceiver modules.

Important:

  • SFP modules do not come with the switch — they must be purchased separately.
  • They must be compatible with the switch vendor.
  • Some switches are fiber-only, but these are more expensive.

Fiber is typically used for:

  • high-speed links (1G, 10G, 25G, 40G+),
  • long distances,
  • building backbone connections,
  • uplinks between switches.

Redundant Power Supplies

https://ftp.wti.com/userimages/pts-app-diagram-101201.png
https://www.cisco.com/c/dam/assets/support/product-images/series/switches-redundant-power-systems.jpg

Professional enterprise switches often include:

  • two power supplies,
  • operating simultaneously,
  • allowing the switch to stay online if one PSU fails.

This redundancy is critical for high-availability environments such as data centers and corporate networks.

Rack-Mount Design and “Rack Ears”

https://m.media-amazon.com/images/I/51RWVN%2BBLCL.jpg
https://m.media-amazon.com/images/I/61CtW5aiC6L.jpg

Switches come with metal brackets called rack ears.

These allow the device to be:

  • mounted in a standard 19-inch rack,
  • organized alongside patch panels, firewalls, routers, UPS units, and servers,
  • easily serviced and repositioned.

The rectangular chassis design exists specifically to fit racks and structured cabling environments.

How a Switch Forwards Frames

https://www.ciscopress.com/content/images/chap7_9780136633662/elementLinks/07fig19_alt.jpg
https://www.computernetworkingnotes.com/wp-content/uploads/ccna-study-guide/images/csg177-01-cam-table.png

Unlike hubs, switches do not repeat electrical signals to all ports.
Instead, they build and maintain a MAC address table.

This allows the switch to:

  • learn which MAC address is on which port,
  • forward frames only to the destination port,
  • eliminate collisions entirely,
  • retire CSMA/CD from modern networks.

Each port becomes its own collision domain, making communication direct, fast, and efficient.

Modular vs. Fixed (Non-Modular) Switches

https://i.dell.com/das/dih.ashx/500x500/das/xa_____/global-site-design%20WEB/db94eb0c-45a0-68ca-562a-95b769d3e831/1/OriginalPng?id=Dell%2FProduct_Images%2FDell_Enterprise_Products%2FNetworking_Products%2FDell%2FC_series%2Fc9000_series%2Fc9010%2Fglobal_spi%2Fnetworking-switches-c9010-c1048p-left-relativesize-500-ng.psd
https://www.dlinkmea.com/images/product/9801-DGS-8006_A1_Image_L%28Front%29.jpg

Fixed (non-modular) switches:

  • have a fixed number of ports,
  • come with predefined hardware,
  • do not support additional modules.

These are the most common switches.

Modular (chassis) switches:

  • support additional port modules,
  • have multiple supervisors,
  • allow high-speed uplink modules,
  • offer advanced redundancy.

These are common in large corporate networks and data centers.

Managed vs. Unmanaged Switches

Unmanaged switches:

  • no console access,
  • no configuration options,
  • often provide only “automatic profiles,”
  • extremely limited and not suitable for enterprise environments.

Managed switches:

  • support VLANs,
  • Spanning Tree (STP),
  • link aggregation,
  • QoS,
  • port security,
  • monitoring and logs,
  • engineering and segmentation features.

Every network professional must focus on managed switches.
Unmanaged switches simply cannot meet corporate requirements.

Switches Are the Structure of Every Network

Regardless of industry or company size:

Switches form the physical backbone of the network.

They interconnect:

  • users
  • servers
  • access points
  • firewalls
  • IP phones
  • cameras
  • routers
  • and other switches

Without them, no LAN can function.

Why Hubs Must Never Be Connected to Switches

Hubs are completely obsolete, but they still cause issues when plugged into modern networks.

Connecting hubs to switches:

  • reintroduces collisions,
  • recreates huge collision domains,
  • causes slowdowns,
  • may create loops,
  • disrupts STP,
  • generates unnecessary broadcast storms.

Real case (2024)

I personally experienced a network outage caused by employees who found old hubs in storage and connected them “temporarily” while waiting for new network drops.

Results:

  • network loops,
  • broadcast storms,
  • switches freezing,
  • multiple departments offline.

Hubs must be permanently retired.

Comentários

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *