Skip to content
FORGENO ADS GAMESUnlock all $8

IT Support & Networks · Unit 5 of 8

Unit 5: Addresses on a network

IP addresses, private and public addresses, DHCP, DNS and MAC addresses: how devices find each other.

Opens the first lesson of this unit in IT Support & Networks. Every lesson is open from the start.

Lesson 1: IP addresses

Goal: Read an IPv4 address and know what makes one valid.

Every device on a network needs an IP address so data can be delivered to it, just like a street address for mail.

The most common kind, IPv4, is four numbers separated by dots, such as 192.168.1.25. Each number, called an octet, ranges from 0 to 255, because each is stored in 8 bits, and 8 bits can hold 256 different values (0 to 255).

Worked example: valid or not?

  1. 10.0.0.1: valid.
  2. 192.168.1.256: not valid, because 256 is over 255.
  3. 172.16.4: not valid, because there are only three numbers.
  4. 8.8.8.8: valid.

IPv4 allows about 4.3 billion addresses (2 to the power of 32), which is not enough for every device on Earth. The newer IPv6 uses much longer addresses written in hexadecimal, such as 2001:db8::1, with room for vastly more devices. Both are used today.

Part of an address identifies the network and part identifies the device. A subnet mask says which part is which. The most common home mask, 255.255.255.0 (also written /24), means the first three numbers name the network and the last number names the device. So 192.168.1.25 and 192.168.1.80 are on the same network, while 192.168.2.80 is on a different one.

Hands-on lab in the room: IP address lab. Practice spotting valid, private and public addresses, and checking whether two devices are on the same network.

IP address
A numeric address that identifies a device on a network.
Octet
One of the four numbers in an IPv4 address, from 0 to 255.
Subnet mask
A value, such as 255.255.255.0 (/24), that shows which part of an IP address is the network.
IPv6
The newer, much larger IP address format.

Remember: IPv4 = four numbers, each 0 to 255. With /24, the first three numbers name the network.

Lesson 2: Private and public addresses

Goal: Tell private addresses from public ones and explain NAT.

Some IPv4 ranges are reserved for private use inside local networks. They are never used on the public internet, so millions of homes can reuse the same ones:

Private rangeCommonly seen
10.0.0.0 to 10.255.255.255Large business networks
172.16.0.0 to 172.31.255.255Business networks
192.168.0.0 to 192.168.255.255Most home routers

Your router has one public IP address from your ISP, which the rest of the internet sees. Inside, every device has a private address. The router keeps track of which device asked for what, and swaps addresses on the way out and back in. This is called NAT (network address translation). It is why your phone and your laptop look like the same address to a website.

Two special addresses worth knowing:

  • 127.0.0.1 (loopback, also called localhost) always means "this device itself". It is used for testing.
  • 169.254.x.x (link-local or APIPA) means a device asked the network for an address and got no answer, so it gave itself one. It can only talk to its immediate neighbors, not the internet. Seeing this is a big clue that address assignment (DHCP) failed.
Private IP address
An address from a reserved range used only inside local networks.
Public IP address
An address that is reachable on the internet, usually assigned by your ISP.
NAT
Network address translation: lets many private devices share one public address.
169.254.x.x
A self-assigned address that signals the device could not get one from DHCP.

Remember: 10.x, 172.16–31.x and 192.168.x are private. 169.254.x.x means DHCP failed.

Lesson 3: DHCP: getting an address automatically

Goal: Explain DHCP and the difference between dynamic and static addresses.

Nobody types in addresses for every phone that joins Wi-Fi. A service called DHCP (Dynamic Host Configuration Protocol) hands them out automatically, usually running on the router.

Worked example: joining a network

  1. Your phone joins the Wi-Fi and asks: "Is there a DHCP server? I need an address."
  2. The router offers one: "Use 192.168.1.42."
  3. The phone accepts, and the router confirms. It also hands over the subnet mask, the default gateway (the router's own address, the exit to the internet) and the DNS server to use.
  4. The address is leased for a set time, then renewed or reused.

Most devices use dynamic addresses from DHCP. Some devices are better with a static address that never changes, like printers and servers, so other devices always know where to find them. Often IT sets a DHCP reservation: the router always gives that device the same address.

When DHCP breaks, devices end up with 169.254 addresses, or with "no internet" even though Wi-Fi shows as connected. Restarting the router, or telling the device to renew its address, is often the fix.

DHCP
A service that automatically gives devices an IP address, subnet mask, gateway and DNS server.
Default gateway
The router's address: where a device sends traffic headed outside the local network.
Static IP
An address that is set to stay the same, rather than being assigned dynamically.

Remember: DHCP hands out address, mask, gateway and DNS. Printers and servers get fixed addresses.

Lesson 4: DNS and MAC addresses

Goal: Explain DNS lookups and the role of MAC addresses.

People remember names; networks route by numbers. DNS (Domain Name System) is the internet's phone book, translating names like example.com into IP addresses.

Worked example: a DNS lookup

  1. You type example.com into a browser.
  2. Your computer asks its DNS server (from DHCP): "What is the IP address of example.com?"
  3. The DNS server answers with an address, asking other DNS servers along the way if it does not already know.
  4. Your browser connects to that IP address. The answer is cached for a while, so the next visit is faster.

A classic symptom: websites will not load by name, but they do load by IP address. That points straight at DNS. (The shorthand among IT staff: "It's always DNS.")

Every network card also has a MAC address, a hardware identifier set by the manufacturer, written as six pairs of hexadecimal digits like 3C:22:FB:9A:10:4E. IP addresses can change from network to network; the MAC address identifies the network card itself. Switches use MAC addresses to deliver data within a local network, and routers use them for DHCP reservations.

DNS
Domain Name System: translates domain names into IP addresses.
MAC address
A hardware identifier for a network card, used for delivery within a local network.
Cache
A stored copy of recent results, such as DNS answers, kept to speed up repeat requests.

Remember: DNS turns names into numbers. Works by IP but not by name? Suspect DNS.

Practise it in IT Support & Networks

Each lesson ends with three questions that check you can use the idea, not just recognise it. Wrong answers explain why and come back in Review. The unit ends with a 6-question quiz; pass it with 80% or more to master the unit. Hands-on lab: IP address lab.

Every lesson is free: no ads, no lives and no paywall.