Courseiva
220-1201Chapter 5 of 18Objective 2.1

Networking Fundamentals and IP Addressing

Without understanding how devices find each other across a network, you cannot diagnose a single connectivity failure or configure a printer, let alone pass the 220-1201 exam. Networking fundamentals and IP addressing are the invisible postal system of the digital world, and every IT professional must know exactly how that system delivers data from one device to another. This chapter gives you the plain-English map of how computers, phones, and servers actually talk to one another.

12 min read
Beginner
Updated Jul 23, 2026
Editorial oversight: Johnson Ajibi· Security Systems Architect · MSc IT Security · IEEE Senior Member

A simple way to picture Networking Fundamentals and IP Addressing

The Apartment Complex Mailroom Analogy

A busy apartment complex mailroom at 5pm on a Tuesday. The building has 200 flats, each with a numbered mailbox built into the wall. A postal delivery van arrives carrying hundreds of letters and packages. The driver does not know the name of every resident. The driver does not knock on 200 individual doors. The driver takes the entire load to the central mailroom and sorts each item into the correct numbered slot. Each letter has an address that includes the building number (city-wide location), the street name (neighbourhood location), and the flat number (specific mailbox). The mailroom itself is the switch or router. The slots are the IP addresses. The letters are data packets. The driver is the network protocol. When a resident checks their mail, they look only at their own slot, not anyone else's. If a package is too big for the slot (like a large data packet), it gets split into smaller envelopes that are reassembled in the correct order inside the resident's mailbox. This is fragmentation and reassembly. The mailroom does not care what is inside the envelope — it only cares about the flat number on the outside. That is the network layer operating without concern for the content. The building manager has a master list linking resident names to flat numbers. That is the Domain Name System (DNS), translating human-friendly names to machine-friendly numbers. The entire system works because every single mailbox in the city follows the same numbering scheme. That is the Internet Protocol standardisation.

How It Actually Works

At its simplest, a network is just two or more devices connected so they can share information. That information travels in small chunks called packets. Think of a packet as a digital envelope: it has a sender address, a destination address, and some content inside. The rules that govern how these envelopes are addressed, sent, and received are called protocols. The most important protocol for addressing is the Internet Protocol, or IP.

Every device on an IP network gets a unique identifier called an IP address. There are two main versions in use today: IPv4 and IPv6. IPv4 addresses are 32-bit numbers, which means there are about 4.3 billion possible addresses. You see them written as four decimal numbers separated by dots, like 192.168.1.1. IPv6 was created because the world ran out of IPv4 addresses. IPv6 addresses are 128-bit numbers, giving a mind-bogglingly huge number of addresses. They are written as eight groups of hexadecimal digits, like 2001:0db8:85a3:0000:0000:8a2e:0370:7334.

An IP address alone is not enough. Every IP address also has a subnet mask. The subnet mask tells the device which part of the address refers to the network and which part refers to the specific device (called the host) on that network. For example, if your IP address is 192.168.1.10 and your subnet mask is 255.255.255.0, the first three numbers (192.168.1) identify your network, and the last number (10) identifies your specific device. This is called classful addressing, and it is how routers decide where to send packets.

A router is a device that connects different networks together. When you send data to a website, your computer checks its own subnet mask. If the destination IP is on a different network, your computer sends the packet to its default gateway — which is almost always a router. The router then looks at the destination IP, consults its routing table (a list of known networks and the best path to reach them), and forwards the packet towards its destination. This process happens at every router along the path until the packet reaches the destination network.

To make IP addressing more flexible, network engineers use subnetting. Subnetting means taking one large network and dividing it into smaller, more manageable subnetworks (subnets). For example, a company might have a single block of IP addresses but divide it into separate subnets for the sales department, the engineering department, and the guest Wi-Fi. Each subnet is isolated from the others for security and performance, and routers (or layer 3 switches) control traffic between them.

Another critical concept is the difference between public and private IP addresses. Public IP addresses are unique across the entire internet and are assigned by the Internet Assigned Numbers Authority (IANA). Private IP addresses are reserved for use inside private networks and are not routable on the public internet. The most common private IP ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. When a device with a private address needs to reach the internet, a router performs Network Address Translation (NAT). NAT changes the private source IP address to the router's public IP address, so the response can find its way back.

Dynamic Host Configuration Protocol (DHCP) automates IP address assignment. When a device joins a network, it broadcasts a DHCP discover message. A DHCP server responds with an offer of an IP address, subnet mask, default gateway, and DNS server addresses. The device accepts the offer, and the server records the lease so it does not give the same address to two devices. This eliminates the need for manual configuration and prevents address conflicts.

