Routers and Switches: Definition, Working, Types and Differences

Routers and Switches

Routers and switches are networking devices used to connect computers, smartphones, printers, servers and other devices.

Their basic jobs are different:

  • A switch connects devices within the same local network.
  • A router connects different networks.

For example, an office switch connects computers inside the office, while a router connects that office network to the internet.

Router and Switch Explained With a Real-Life Example

Imagine a large company building.

  • The switch works like the internal receptionist. It delivers messages to the correct employee inside the building.
  • The router works like the postal service. It sends messages from one building or city to another.

In networking:

  • A switch mainly uses MAC addresses to forward local data.
  • A router mainly uses IP addresses to forward data between networks.

Basic Network Example

Suppose an office has:

  • Ten computers
  • Two printers
  • One server
  • One switch
  • One router

The computers, printers and server connect to the switch. The switch allows them to communicate inside the office LAN.

The switch connects to the router. The router allows the office LAN to communicate with the internet and other networks.

What Is a Switch?

A network switch is a device that connects multiple devices within a Local Area Network and forwards data towards the correct destination.

A switch commonly connects:

  • Desktop computers
  • Servers
  • Printers
  • Wireless access points
  • Security cameras
  • IP phones
  • Other switches

Most modern switches use Ethernet connections.

Simple Example of a Switch

Suppose four computers connect to one switch.

Computer A wants to send a file to Computer B.

The switch:

  1. Receives the data from Computer A.
  2. Identifies the destination device.
  3. Finds which port leads to Computer B.
  4. Forwards the data through that port.

It does not normally send the data to every device when it already knows the correct destination.

How Does a Switch Work?

A basic Ethernet switch works with:

  • Ethernet frames
  • MAC addresses
  • Physical switch ports
  • A MAC address table

When a frame enters a switch, the switch examines its source and destination MAC addresses.

It then decides where the frame should be sent.

What Is a MAC Address?

A MAC address is a hardware-related address used to identify a network interface during local network communication.

A MAC address is commonly written in a format similar to:

00:1A:2B:3C:4D:5E

Real-Life Example

Imagine an office building:

  • The building address represents the network address.
  • An employee’s identity card represents a MAC address.

The switch uses local identity information to deliver data to the correct device.

What Is an Ethernet Frame?

An Ethernet frame is a unit of data used for communication on an Ethernet network.

A frame contains information such as:

  • Source MAC address
  • Destination MAC address
  • Data
  • Error-checking information

Real-Life Example

An Ethernet frame is like an envelope used inside an office. It contains the sender’s name, receiver’s name and the actual message.

What Is a MAC Address Table?

A switch stores learned MAC addresses in a MAC address table.

The table connects each MAC address with a switch port.

MAC AddressSwitch Port
Computer APort 1
Computer BPort 2
PrinterPort 3
ServerPort 4

The switch builds this table automatically by examining the source MAC address of incoming frames.

How a Switch Learns MAC Addresses

Suppose Computer A is connected to Port 1.

  1. Computer A sends a frame.
  2. The switch receives it on Port 1.
  3. The switch reads Computer A’s source MAC address.
  4. It records that MAC address against Port 1.
  5. Future frames for Computer A can be sent directly to Port 1.

Real-Life Example

A receptionist remembers which room each employee uses. The next time a message arrives, the receptionist knows exactly where to send it.

Main Actions Performed by a Switch

Learning

The switch learns source MAC addresses and records their ports.

Forwarding

If the destination MAC address is known, the switch sends the frame through the correct port.

Filtering

The switch does not forward a frame through unnecessary ports when the destination is already known.

Flooding

If the destination MAC address is unknown, the switch sends the frame through other relevant ports in the same VLAN, except the port where it arrived.

When the destination replies, the switch learns its location.

Ageing

Old MAC address entries are removed after a period of inactivity.

This allows the table to update when a device moves to another port.

Real-Life Example of Switch Forwarding

Computer A wants to send a document to a printer.

When the Printer Is Known

The switch checks its table, finds the printer on Port 5 and forwards the data only through Port 5.

When the Printer Is Unknown

The switch sends the local frame through other suitable ports.

The printer replies, and the switch learns that the printer is connected through Port 5.

Future traffic can then be forwarded directly.

Main Parts of a Switch

Ethernet Ports

Ethernet ports connect devices using network cables.

