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.
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.
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.
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.
Types of networks you should know
| Name | Full form | What it means (simply) | Everyday example |
|---|---|---|---|
| LAN | Local Area Network | Devices in one small area, like a home or office | Your home Wi-Fi |
| WAN | Wide Area Network | Networks spread across large distances, joined together | The internet |
| WLAN | Wireless LAN | A LAN that connects over radio waves instead of cables | Café or campus Wi-Fi |
| VPN | Virtual Private Network | A secure, private tunnel over a public network | Connecting 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:
- 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.
- 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.
- 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
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)
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.
This is a safe simulated terminal. Type one of these and press Enter: ip a, hostname, or traceroute google.com.
Goal: discover the addresses of your own devices. Do this only on your own network.
- Open a terminal on Kali (or any Linux). Run:
$ ip aResult: 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.
- Find your router's address (the “default gateway”):
$ ip route | grep defaultResult: e.g. default via 192.168.1.1 — that 192.168.1.1 is your router, the door to the internet.
- 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.
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.