A+ Core 1 • Mission 06 • Module 6

Address the Network

Configuring Network Addressing and Internet Connections — connect Internet services, understand TCP/IP, recognize IPv4 vs IPv6, work with subnet masks, ports, DHCP, DNS, VLANs, and VPNs.

Acronyms before use

IP = Internet ProtocolIPv4 = Internet Protocol version 4IPv6 = Internet Protocol version 6CIDR = Classless Inter-Domain RoutingAPIPA = Automatic Private IP AddressingNAT = Network Address TranslationTCP = Transmission Control ProtocolUDP = User Datagram ProtocolDHCP = Dynamic Host Configuration ProtocolDNS = Domain Name SystemVLAN = Virtual Local Area NetworkVPN = Virtual Private Network

IP addresses, ranges & CIDR — make the notation mean something

An Internet Protocol (IP) address is a logical address assigned to a network interface. It helps devices identify where network traffic is coming from and where it needs to go. A device can have more than one IP address—for example, one on Wi-Fi and another on Ethernet.

IPv4 vs IPv6

Internet Protocol version 4 (IPv4) is 32 bits and is normally written as four decimal numbers (octets), each from 0–255.

Example: 192.168.1.25

Internet Protocol version 6 (IPv6) is 128 bits and is written with hexadecimal digits separated by colons.

Example: 2001:db8::25

Memory trick: Dots = IPv4. Colons = IPv6. IPv4 looks like 4 dotted numbers; IPv6 is the longer hexadecimal address that uses colons.

Public vs private

Private IPv4 addresses are used inside homes, schools, and organizations. They are not routed directly across the public Internet. A router commonly uses Network Address Translation (NAT) so many private devices can communicate outward using public addressing.

Public IP addresses are globally routable addresses used to communicate across the Internet. Your router's Internet-facing connection may receive a public address from the Internet Service Provider (ISP).

Think location: private = inside the local network; public = Internet-facing. Do not assume every address outside the three private IPv4 ranges is usable as an ordinary public host address—other special/reserved ranges also exist.

The three private IPv4 ranges

Private rangeWhat the prefix meansStudent-friendly memory
10.0.0.0/8
10.0.0.0–10.255.255.255
/8 means the first 8 bits—the first octet—are the network prefix for this range. Every address here starts with 10.“Starts with 10? Private 10 range.”
172.16.0.0/12
172.16.0.0–172.31.255.255
/12 fixes the first 12 bits. For recognition, remember that only 172.16 through 172.31 are in this private block.“172 private lives from 16 through 31.” 172.15.x.x and 172.32.x.x are not in this private range.
192.168.0.0/16
192.168.0.0–192.168.255.255
/16 means the first 16 bits—the first two octets—are the network prefix for this range. These addresses start with 192.168.“192.168 = private.” This pattern is common on home/local networks.

Why do homes, schools, and companies use different private ranges?

10.x.x.x, 172.16–31.x.x, and 192.168.x.x are not different “types” of private network. They are three address blocks reserved for private use. A network administrator or router manufacturer chooses a block and then divides it into subnets that fit the network.

Think of them as three sizes of private address space

  • 10.0.0.0/8 is the largest private block: 16,777,216 total addresses before subnetting. Large organizations often have room to create many internal subnets from it.
  • 172.16.0.0/12 is a middle-sized private block: 1,048,576 total addresses. Only 172.16 through 172.31 are private.
  • 192.168.0.0/16 contains 65,536 total addresses. Home and small-office routers commonly choose a smaller subnet from this block, such as 192.168.1.0/24.

Why your devices may show different numbers

Your device normally receives its local/private IP address from the network it joins. The address is not permanently tied to the laptop or phone.

At home you might receive 192.168.1.25. At school the same laptop might receive 10.42.7.25. On another organization's network it could receive 172.20.8.25. All three can be valid private addresses.

The network's addressing plan determines the range. Dynamic Host Configuration Protocol (DHCP) commonly assigns an available address from the subnet configured by the administrator/router.

Important: a company does not have to use 10.x.x.x, and a home does not have to use 192.168.x.x. Those are common design choices, not rules. A home can use part of 10.0.0.0/8, and an enterprise can use part of 192.168.0.0/16. The address only has to fit the private network's configured subnet and addressing plan.