Common port speeds include:

  • 100 Mbps
  • 1 Gbps
  • 2.5 Gbps
  • 5 Gbps
  • 10 Gbps

The actual speed depends on the switch, connected device, cable and network configuration.

Uplink Ports

Uplink ports connect the switch to:

  • Another switch
  • Router
  • Server
  • Network backbone

Some switches use normal Ethernet ports as uplinks, while others include faster dedicated interfaces.

SFP Ports

SFP and related ports accept removable network modules.

Depending on the equipment, they can support:

  • Fibre-optic connections
  • Copper connections
  • Different speeds and distances

Console Port

Managed switches may include a console port for initial configuration and troubleshooting.

Status Lights

LED lights can show:

  • Power status
  • Link status
  • Network activity
  • Connection speed
  • PoE status
  • Errors

Power Supply

A switch requires power to process and forward network traffic.

Some enterprise switches include backup power-supply options.

Types of Network Switches

Unmanaged Switch

An unmanaged switch works with little or no manual configuration.

It is:

  • Simple to use
  • Affordable
  • Suitable for small networks
  • Limited in management features

Real-Life Example

A small office connects five computers and one printer using an unmanaged switch.

Smart Switch

A smart switch provides some management features but is simpler than a fully managed switch.

It may support:

  • Basic VLANs
  • Port monitoring
  • Link aggregation
  • Quality of Service

Real-Life Example

A small business uses a smart switch to separate staff and guest network traffic.

Managed Switch

A managed switch provides advanced configuration, security and monitoring.

It can commonly support:

  • VLANs
  • Spanning Tree Protocol
  • Port security
  • Link aggregation
  • Traffic monitoring
  • Quality of Service
  • Remote management
  • Access-control settings

Real-Life Example

A university uses managed switches to control thousands of devices across different departments.

PoE Switch

PoE stands for Power over Ethernet.

A PoE switch can send electrical power and network data through the same Ethernet cable.

PoE is commonly used with:

  • Wireless access points
  • IP cameras
  • IP phones
  • Door-access systems

Real-Life Example

A ceiling-mounted Wi-Fi access point receives power and data through one Ethernet cable, so it does not need a nearby power socket.

A PoE switch has a maximum power budget. The total power required by connected devices must remain within that limit.

Layer 2 Switch

A Layer 2 switch mainly forwards Ethernet frames using MAC addresses.

It normally connects devices within the same LAN or VLAN.

Layer 3 Switch

A Layer 3 switch combines high-speed switching with some routing functions.

It can route traffic between:

  • Different VLANs
  • Different IP networks
  • Different departments

Real-Life Example

A company uses one Layer 3 switch to connect and route between staff, server and security-camera VLANs.

Fixed-Configuration Switch

A fixed-configuration switch has a set number of built-in ports.

It is commonly used in homes, schools and offices.

Modular Switch

A modular switch accepts replaceable modules, allowing an organisation to add ports, interfaces and features.

It is commonly used in large enterprise and data-centre networks.

Stackable Switch

Stackable switches can be connected and managed as one logical system, depending on the supported technology.

This can simplify management and expansion.

Important Switch Features

VLAN

VLAN stands for Virtual Local Area Network.

A VLAN divides one physical switch network into separate logical networks.

Real-Life Example

A school can create separate VLANs for:

  • Teachers
  • Students
  • Security cameras
  • Guest Wi-Fi

Devices in different VLANs normally require a router or Layer 3 switch to communicate.

Access Port

An access port normally carries traffic for one VLAN and connects to an end device.

Real-life example: A desktop computer connects to an access port assigned to the staff VLAN.

Trunk Port

A trunk port carries traffic for multiple VLANs between compatible networking devices.

Real-life example: One cable between two switches carries staff, student and camera VLAN traffic.

Spanning Tree Protocol

Spanning Tree Protocol helps prevent switching loops when redundant network paths exist.

Without loop protection, Ethernet frames can circulate repeatedly and create a broadcast storm.

Real-Life Example

If two bridges create a circular road with no traffic control, vehicles may keep moving around the circle. Spanning Tree blocks selected paths while keeping them available for recovery.

Link Aggregation

Link aggregation combines multiple physical links into one logical connection.

It can provide:

  • More total capacity across multiple traffic flows
  • Redundancy
  • Protection from a single link failure

Real-Life Example

Two switches use multiple cables so traffic can continue if one supported link fails.

Quality of Service

Quality of Service, or QoS, prioritises selected network traffic.

