CyberSchool Module 1 · Networking
Home › Module 1 › What Is a Network?
Lesson 1

What Is a Network?

Before you can protect computers, you have to understand how they talk to each other. This lesson explains — in the simplest possible way — what a network is, and introduces the handful of ideas that everything else in security is built on.

Introduction

A network is simply two or more computers connected so they can share information. That's it. When your phone loads a website, sends a WhatsApp message, or streams a video, it is using a network. The internet is just an enormous network made of millions of smaller networks joined together.

Analogy 1 — A group of friends passing notes Imagine a classroom where students pass folded notes to each other. Each student is a computer. The note is the data. The rule that you must write the receiver's name on the outside of the note is a protocol (an agreed set of rules). The classroom itself — the space the notes travel through — is the network.

The building blocks (in plain words)

Every network is made of a few basic parts. Let's meet them one at a time, and give every new term a clear definition the first time it appears.

1. Hosts (the things that talk)

A host is any device on a network: a laptop, phone, server, printer, or even a smart fridge. If it can send or receive data, it's a host.

2. The IP address (a device's postal address)

An IP address (Internet Protocol address) is a number that uniquely identifies a host on a network, so data knows where to go. A common form looks like 192.168.1.10.

Analogy 2 — A house address Your home has a postal address so letters reach you and not your neighbour. An IP address does the same job for a computer. Without it, data would have no idea which machine to visit — like a postman holding a letter with no address on it.

3. The MAC address (a device's fingerprint)

A MAC address (Media Access Control address) is a permanent hardware ID burned into every network card at the factory, like a4:5e:60:c1:2d:9f. IP addresses can change; the MAC address is fixed to the physical device.

Analogy 3 — Your name vs. your address Think of the MAC address as your name (it stays the same your whole life) and the IP address as your current address (it changes when you move house). Both are useful, for different jobs.

4. Switches and routers (the traffic controllers)

A switch connects devices inside one local network and forwards data only to the correct device. A router connects different networks together — for example, joining your home network to the internet.

Analogy — The post office A switch is like the mail sorter inside one building, making sure each letter reaches the right office. A router is the city post office that decides how to send a letter to a completely different town. Data hops from router to router across the world until it reaches its destination.

Types of networks you should know

NameFull formWhat it means (simply)Everyday example
LANLocal Area NetworkDevices in one small area, like a home or officeYour home Wi-Fi
WANWide Area NetworkNetworks spread across large distances, joined togetherThe internet
WLANWireless LANA LAN that connects over radio waves instead of cablesCafé or campus Wi-Fi
VPNVirtual Private NetworkA secure, private tunnel over a public networkConnecting safely to work from home

Real-world example: what happens when you open a website

Say you type lusakagoldsmithsuniversity.ac.zm into your browser. Roughly this happens:

  1. Your computer asks a DNS server (the internet's phone book) “what is the IP address for this name?” and gets back something like 102.130.x.x.
  2. Your request leaves your laptop, goes to your home router, then across many routers on the internet (a WAN) until it reaches the web server.
  3. The server sends the web page back, following addresses in reverse, until it lands in your browser.

All of that happens in a fraction of a second. Understanding these hops is the foundation of both attacking and defending — because every hop is a place where data can be watched, blocked, or protected.

Command demo: look at your own network

Let's make this real. These are safe commands that only show information about your own machine. They work in Kali Linux (and most Linux systems). We'll teach full Linux basics in Module 2 — for now, just see what a real command looks like.

See your IP and MAC address

$ ip a # "ip a" = show all (a) network interfaces on this machine. # You'll see your IP address (inet) and MAC address (link/ether).

What it does: lists every network connection your computer has, along with its IP and MAC addresses. When you'd use it: the very first thing any security professional does on a new machine — “where am I on the network?”

See the path to a website (the hops)

$ traceroute google.com # Shows every router your data passes through on the way to google.com.

What it does: reveals each “hop” between you and a destination. Each line is one router. This is the post-office chain from our analogy, made visible.

Try It Yourself (practice terminal)

This is a safe simulated terminal. Type one of these and press Enter: ip a, hostname, or traceroute google.com.

kali@lab: ~
Welcome to the CyberSchool practice shell. Type a command below and press Enter.
kali@lab:~$
Practical Exercise 1.1 — Map your own home network

Goal: discover the addresses of your own devices. Do this only on your own network.

  1. Open a terminal on Kali (or any Linux). Run:
    $ ip a
    Result: note your IP address (e.g. 192.168.1.10) and the subnet mark /24. This means your network is 192.168.1.0–255.
  2. Find your router's address (the “default gateway”):
    $ ip route | grep default
    Result: e.g. default via 192.168.1.1 — that 192.168.1.1 is your router, the door to the internet.
  3. Confirm you can reach your router:
    $ ping -c 4 192.168.1.1 # -c 4 = send 4 test packets, then stop.
    Result: four replies with times in milliseconds = your router is alive and reachable.

You just did reconnaissance — the same first step a professional takes, on a network you're allowed to explore.

Quick check: Which device connects two different networks together (like your home to the internet)?
A switch
A router
A MAC address
A host
A router joins different networks. A switch only connects devices inside one network.
Why does this matter for your career? Every cybersecurity job — from SOC analyst to penetration tester — assumes you can read an IP address, tell a LAN from a WAN, and picture how data moves. Attackers exploit networks; defenders protect them. Neither is possible without this foundation. This is also the bedrock of the CompTIA Network+ and Security+ exams.

Key takeaways

  • A network is two or more devices connected to share data; the internet is a network of networks.
  • An IP address is like a postal address (can change); a MAC address is like a name (fixed to the hardware).
  • Switches connect devices inside a network; routers connect different networks.
  • ip a, ping, and traceroute are your first, safe tools for seeing a network.
CyberSchool · Module 1, Lesson 1. Practise only on networks you own or are authorised to test.