Private address on the inside; public address on the Internet

Suppose a home router uses 192.168.1.0/24. A laptop might be 192.168.1.25, a phone 192.168.1.40, and a printer 192.168.1.60. Those addresses work inside that local network. The router's Internet/Wide Area Network (WAN) side has a separate upstream address. Network Address Translation (NAT) lets many inside private addresses share the router's Internet-facing connectivity.

Do not confuse “same private number” with “same device.” Millions of unrelated homes can each have a device named 192.168.1.25 because private addresses are reused on separate local networks and are not routed globally as unique Internet addresses.
Why might your home PC be 192.168.1.20 but a school PC be 10.20.30.40?

They are on different private networks with different addressing plans. Both ranges are valid for private IPv4 use.

Does 172.x.x.x automatically mean private?

No. Only 172.16.0.0 through 172.31.255.255 is the private 172 block.

Can two different homes both use 192.168.1.25?

Yes. Private addresses can be reused on separate local networks because they are not globally routed as unique public Internet addresses.

Who usually gives your phone or laptop its private address?

On many networks, DHCP on the router or a network server assigns an address from that network's configured subnet.

What does CIDR notation mean?

Classless Inter-Domain Routing (CIDR) uses /1 through /32 to tell you how many of IPv4's 32 bits belong to the network prefix. The slash number is a bit count—not a separate part of the IP address.

Start with all 32 bits

IPv4 has four octets. Each octet has 8 bits, so 8 + 8 + 8 + 8 = 32 bits.

Octet 1   |   Octet 2   |   Octet 3   |   Octet 4

00000000 . 00000000 . 00000000 . 00000000

As the CIDR number increases from /1 → /32, the network/host boundary moves one bit to the right. Each step turns one more mask bit from 0 into 1.

Read CIDR out loud:
192.168.10.34/24
“IPv4 address 192.168.10.34 with a 24-bit network prefix.”
/24 is not part of the host address. It tells you where the network bits stop and the host bits begin.

See the boundary move across all four octets

CIDR rangeChanging octetWhat is happening
/1–/8Octet 1The boundary moves through the first 8 bits.
/9–/16Octet 2Octet 1 is all network; the boundary moves through Octet 2.
/17–/24Octet 3Octets 1–2 are all network; the boundary moves through Octet 3.
/25–/32Octet 4Octets 1–3 are all network; the boundary moves through Octet 4.
Memory: every group of 8 finishes an octet: /8 → /16 → /24 → /32. Between those landmarks, count how many network bits are turned on in the changing octet.

One 8-bit pattern repeats in every octet

Bits ONBinary in changing octetMask valueMagic number / jump
110000000128128
21100000019264
31110000022432
41111000024016
5111110002488
6111111002524
7111111102542
8111111112551

This is the same pattern for /1–/8, /9–/16, /17–/24, and /25–/32. Only the changing octet is different.

Example: why /14 and /30 use the same row

/14 is in Octet 2. It uses 6 network bits in the changing octet: 11111100 = 252. Its mask is 255.252.0.0 and the magic number in Octet 2 is 256 − 252 = 4.

/30 is in Octet 4. It also uses 6 network bits in the changing octet: 11111100 = 252. Its mask is 255.255.255.252 and the magic number in Octet 4 is also 4.

Connection: the 8-bit pattern repeats; CIDR tells you which octet contains that pattern.

Host-bit connection: 32 − CIDR = host bits. Example: /26 leaves 6 host bits, so 26 = 64 total addresses. /20 leaves 12 host bits, so 212 = 4,096 total addresses.

Where do I actually find an IP address?

Windows PC

Settings: Settings → Network & internet → Wi-Fi or Ethernet → select the connected network / Properties and look for IPv4 address, IPv6 address, DNS, and related network properties.

Command line: open Command Prompt and run ipconfig. Use ipconfig /all for more detail such as DHCP and DNS information.

macOS

Settings: System Settings → Network → select Wi-Fi or Ethernet → Details. Look at the TCP/IP information.

Terminal: tools such as ifconfig can display interface addressing.