Real-Life Example

A company gives voice-call traffic higher priority than a large background download to reduce call delay.

Port Security

Port security controls which devices can connect through a switch port.

Real-Life Example

A company allows only an authorised office computer to use a particular network port.

Port Mirroring

Port mirroring copies selected network traffic to a monitoring port.

Real-Life Example

A network administrator sends copied traffic to a security or troubleshooting system for analysis.

Switch Management

Managed switches can be configured through methods such as:

  • Web interface
  • Command-line interface
  • Console connection
  • Network-management software

Switch Forwarding Methods

Store-and-Forward

The switch receives the complete frame and checks it for errors before forwarding it.

This can prevent damaged frames from being sent further.

Cut-Through

The switch begins forwarding after reading enough information to identify the destination.

This can reduce delay but may forward a damaged frame before its error information has been checked.

Available methods depend on the switch.

Switch vs Hub

A hub and switch can both connect local devices, but they work differently.

HubSwitch
Sends incoming data to every portSends known traffic towards the correct port
Does not learn MAC addressesBuilds a MAC address table
Shares network capacityProvides more efficient port-based communication
Creates unnecessary trafficReduces unnecessary traffic
Rarely used todayWidely used in modern LANs

Real-Life Example

A hub is like shouting a message to everyone in a room. A switch is like speaking directly to the intended person.

Collision and Broadcast Domains

Collision Domain

A collision domain is a network area where transmitted data could interfere or collide.

On a modern switch, each port is a separate collision domain. Full-duplex Ethernet allows devices to send and receive simultaneously, avoiding the collisions associated with old shared hubs.

Broadcast Domain

A broadcast domain is the group of devices that receives a local broadcast.

All switch ports in the same VLAN normally belong to the same broadcast domain.

Routers and Layer 3 boundaries separate broadcast domains.

Real-Life Example

A local announcement reaches everyone in one classroom but does not automatically reach students in another classroom.

Advantages of a Switch

  • Connects multiple local devices
  • Forwards data efficiently
  • Reduces unnecessary traffic
  • Supports high-speed communication
  • Provides separate port capacity
  • Managed models support VLANs and security
  • PoE models provide data and power
  • Can expand a LAN
  • Supports monitoring and redundancy

Limitations of a Switch

  • A basic Layer 2 switch does not route between IP networks
  • Unmanaged switches provide limited control
  • Incorrect VLAN settings can interrupt communication
  • Switching loops can cause serious problems
  • Managed switches require technical knowledge
  • Failure of a central switch can affect many devices
  • Advanced and high-speed switches can be expensive

What Is a Router?

A router is a networking device that connects different networks and forwards IP packets towards their destinations.

Routers can connect:

  • A home LAN to the internet
  • Two office networks
  • Different branch locations
  • Separate VLANs
  • Service-provider networks
  • Large internet networks

Simple Example of a Router

Your laptop has a private IP address inside your home LAN.

When you open a website:

  1. The laptop sends the request to the home router.
  2. The router identifies that the website is outside the local network.
  3. It sends the packet towards the Internet Service Provider.
  4. Other routers forward it towards the website server.
  5. The response returns through the router.
  6. The router delivers it to your laptop.

How Does a Router Work?

A router mainly examines the destination IP address of a packet.

It then:

  1. Receives the packet through an interface.
  2. Reads its destination IP address.
  3. Checks the routing table.
  4. Selects the best available route.
  5. Forwards the packet through the correct interface.
  6. Repeats the process for additional packets.

Each router moves the packet one step closer to its destination.

What Is an IP Packet?

An IP packet is a unit of data carried using the Internet Protocol.

It contains information such as:

  • Source IP address
  • Destination IP address
  • Protocol information
  • Packet data
  • Control fields

Real-Life Example

An IP packet is like a parcel containing the sender’s and receiver’s street addresses.

What Is an IP Address?

An IP address identifies a device or interface for communication using the Internet Protocol.

Two main versions are:

  • IPv4
  • IPv6

Real-Life Example

An IP address is like a postal address used to deliver data towards the correct network destination.

MAC Address vs IP Address

MAC AddressIP Address
Mainly used for local network deliveryUsed for communication across IP networks
Used by Layer 2 switchesUsed by routers and Layer 3 devices
Related to a network interfaceAssigned according to network configuration
Similar to a device identity labelSimilar to a location address