Finally, the Domain Name System (DNS) translates human-readable domain names (like www.example.com) into IP addresses. When you type a website name into your browser, your computer queries a DNS server. The DNS server looks up the IP address associated with that domain and returns it to your computer, which then uses that IP to establish a connection. Without DNS, you would have to remember numbers for every website you visit.

This diagram shows the flow of DHCP address assignment, DNS resolution, and a web request with NAT translation.

Walk-Through

1

Device connects to the network

A computer, phone, or printer joins a network either by plugging in an Ethernet cable or connecting to Wi-Fi. The network interface card (NIC) on the device becomes active and ready to send and receive data. This is the physical foundation of all networking.

2

Obtaining an IP address via DHCP

The device broadcasts a DHCP Discover message looking for a DHCP server. The DHCP server responds with an Offer containing an available IP address, subnet mask, default gateway, and DNS server. The device sends a Request, and the server acknowledges it. This is the DORA process. Without a valid IP, the device cannot communicate at all.

3

DNS resolution of a domain name

When a user types a website address into a browser, the device sends a DNS query to the DNS server it received from DHCP. The DNS server looks up the domain and returns the corresponding IP address. This step translates human-readable names into machine-routable numbers.

4

Packet creation and routing

The browser creates a data packet with the destination IP (from DNS) and the source IP (the device's own address). It checks its subnet mask to see if the destination is on the same local network. If it is not, the packet is sent to the default gateway (the router). The router examines the destination IP, consults its routing table, and forwards the packet to the next hop toward the destination.

5

NAT translation (if applicable)

If the device uses a private IP address (like 192.168.x.x) and the destination is on the public internet, the router's NAT feature replaces the private source IP with the router's public IP and assigns a unique port number. This allows many devices to share one public IP. The router remembers this translation so it can send the response back to the correct internal device.

6

Packet arrives at destination and response returns

The packet reaches the destination server, which processes the request and sends a response packet back. That response packet has the destination IP set to the public IP of the original router. The router receives it, looks up its NAT table, finds the original internal device, replaces the destination IP with the private IP, and forwards it. The user sees the website load.

What This Looks Like on the Job

An IT professional at a medium-sized company receives a ticket that users in the finance department cannot access the company's cloud-based accounting software. The IT professional starts by asking a simple question: can anyone access the software? If yes, then the problem is isolated. If no, the problem is broader.

The IT professional first checks whether the finance department's devices have valid IP addresses. They open a command prompt on a user's computer and run 'ipconfig' (Windows) or 'ifconfig' (Linux/macOS). This shows the current IP address, subnet mask, default gateway, and DNS servers. If the IP address starts with 169.254.x.x, it means the device could not reach a DHCP server and has assigned itself an Automatic Private IP Addressing (APIPA) address. That points to a DHCP server problem.

Next, the IT professional tries to ping the default gateway. The ping command sends a small packet to the gateway and waits for a reply. If the gateway does not respond, the issue is likely a physical cable, a faulty switch port, or a misconfigured network interface. If the gateway responds, the problem is further upstream.

The IT professional then pings a known public DNS server, like 8.8.8.8 (Google DNS). If that works but ping to www.example.com fails, the issue is DNS resolution. The IT professional checks the DNS server settings on the device and may try flushing the DNS cache using 'ipconfig /flushdns'. If the problem persists, they check the company's internal DNS server.

If the devices have IP addresses in a different subnet than expected (for example, a device in finance shows an address from the engineering subnet), it suggests a DHCP scope misconfiguration. The IT professional logs into the DHCP server, checks the scope settings, and ensures the finance department's devices are assigned addresses from the correct pool.

In a more complex scenario, the IT professional checks the routing table on the core router. They run 'tracert' (Windows) or 'traceroute' (Linux) to the destination IP to see where packets stop being forwarded. This step-by-step path reveals if a router along the way is misconfigured or down.

The IT professional also checks for IP address conflicts. If two devices have the same IP address, one or both will lose connectivity. They can look in the DHCP server logs for duplicate lease assignments or use a network scanning tool to see which devices are responding to which IPs.

Finally, if the problem is isolated to a single subnet, the IT professional checks the subnet mask. A wrong subnet mask can cause a device to think a destination is local when it is actually remote, causing the packet to never reach the router.

How 220-1201 Actually Tests This

The CompTIA A+ Core 1 220-1201 exam tests networking fundamentals and IP addressing in several specific ways. You will see multiple-choice questions, drag-and-drop exercises, and scenario-based questions that ask you to choose the best troubleshooting step or configuration.

The exam loves testing the difference between IPv4 and IPv6. You must know the format: IPv4 is 32-bit, dotted decimal. IPv6 is 128-bit, hexadecimal, colon-separated. They will show you address examples and ask which version they are. They also test IPv6 shorthand rules: leading zeros in a group can be omitted, and one contiguous group of all-zero groups can be replaced with a double colon (::). A common trap question gives you an IPv6 address with two double colons, which is invalid.

Another major exam topic is subnetting. You must understand the purpose of a subnet mask and be able to identify the network portion of an IP address given a mask. The exam may give you an IP address and a subnet mask and ask which part is the host ID. They test the default subnet masks for Class A (255.0.0.0), Class B (255.255.0.0), and Class C (255.255.255.0). They also check if you know that a subnet mask of 255.255.255.0 means the first three octets are the network ID.

DHCP is heavily tested. You must know the four-step process: Discover, Offer, Request, Acknowledgment (DORA). A question might describe a user who cannot get online, and the device has an APIPA address (169.254.x.x). The correct answer is that the DHCP server is unreachable. They also ask about DHCP reservations, which permanently assign a specific IP to a specific MAC address.

DNS is another favourite. You must know that DNS resolves domain names to IP addresses. A typical question: 'A user can ping 8.8.8.8 but cannot browse www.example.com. What is the most likely issue?' The answer is DNS resolution failure. You should also know the 'nslookup' command for querying DNS.

NAT and PAT (Port Address Translation) appear. They test the concept that NAT allows multiple private IP addresses to share a single public IP. A question might ask: 'What technology allows a home router to provide internet access to multiple devices using one public IP?' The answer is NAT. - Common traps to watch for:

Confusing a subnet mask with a default gateway

Thinking 169.254.x.x is a valid IP from the DHCP server (it is not — it is APIPA)

Believing DNS and DHCP are the same service

Forgetting that IPv6 addresses are written in hexadecimal, not decimal

Assuming a router and a modem are the same device

Key definitions to memorise:

IP address: unique logical identifier for a device on a network

Subnet mask: determines which portion of the IP is the network ID and which is the host ID

Default gateway: the router that forwards traffic from the local network to other networks

DNS: translates domain names to IP addresses

DHCP: automatically assigns IP addresses and other network configuration

APIPA: automatic configuration when DHCP is unavailable, range 169.254.0.1 to 169.254.255.254

Loopback address: 127.0.0.1, used to test the local network stack

Key Takeaways

An IP address is a unique numerical label assigned to each device on a network, functioning as the delivery address for data packets.

IPv4 uses 32-bit addresses written in dotted decimal (e.g., 192.168.1.1), while IPv6 uses 128-bit addresses written in hexadecimal colon-separated notation (e.g., 2001:db8::1).

The subnet mask determines which part of an IP address identifies the network and which part identifies the specific host on that network.

DHCP automatically assigns IP addresses, subnet masks, default gateways, and DNS server addresses to devices when they join a network.

DNS translates human-friendly domain names (like www.example.com) into machine-readable IP addresses that computers use to communicate.

A device with an IP address starting with 169.254.x.x has failed to reach a DHCP server and has assigned itself an APIPA address, meaning it cannot reach the broader network.

NAT allows multiple devices on a private network to share a single public IP address when accessing the internet.

The loopback address 127.0.0.1 always refers to the local device and is used for testing network software without sending traffic over the network.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

IPv4

32-bit address, written as four decimal octets (e.g., 192.168.1.1)

Approximately 4.3 billion possible addresses

Uses dotted decimal notation with dots as separators

IPv6

128-bit address, written as eight hexadecimal groups (e.g., 2001:db8::1)

Approximately 340 undecillion possible addresses

Uses colon-separated hexadecimal notation with double-colon shorthand

DHCP

Assigns IP addresses and network configuration automatically

Uses the DORA process: Discover, Offer, Request, Acknowledgment

Operates on UDP port 67 (server) and 68 (client)

DNS

Translates domain names to IP addresses

Uses a hierarchical query system with caching

Operates on UDP and TCP port 53

Public IP Address

Unique across the entire internet

Assigned by ISP or IANA

Routable on the public internet

Private IP Address

Not unique; reused across different private networks

Assigned by a local router or DHCP server

Not routable on the public internet; must use NAT to access internet

Router

Connects different networks (e.g., home network to internet)

Operates at Layer 3 (network layer) of the OSI model

Routes packets based on IP addresses

Switch

Connects devices within the same network

Operates at Layer 2 (data link layer) of the OSI model

Forwards frames based on MAC addresses

Static IP

Manually configured and never changes

Requires administrator to track and avoid conflicts

Used for servers, printers, and devices that need a fixed address

Dynamic IP (via DHCP)

Automatically assigned by a DHCP server and can change over time

Eliminates manual configuration and reduces conflicts

Used for most end-user devices like laptops and phones

Watch Out for These

Mistake

An IP address alone uniquely identifies a device on the internet.

Correct

An IP address identifies a network interface, not a device, and it changes frequently via DHCP. Public IPs are unique, but private IPs are reused across millions of networks.

People conflate the idea of a serial number (which is fixed) with an IP address (which is assigned and can change).

Mistake

The subnet mask is the same thing as the default gateway.

Correct

The subnet mask defines the boundary between the network and host portions of the IP address. The default gateway is the router's IP address used to leave the local network.

Both are numbers that look like IP addresses, and beginners see them listed together in network settings without understanding their distinct functions.

Mistake

A router and a modem are the same device and the terms can be used interchangeably.

Correct

A modem converts signals between your ISP's infrastructure (cable, fibre, DSL) and your home network. A router forwards traffic between different networks. Many home devices combine both, but they are separate functions.

Home 'router' devices from ISPs often include a modem, a router, a switch, and a wireless access point in one box, so users think they are one thing.

Mistake

127.0.0.1 is a special IP address that connects you to the internet.

Correct

127.0.0.1 is the loopback address. It points back to your own computer. It is used for testing network software locally and never leaves the device.

Users sometimes see it referred to as 'localhost' and assume it means their public internet connection.

Mistake

DNS and DHCP are both services that assign IP addresses.

Correct

DHCP assigns IP addresses. DNS translates domain names to IP addresses. They are completely different functions that often run on the same server but serve different purposes.

Both are network services with three-letter acronyms that beginners encounter together in network settings (e.g., 'Obtain DNS server address automatically'), so they blur the functions.

Mistake

An IPv6 address is just an IPv4 address with more dots and numbers.

Correct

IPv6 addresses are 128-bit hexadecimal values separated by colons (e.g., 2001:db8::1), while IPv4 addresses are 32-bit decimal values separated by dots. They are structurally completely different.

People see 'IP' in both names and assume the format is similar, just longer, so they do not learn the distinct hexadecimal notation.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

What is the difference between a public IP address and a private IP address?

A public IP address is unique across the entire internet and is assigned by your ISP. A private IP address is used only within your local network and is not routable on the public internet. Private IP ranges include 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.

Why does my IP address say 169.254.x.x and I cannot get online?

An IP address starting with 169.254.x.x is an Automatic Private IP Addressing (APIPA) address. It means your device could not reach a DHCP server to get a proper IP address, so it assigned itself one. You need to troubleshoot why your device cannot communicate with the DHCP server.

What is a subnet mask in simple terms?

A subnet mask is a number that tells your device which part of an IP address identifies the network and which part identifies the specific device (host) on that network. For example, with IP 192.168.1.10 and subnet mask 255.255.255.0, the network part is 192.168.1 and the host part is 10.

What does DNS stand for and what does it do?

DNS stands for Domain Name System. It translates human-readable domain names like www.google.com into IP addresses that computers use to find each other on the network. Without DNS, you would have to memorise numbers like 142.250.190.4 to visit a website.

How do I find my IP address on Windows?

Open the Command Prompt and type 'ipconfig'. Look for the line that says 'IPv4 Address' under your active network adapter. That is your device's current IP address. You can also see your subnet mask and default gateway in the same output.

What is the difference between a router and a switch?

A router connects different networks together and routes traffic between them (like your home network to the internet). A switch connects devices within the same network and forwards data only to the correct device based on MAC addresses. Routers operate at Layer 3, switches at Layer 2.

Can two devices on the same network have the same IP address?

No, each device on a local network must have a unique IP address. If two devices have the same IP, it causes an IP conflict, and one or both devices will lose network connectivity. DHCP is designed to prevent this by tracking which addresses are in use.

Terms Worth Knowing

Ready to put this to the test?

You've just covered Networking Fundamentals and IP Addressing — now see how well it sticks with free 220-1201 practice questions. Full explanations included, no account needed.

Done with this chapter?