iPhone / iPad

Settings → Wi-Fi → tap the ⓘ information button beside the connected network. Look for the IP Address section, including IPv4 details such as IP address, subnet mask, and router.

Android phone / tablet

Open Settings → Network/Internet or Connections → Wi-Fi → select the connected network. The exact labels vary by manufacturer and Android version; look under network details/advanced information for the IP address, gateway, and related settings.

Linux / Raspberry Pi

Open a terminal and use ip addr (often shortened to ip a) to see addresses on network interfaces. ip route helps identify routes/default gateway information.

Router

In the router's administration interface, the WAN/Internet status area may show the address used toward the ISP, while the LAN/DHCP/client area shows local addressing and connected devices. Interface names vary by router.

Important: A device may show several addresses. Make sure you are looking at the active network interface (for example, the Wi-Fi adapter you are actually using), not a disconnected adapter, virtual adapter, Bluetooth interface, or another connection.
Check: What does the “24” in 192.168.1.25/24 tell you?

It says the network prefix uses 24 bits. IPv4 has 32 bits total, leaving 8 host bits.

Check: Is 10.42.7.9 private or public?

Private. Every IPv4 address beginning with 10 is inside 10.0.0.0/8.

Check: Is 172.40.2.5 in the private 172 range?

No. The private 172 block is only 172.16.0.0 through 172.31.255.255.

Check: Which looks like IPv6 — 192.168.4.20 or 2001:db8::20?

2001:db8::20. The hexadecimal digits and colons are the quick visual clue.

Check: Why might your laptop show both IPv4 and IPv6?

Modern networks can use both protocol versions at the same time. This is commonly called dual stack.

Check: Where would you look for your Windows PC's current address?

Network properties in Windows Settings or run ipconfig in Command Prompt.

Mission goal

  • Compare DSL, cable, fiber, fixed wireless/satellite, and cellular Internet connections.
  • Explain the four-layer TCP/IP model and its PDUs.
  • Recognize valid IPv4 and IPv6 notation.
  • Use an IPv4 address + subnet mask/prefix to identify the network, usable host range, and broadcast address.
  • Recognize private IPv4 and APIPA.
  • Compare TCP/UDP and common ports.
  • Explain DHCP, DNS, VLAN, and VPN concepts.

Do not confuse these

IP address: identifies a host/interface logically.
Subnet mask/prefix: identifies which bits represent the network vs host portion.
Default gateway: router address used to reach other networks.
DNS server: helps resolve names to IP addresses.

A+ clue: 169.254.x.x usually points you toward APIPA / a DHCP-connectivity problem.

6.1 • Internet connection types

TypeConnection / device clueKey idea
DSLTelephone copper; DSL modem; splitter/filterAsymmetric can have faster download than upload; symmetric is equal.
CableCoax + F-type; cable modem; DOCSISUses cable TV infrastructure.
FiberFTTC / FTTP; ONTFTTP brings fiber into the premises; FTTC transitions to copper before the premises.
Satellite / fixed wirelessAntenna / WISP / satelliteUseful where wired service is limited; satellite can have higher latency.
Cellular3G/4G/LTE/5GMobile radio Internet access.

Router: forwards based on IP addresses between networks. Firewall: can allow/deny traffic using rules/ACLs based on packet information such as IP, MAC, protocol, and port.

6.2 • TCP/IP in four layers

LayerMain jobAddress / PDU clue
ApplicationHigh-level network functionality.Data
TransportTCP vs UDP; ports.Segment (module terminology)
InternetCommunication between network segments.IP address • Packet
Link / Network InterfaceCommunication on local segment.MAC address • Frame
Encapsulation: application data is wrapped with information needed by lower layers as it moves toward the network. The receiving system reverses the process (de-encapsulation).

Use the Magic Number Chart • the same method you learned in class

This chart works across /1 through /32. Instead of memorizing only /24–/30, first find the CIDR prefix in the correct octet column. Then read across to find the mask value and the address jump (magic number).