An IP packet is carried inside a suitable local data-link frame on each part of its journey. The frame information can change as the packet moves between networks, while the packet continues towards its IP destination.

What Is a Routing Table?

A routing table contains information about available network destinations.

A routing-table entry can contain:

  • Destination network
  • Next router or next hop
  • Outgoing interface
  • Route priority or metric

The router compares the destination IP address with its routing table and selects the most appropriate route.

Real-Life Example

A routing table is like a navigation application containing routes to different destinations.

What Is a Default Route?

A default route is used when the router does not have a more specific route for the destination.

A home router commonly sends unknown internet destinations towards the ISP.

Real-Life Example

If a delivery driver does not have a special route, they follow the main road towards the regional sorting centre.

What Is a Default Gateway?

A default gateway is the router or Layer 3 device used by a host to reach destinations outside its local network.

Real-Life Example

The gateway is like the main exit from a residential area. Traffic going elsewhere must pass through that exit.

Static and Dynamic Routing

Static Routing

In static routing, an administrator manually creates routes.

It is suitable for simple and predictable networks.

Real-Life Example

A company manually tells a router that all traffic for one branch must use a specific connection.

Dynamic Routing

In dynamic routing, routers exchange network information using routing protocols.

They can update routes when the network changes.

Common routing protocols include:

  • OSPF
  • BGP
  • RIP

Real-Life Example

Dynamic routing works like a navigation application that changes the route when a road becomes unavailable.

OSPF is commonly used inside organisations, while BGP plays an important role in exchanging route information between large networks on the internet.

What Is TTL?

TTL stands for Time to Live.

Each router normally reduces a packet’s TTL value. If the value reaches zero, the packet is discarded.

This prevents packets from travelling endlessly because of a routing loop.

Real-Life Example

TTL is like giving a parcel a maximum number of transfer attempts before stopping delivery.

Main Parts of a Router

WAN Port

The WAN port connects the router towards an external network or internet service.

LAN Ports

LAN ports connect local wired devices or switches.

Wireless Antennas

Wireless routers use internal or external antennas to provide Wi-Fi.

Processor and Memory

The processor and memory handle:

  • Routing
  • Security rules
  • NAT
  • VPN functions
  • Network management

Console Port

Enterprise routers may include a console port for configuration and troubleshooting.

SFP Ports

Some routers support removable modules for fibre or copper connections.

Status Lights

Router lights may show:

  • Power
  • Internet or WAN status
  • Wi-Fi status
  • LAN activity
  • Connection errors

Reset Button

The reset button can restore factory settings.

Factory resetting normally removes customised settings and should be used only when necessary.

Types of Routers

Wired Router

A wired router connects devices and networks using physical cables.

Real-life example: A business router connects an office switch to a leased network service.

Wireless Router

A wireless router provides routing and Wi-Fi connectivity.

A typical home wireless router may combine:

  • Router
  • Ethernet switch
  • Wireless access point
  • DHCP server
  • Firewall
  • NAT functions

Some provider devices also include modem or fibre-connection functions.

Edge Router

An edge router sits at the boundary between one network and another.

Real-life example: A company’s edge router connects its internal network to an ISP.

Core Router

A core router moves large amounts of traffic inside a major network or service-provider infrastructure.

Real-life example: A telecom provider uses high-capacity routers within its main network.

Branch Router

A branch router connects a remote office to head office, cloud systems or the internet.

Cellular Router

A cellular router uses mobile technology such as 4G or 5G for network connectivity.

Real-life example: A temporary construction office uses a 5G router where fixed broadband is unavailable.

Virtual Router

A virtual router performs routing functions through software instead of a dedicated physical router.

It is commonly used in:

  • Cloud systems
  • Virtual networks
  • Data centres
  • Software-defined networks

Travel Router

A travel router is a small portable router used to share or manage a hotel, mobile or other temporary internet connection.

Mesh Wi-Fi Router System

A mesh Wi-Fi system uses multiple connected units to provide wireless coverage across a larger area.

One unit normally performs the main routing function, while other units help extend coverage.

Important Router Functions

Routing

Routing selects paths between different IP networks.

Real-life example: A router decides how data should travel from your home network to a website server.

NAT

NAT stands for Network Address Translation.

NAT allows devices using private IP addresses to communicate through a public IP address.

Real-Life Example

Family members have separate rooms but share one public house address. The router keeps track of which returning data belongs to each device.

DHCP

DHCP stands for Dynamic Host Configuration Protocol.

A router can act as a DHCP server and automatically provide:

  • IP address
  • Subnet mask
  • Default gateway
  • DNS server information

Real-Life Example

When your phone joins home Wi-Fi, the router automatically gives it the settings required to communicate.

Firewall

Many routers contain firewall functions that allow or block traffic according to rules.

Real-Life Example

A router firewall works like a security guard checking network traffic before allowing it to enter.

Access Control List

An Access Control List, or ACL, contains rules that permit or deny selected network traffic.

Real-life example: A company blocks guest devices from accessing its internal server network.

Port Forwarding

Port forwarding directs selected incoming traffic from a router’s public side to a specific internal device or service.

Real-Life Example

A company may forward authorised external requests to an internal web server.

Incorrect port forwarding can expose services to attacks, so it should be configured carefully.

VPN Support

A router may create or pass VPN connections.

A VPN can provide protected communication between:

  • Remote user and company
  • Two offices
  • Home and another private network

Quality of Service

QoS can prioritise important traffic.

Real-life example: A router gives video-call traffic priority over a large software download.

DNS Forwarding

A home router may receive DNS requests from local devices and forward them to a configured DNS resolver.

Guest Wi-Fi

Guest Wi-Fi creates a separate wireless network for visitors.

Real-life example: Visitors can access the internet without being allowed to reach private home or office devices.

Parental Controls

Supported routers may limit:

  • Internet times
  • Devices
  • Website categories
  • Specific services

These controls vary between router models and should not replace user education and supervision.

Router vs Modem

RouterModem or Connection Terminal
Connects different networksConnects to a particular provider service
Routes IP packetsConverts or terminates the provider’s connection technology
Connects local devicesProvides the external service connection
May provide NAT and DHCPMay not manage the local network

A provider may supply one box that combines both functions.

Real-Life Example

The modem or ONT is the entrance to the provider’s network. The router directs traffic between that entrance and your local devices.

Router vs Wireless Access Point

RouterWireless Access Point
Connects different networksConnects wireless devices to a LAN
Uses IP routingProvides Wi-Fi access
Can act as a default gatewayNormally depends on a router for external networks
May include a built-in access pointDoes not have to perform routing

A home wireless router often contains both functions.

Router vs Gateway

A gateway is a device or software system that connects networks and may translate between different systems.

A router commonly acts as the default gateway for local devices.

The words are related, but not every gateway performs only normal IP routing.

Advantages of a Router

  • Connects different networks
  • Provides access to external networks
  • Selects routes for IP packets
  • Separates broadcast domains
  • Can provide NAT and DHCP
  • Can include firewall protection
  • Supports VPN connections
  • Can prioritise traffic
  • Wireless models provide Wi-Fi
  • Supports communication between LANs and WANs

Limitations of a Router

  • More complex than a basic switch
  • Incorrect settings can break connectivity
  • Limited hardware can reduce high-speed performance
  • Failure can disconnect an entire network
  • Advanced routers can be expensive
  • Firmware requires security updates
  • Wireless coverage can be affected by walls and interference
  • Security features must be configured correctly

Router vs Switch

FeatureSwitchRouter
Main PurposeConnects devices within a LANConnects different networks
Main AddressMAC addressIP address
Main Data UnitEthernet frameIP packet
Common OSI LayerLayer 2Layer 3
Main TableMAC address tableRouting table
Internet ConnectionDoes not provide routing by itselfCan connect a LAN towards the internet
BroadcastsForwards broadcasts within the relevant VLANNormally separates Layer 2 broadcast domains
Common LocationInside a LANBetween LANs, WANs or VLANs
ExampleConnects office computersConnects the office LAN to the internet

A Layer 3 switch can also perform routing, so the distinction is based on the device’s functions rather than only its physical appearance.

Router and Switch Real-Life Comparison

Imagine a school.

Switch

The switch connects:

  • Classroom computers
  • Printers
  • Servers
  • Access points

It manages communication inside the school LAN.

Router

The router connects:

  • School LAN
  • Internet provider
  • Remote education systems
  • Other school locations

The switch handles local delivery, while the router handles communication between networks.

Complete Data Journey Through a Switch and Router

Suppose an office computer opens a website.

Step 1: The Computer Creates a Request

The browser creates a request for the website server.

Step 2: The Computer Checks the Destination