1 • Find the slashLocate /1–/8 in Octet 1, /9–/16 in Octet 2, /17–/24 in Octet 3, or /25–/32 in Octet 4.
2 • Read the maskThe row tells you the value of the changing mask octet: 128, 192, 224, 240, 248, 252, 254, or 255.
3 • Find the magic number256 − changing mask octet = subnet jump. Example: /20 has 240 in Octet 3, so 256 − 240 = 16.
4 • Count the rangesStart at 0 and count by the jump: 0, 16, 32, 48… Find which range contains the IP's value in the changing octet.
Bits used in changing octetOctet 1Octet 2Octet 3Octet 4Changing mask valueSubnets in that octetAddress jump / magic number
1 bit/1/9/17/251282128
2 bits/2/10/18/26192464
3 bits/3/11/19/27224832
4 bits/4/12/20/282401616
5 bits/5/13/21/29248328
6 bits/6/14/22/30252644
7 bits/7/15/23/312541282
8 bits/8/16/24/322552561
Why the chart works: one octet has the binary place values 128, 64, 32, 16, 8, 4, 2, 1. Turning network bits on from left to right creates the mask values. The first host place value left over becomes the jump. Example: 11110000 = 240; the first host bit is 16, so the ranges jump by 16.
1286432168421
Worked example: 192.168.2.3/20

/20 is in Octet 3 because /17–/24 live there. On the /20 row, the changing mask value is 240. Magic number: 256 − 240 = 16. Count Octet 3 ranges: 0, 16, 32, 48… The IP has 2 in Octet 3, so it is in the 0–15 range. Network: 192.168.0.0/20. Broadcast: 192.168.15.255.

Check: /26 — what row and what jump?

/26 is in Octet 4 and uses the 2-bit row. Changing mask = 192. 256 − 192 = 64, so ranges start 0, 64, 128, 192.

Check: /14 — which octet changes?

Octet 2. /9–/16 belong to Octet 2. /14 uses 6 bits in that octet: mask value 252 and jump 4.

See the subnet change • dropdown practice

Classless Inter-Domain Routing (CIDR) uses slash notation for the network prefix. Choose any prefix from /1 through /32. Watch the network/host boundary move one bit at a time across all four octets; the subnet mask, changing octet, binary bits, magic number, and address range update together.

HOST
NETWORK
Watch the pattern: a larger prefix gives more network bits and fewer host bits, so the subnet gets smaller.
CIDR memory: Increase the slash number → more network bits → fewer host bits → smaller subnets. The same 8-bit pattern repeats in every octet: 128, 192, 224, 240, 248, 252, 254, 255. First locate the changing octet, then use the Magic Number Chart.

IPv4

32 bits, written as four decimal octets separated by dots. Each octet is 0–255.

Private ranges:
10.0.0.0–10.255.255.255
172.16.0.0–172.31.255.255
192.168.0.0–192.168.255.255

APIPA: 169.254.0.1–169.254.255.254 in the module. It is automatically assigned when normal address configuration through DHCP is unavailable.

NAT: translates between private and public addressing.

IPv6

128 bits, written in hexadecimal as eight 16-bit values separated by colons, with abbreviation rules allowing shorter notation.

Example: 2001:db8:0:0:0:0:0:10 can be written 2001:db8::10.

Fast recognition: dotted decimal such as 192.168.1.20 is IPv4; hexadecimal groups separated by colons such as 2001:db8::20 are IPv6.

Dual stack: a system/network can use IPv4 and IPv6 together.

6.3 • TCP vs UDP

TCP: connection-oriented with sequencing/acknowledgment; the module highlights the three-way handshake: SYN → SYN/ACK → ACK.

UDP: connectionless with no sequencing or acknowledgments; lower overhead for appropriate services.

Do not memorize “TCP = good, UDP = bad.” They solve different communication needs.

Well-known ports in Module 6

FTP 20/21 • SSH 22 • Telnet 23 • SMTP 25 • DNS 53 • DHCP 67/68 • HTTP 80 • POP3 110 • NetBIOS 137–139 • IMAP 143 • LDAP 389 • HTTPS 443 • SMB 445 • RDP 3389

Open Ports Memory Tricks

6.4 • Network configuration concepts

DHCP

Automatically configures hosts. Know scope, lease, reservation, MAC address, and DORA: Discover → Offer → Request → Acknowledge.

DNS