The computer identifies that the destination is outside its local network.

It sends the packet towards its default gateway.

Step 3: The Switch Receives the Local Frame

The switch reads the destination MAC address and forwards the frame towards the router’s LAN interface.

Step 4: The Router Reads the IP Packet

The router removes the local frame information and examines the packet’s destination IP address.

Step 5: The Router Checks Its Routing Table

The router selects a route, commonly the default route towards the ISP.

Step 6: NAT May Be Applied

A home or small-business router may translate the private source address to a public address.

Step 7: The Packet Enters the WAN

The router forwards the packet towards the ISP.

Step 8: Other Routers Forward It

Multiple routers move the packet towards the website’s network.

Step 9: The Server Responds

The website server sends data back.

Step 10: The Router Delivers the Response

The home router identifies which internal device requested the data and forwards it into the LAN.

Step 11: The Switch Completes Local Delivery

The switch sends the local frame towards the correct computer.

Step 12: The Browser Displays the Page

The computer processes the response and displays the website.

OSI Layers Used by Routers and Switches

Layer 2: Data Link Layer

A standard switch mainly operates at Layer 2.

It uses:

  • Ethernet frames
  • MAC addresses
  • VLANs

Layer 3: Network Layer

A router operates at Layer 3.

It uses:

  • IP packets
  • IP addresses
  • Routing tables

Layer 3 Switch

A Layer 3 switch can perform both switching and routing, especially between VLANs inside a LAN.

Router and Switch Security

Change Default Passwords

Default administrator passwords should be changed immediately.

Use a strong and unique password.

Update Firmware

Firmware updates can fix:

  • Security vulnerabilities
  • Software errors
  • Performance problems

Use updates provided by the equipment manufacturer.

Use Secure Management

Use protected management methods such as HTTPS or SSH when supported.

Avoid exposing the management interface directly to the internet unless it is specifically required and secured.

Disable Unused Services

Turn off unnecessary services and management features.

Every active service can increase the attack surface.

Protect Physical Access

Unauthorised users should not be able to connect cables, press reset buttons or access console ports.

Use VLANs

VLANs can separate:

  • Staff devices
  • Guest devices
  • Servers
  • Security cameras
  • Management systems

Configure Firewalls and ACLs

Allow only the communication required by users and services.

Secure Wi-Fi

For wireless routers:

  • Use WPA2 or WPA3 when supported
  • Use a strong Wi-Fi password
  • Change default network settings
  • Create a separate guest network
  • Disable outdated security methods
  • Review connected devices regularly

Back Up Configurations

Managed device settings should be backed up securely.

A backup can help restore service after hardware failure or configuration errors.

Basic Router and Switch Setup

Setting Up a Switch

  1. Choose a safe and ventilated location.
  2. Connect power.
  3. Connect devices using suitable cables.
  4. Connect an uplink to the router or main network.
  5. Check link lights.
  6. Configure management settings if it is a managed switch.
  7. Create VLANs and security rules when required.
  8. Save and back up the configuration.
  9. Test local communication.

Setting Up a Router

  1. Connect the provider equipment to the WAN port.
  2. Connect a computer to a LAN port or authorised setup network.
  3. Open the router’s management interface.
  4. Change the administrator password.
  5. Configure the internet connection.
  6. Configure LAN and DHCP settings.
  7. Configure Wi-Fi name and security.
  8. Update the firmware.
  9. Review firewall and remote-management settings.
  10. Test local and internet connectivity.

The exact process depends on the router and service provider.

Common Router and Switch Problems

No Link Light

Possible causes include:

  • Damaged cable
  • Incorrect port
  • Powered-off device
  • Disabled port
  • Faulty network interface

Check the cable, port and device power.

Connected but No Internet

Possible causes include:

  • ISP outage
  • WAN cable problem
  • Incorrect router settings
  • DNS problem
  • Expired provider session
  • Firewall misconfiguration

First check whether local network communication is working.

Device Does Not Receive an IP Address

Possible causes include:

  • DHCP server unavailable
  • Incorrect VLAN
  • Faulty cable or Wi-Fi connection
  • Address pool exhausted
  • Manual address misconfiguration

Devices Cannot Communicate Locally

Possible causes include:

  • Different VLANs
  • Firewall rules
  • Incorrect IP settings
  • Disabled switch port
  • Faulty cable
  • Device-sharing settings

Slow Connection

Possible causes include:

  • Network congestion
  • Slow port speed
  • Damaged or unsuitable cable
  • High router load
  • Wi-Fi interference
  • High latency
  • Incorrect duplex settings on older or manually configured equipment

Switching Loop

A switching loop can create excessive broadcast traffic and make the network unusable.

Managed switches use technologies such as Spanning Tree Protocol to prevent loops.

Duplicate IP Address

A duplicate IP address occurs when two devices use the same address.

This can cause unstable or failed communication.

Use DHCP correctly or assign unique manual addresses.

Basic Troubleshooting Steps

  1. Identify whether one device or the entire network is affected.
  2. Check power, cables and status lights.
  3. Confirm that the device has a valid IP address.
  4. Check the subnet mask and default gateway.
  5. Test communication with the local gateway.
  6. Test another cable or switch port.
  7. Check VLAN and firewall settings.
  8. Check the ISP or WAN status.
  9. Review device logs when available.
  10. Restart only the affected equipment when appropriate.
  11. Use factory reset only as a final step after understanding that it removes saved settings.

How to Choose a Switch

Consider:

  • Number of required ports
  • Port speed
  • Managed or unmanaged operation
  • VLAN support
  • PoE requirement
  • Total PoE power budget
  • Uplink speed
  • SFP or fibre support
  • Security features
  • Expandability
  • Management method
  • Warranty and update support

Real-Life Example

An office with twelve computers, four access points and six PoE cameras needs enough ports and enough PoE power for every powered device.

How to Choose a Router

Consider:

  • Internet connection speed
  • Number of users and devices
  • Wired port speeds
  • Wi-Fi coverage
  • Supported wireless technology
  • Firewall features
  • VPN requirement
  • VLAN support
  • Parental or guest controls
  • ISP compatibility
  • Firmware update support
  • Expected network traffic
  • Future expansion

A router’s advertised Wi-Fi speed is not the same as guaranteed internet speed. Actual performance depends on the internet plan, device, distance, interference and network conditions.

Frequently Asked Questions

What is a switch in simple words?

A switch connects devices within the same local network and forwards local data towards the correct device.

What is a router in simple words?

A router connects different networks and forwards IP packets towards their destinations.

What is the main difference between a router and a switch?

A switch mainly connects devices inside a LAN, while a router connects different networks.

Does a switch provide internet access?

A basic switch does not route traffic to the internet by itself. It normally connects to a router that provides access to external networks.

Can a router work without a switch?

Yes. A home router often contains built-in LAN switch ports. A separate switch is needed when more wired ports or advanced switching features are required.

Can a switch work without a router?

Yes. Devices on the same local network can communicate through a switch without a router. A router is needed to reach other IP networks.

Does a router contain a switch?

Many home routers contain a small built-in Ethernet switch with multiple LAN ports.

Is a wireless router also an access point?

Most home wireless routers combine routing, switching and wireless access-point functions.

Which address does a switch use?

A standard Layer 2 switch mainly uses MAC addresses.

Which address does a router use?

A router mainly uses IP addresses.

What is a Layer 3 switch?

A Layer 3 switch performs normal switching and can also route traffic between IP networks or VLANs.

What is PoE?

Power over Ethernet sends electrical power and network data through the same Ethernet cable.

What is a VLAN?

A VLAN creates separate logical networks on supported switching equipment.

What is NAT?

NAT translates network addresses, commonly allowing multiple private devices to share a public IP address.

What is DHCP?

DHCP automatically provides network settings such as an IP address, subnet mask, gateway and DNS server.

What is the default gateway?

The default gateway is the router or Layer 3 device a host uses to reach destinations outside its local network.

Is a modem the same as a router?

No. A modem or connection terminal links to a provider service, while a router connects and directs traffic between networks. Both functions may exist in one physical device.

Conclusion

Routers and switches perform different but connected jobs.

A switch:

  • Connects devices within a LAN
  • Uses MAC addresses
  • Forwards Ethernet frames
  • Builds a MAC address table
  • Can provide VLAN, PoE and security features

A router:

  • Connects different networks
  • Uses IP addresses
  • Forwards IP packets
  • Uses a routing table
  • Can provide NAT, DHCP, firewall and VPN features

In simple words:

  • A switch delivers data inside a local network.
  • A router delivers data between different networks.

Most modern networks use both devices together. The switch connects local devices, while the router connects their LAN to other networks and the internet.

Continue Learning