Resolves FQDN/host names to IP addresses. Resolution can involve local information/cache, a DNS server, authoritative/TLD/root infrastructure.

DNS records — what each one actually does

Domain Name System (DNS) is the Internet's naming system. A DNS record answers a specific kind of question about a domain. Do not memorize only the letters—connect each record to the job it performs.

RecordMeaning / jobExample question it answers
AMaps a hostname to an IPv4 address.“What IPv4 address should I use for www.example.com?”
AAAAMaps a hostname to an IPv6 address. Think “A record, but large enough for IPv6.”“What IPv6 address should I use for this host?”
CNAMECanonical Name: makes one hostname an alias of another hostname.“Should shop.example.com point to another DNS name?”
MXMail Exchanger: identifies the mail server(s) that receive email for a domain; priority values can indicate preference.“Where should mail for @example.com be delivered?”
TXTStores text data. Often used for verification and email-security information such as SPF/DKIM/DMARC-related data.“What verification/security text has this domain published?”
SRVService record: identifies a service's hostname and port.“Which server/port provides this service?”
NSName Server: identifies authoritative DNS servers for a DNS zone.“Which DNS server is authoritative for this zone?”
PTRPointer: reverse lookup from an IP address toward a hostname.“What hostname is associated with this IP?”
SOAStart of Authority: contains core administrative information about a DNS zone.“What is the authoritative/administrative starting information for this zone?”
A vs AAAA: A → IPv4. AAAA → IPv6. Both map a name to an address; the address version is what changes.

What happens when you type a website address?

  1. You enter a URL (Uniform Resource Locator), such as https://www.example.com/page.
  2. The browser needs the hostname's IP address, so DNS resolution occurs. An A record can supply IPv4; an AAAA record can supply IPv6.
  3. The client connects to the destination IP. For a secure website, HTTPS normally uses TCP port 443.
  4. TLS (Transport Layer Security) protects the HTTPS session and uses a certificate to help authenticate the site.
  5. The web server returns the requested web content.
Troubleshooting clue: If a site works when you use its IP address but fails when you use its hostname, investigate DNS/name resolution before blaming the web server.

Email-related DNS protections in the module: SPF, DKIM, DMARC.

VLAN

Logically splits broadcast domains on switching infrastructure. Used for performance, security, and controlling communication between groups.

VPN

Creates a secure tunnel for remote traffic across an untrusted/non-secure connection, such as public Wi-Fi.

Troubleshooting by clue

169.254.x.x

Recognize APIPA. Check link, adapter state, DHCP availability, and lease process.

IP works; hostname fails

Investigate Domain Name System (DNS) configuration/resolution.

Local subnet works; Internet does not

Check default gateway/router and upstream connectivity.

Intermittent after manual setup

Check duplicate static addresses and subnet settings.

IPDG: Internet Protocol address → Prefix/mask → Domain Name System → Gateway.
What does a subnet mask tell you?

Which IPv4 bits are the network portion and which are available for host addressing.

2001:db8::25 — IPv4 or IPv6?

IPv6. It uses hexadecimal groups and colons.

192.168.1.25 — IPv4 or IPv6?

IPv4. It uses four dotted-decimal octets.

Interactive vocabulary check

Define it before revealing it.

Mission 06 • Quick check

1. Is 192.168.40.12 IPv4 or IPv6? Private or public?

IPv4 and private. 192.168.0.0/16 is a private IPv4 range.

2. A PC shows 169.254.22.8. What should you investigate?

DHCP/connectivity. The address is in the APIPA range.

3. What does 255.255.255.0 tell you?

It is a subnet mask equivalent to /24: 24 network bits and 8 host bits.

4. Which DNS record maps a name to an IPv4 address?

A record. AAAA is for IPv6.

5. What is the DHCP DORA sequence?

Discover → Offer → Request → Acknowledge.

6. Which layer uses IP addresses for forwarding?

Internet layer in the four-layer TCP/IP model.

Notebook suggestion: make one “Addressing Survival Page” with private IPv4 ranges, APIPA, /1–/32 CIDR / Magic Number Chart patterns, DORA, IPv4-vs-IPv6 examples, and the ports you personally miss most often.