CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
  • Week 1
    • 1.Operating Systems and Linux: What the Kernel Does
    • 2.Free Software and Distributions: The Ecosystem Built by Licenses
    • 3.Installation and Booting: From the Moment You Power On
    • 4.Filesystem Structure and File Types: Everything Is a File
    • 5.Week 1 Comprehensive Review: Time to See Through the Concepts
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
    • 1.Networking Basics: The OSI 7 Layers and IP Address / Subnet Calculation
    • 2.Network Configuration: Setting Up Interfaces, Gateways, and DNS by Hand
    • 3.Network Diagnostics: Commands That Narrow Down the Problem, from ping to tcpdump
    • 4.Network Devices, Protocols, and Redundancy: Infrastructure Threaded Together by Layers
    • 5.Week 8 Comprehensive Review: Threading Networking Together on a Single Layer Map
  • Week 9
  • Week 10
  • Week 11
  • Week 12
  • Week 13
  • Week 14
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← Linux Master 1/Week 8/Day 5

Based on the Linux Master 1 exam syllabus·Report an error

Linux Master 1· AssociateWeek 8 · Day 5~23 min read

Day 5 - Week 8 Comprehensive Review: Threading Networking Together on a Single Layer Map

📌 Key Takeaways

  • Everything in networking boils down to "at which layer, using which address, via which path, under which name" communication happens.
  • The layer is your diagnostic navigation — if the MAC won't resolve, arp (2); if it's unreachable, ping (3); if a port isn't open, ss (4); if a name won't resolve, dig (7).
  • Subnet in 3 steps: hosts = 2^(host bits) − 2, network address = the largest multiple of the block size that is at most the IP, broadcast = the last address of that block.
  • Two boundary traps: 169.254 is not a private IP but APIPA (DHCP failure), and the 172 private range is only 16-31.
  • The distinction temporary (ip, ifconfig, editing resolv.conf directly) vs permanent (ifcfg, nmcli con mod) is the biggest exam point of this week.

The Layer Model — Devices, Protocols, and Tools in One Table

LayerAddress/unitDeviceProtocolsDiagnostic tools
7 ApplicationDataL7 switchHTTP, DNS, DHCP, SSHdig, nslookup
4 TransportPort/segmentL4 switchTCP, UDPss, netstat
3 NetworkIP/packetRouterIP, ICMPping, traceroute
2 Data LinkMAC/frameSwitch, bridgeARP, Ethernetarp, ip neigh
1 PhysicalBitHub, repeater—(check cables and links)

Points to lock into memory:

  • IP, router, ping = Layer 3; MAC, switch, ARP = Layer 2; port, TCP/UDP, ss = Layer 4
  • A hub (1) handles only signals, a switch (2) learns MACs, a router (3) does IP routing and separates broadcasts
  • DNS and DHCP are Layer 7 application protocols

If you first ask "which layer is this problem at?", the inspection tool is chosen automatically. If the MAC won't resolve, arp (2); if it's unreachable, ping (3); if a port isn't open, ss (4); if a name won't resolve, dig (7). The layer is the navigation for diagnosis.

IP Classes, Private Ranges, and CIDR Review

ClassFirst octetDefault maskPrivate range
A1~126/8 (255.0.0.0)10.0.0.0/8
B128~191/16 (255.255.0.0)172.16.0.0/12
C192~223/24 (255.255.255.0)192.168.0.0/16

Points to lock into memory:

  • 127.x = loopback (localhost), 169.254.x = APIPA (DHCP failure signal)
  • The 172 private range is only 16-31, while all of 192.168 is private
  • Mask octet sequence: 128 · 192 · 224 · 240 · 248 · 252 · 254 · 255

⚠️ Trap review: 169.254.x.x is not a private IP but APIPA (link-local) and is a signal that "no DHCP server was found". 172.32.x.x is outside the private range (16-31) and is a public IP. These two boundaries easily become traps.

Subnet Calculation — 3 Steps by Hand

CalculationFormula
Usable hosts2^(host bits) − 2
Network addressLargest multiple of the block size that is at most the IP
Broadcast addressNext network address − 1 (the last address of the block)
# Example: analyzing 192.168.1.200/26
# /26 → 6 host bits → 2^6 - 2 = 62 hosts, block size 64
# Among multiples of 64 (0,64,128,192), the largest at most 200 = 192
Network address  : 192.168.1.192
Usable range     : 192.168.1.193 ~ 192.168.1.254
Broadcast        : 192.168.1.255

Key distinction: the −2 in the host count is because the network address (all host bits 0) and the broadcast (all 1s) cannot be given to hosts. /30 gives 2 hosts (router-to-router links), /29 gives 6, /28 gives 14, /26 gives 62. You should be able to answer these values instantly.

Temporary vs Permanent Configuration — Command Lifetime Review

TaskTemporary (lost on reboot)Permanent
Assign IPip addr add / ifconfigifcfg-eth0 / nmcli con mod
Gatewayip route add defaultGATEWAY in ifcfg
DNSEditing resolv.conf directly (risk of being overwritten)DNS1/2 in ifcfg / nmcli ... ipv4.dns

⚠️ Trap review: in a NetworkManager environment, a direct edit to resolv.conf disappears on reboot or restart. With ONBOOT=no, the interface does not come up after boot even if the settings are right. You must distinguish "temporary is ip/ifconfig, permanent is ifcfg/nmcli".

Diagnostic Flow — From Near to Far

ping 127.0.0.1     # 1. Is the TCP/IP stack OK?
ping 192.168.1.1   # 2. Gateway (L2/L3)?
ping 8.8.8.8       # 3. External IP (routing/firewall)?
ping google.com    # 4. DNS?
ss -tlnp           # 5. Local service ports?

The step at which it first gets blocked is the location of the problem. If 3 works and 4 fails, it is DNS; if 2 works and 3 fails, it is routing/firewall beyond the gateway. "IP works but the domain doesn't" = a definitive DNS signal.

Protocols and Ports Quick Review

PortProtocolPortProtocol
22SSH (encrypted)53DNS (UDP/TCP)
23Telnet (plaintext)67/68DHCP
25SMTP80HTTP
21FTP443HTTPS

The first questions of real-world troubleshooting are exactly this week's content — "Is the IP right (Day 1-2), can we reach the gateway (Day 2-3), does DNS resolve (Day 2-3), which layer's device is the problem (Day 4)". Network outages can usually be narrowed down to a cause by checking these four in turn. This week is the foundation of practical networking, beyond just the exam.

📖 Glossary

  • Layer: a stage into which communication responsibilities are divided. It determines both the location of the problem and the inspection tool.
  • Collision domain / broadcast domain: the scope within which frames can collide (divided by a switch) / the scope over which a broadcast spreads (divided only by a router or VLAN).
  • Block size: the interval at which subnets are cut for that CIDR. 64 for /26, 32 for /27, 16 for /28.
  • −2 rule: subtracting the network address and broadcast address when counting hosts. Neither can be given to a host.
  • Mask octet sequence: 128 · 192 · 224 · 240 · 248 · 252 · 254 · 255. Values filled from the left according to the number of 1s.
  • APIPA (169.254.x.x): an address a host assigns itself when DHCP fails. It is not a private IP.
  • Temporary / permanent configuration: commands that vanish on reboot (ip, ifconfig) / settings that remain in files (ifcfg, nmcli).
  • ONBOOT: the ifcfg entry that decides whether to bring the interface up automatically at boot. If no, the network doesn't come up.
  • DORA: the 4 steps of DHCP: Discover → Offer → Request → Acknowledge.
  • Scope of ARP: only within the same L2 network. When going to another network, it uses the gateway's MAC.
  • active-backup / LACP: a redundancy mode that fails over when something breaks / a mode that combines multiple links to increase bandwidth.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

In the OSI 7 layers, which is correct about the layer where a router operates and its core function?

Question 2

How many usable hosts are there in the 192.168.10.0/27 network?

Question 3

Which gives the correct network address and broadcast address of the network that IP address 10.1.1.100/26 belongs to?

Question 4

Which of the following is NOT a private IP address?

Question 5

Which is the correct way to configure a static IP that persists after reboot on a Red Hat-family system?

Question 6

Which command shows the TCP ports currently in LISTEN together with the processes holding them?

Question 7

ping 8.8.8.8 succeeds but ping google.com fails. Which gives the correct cause and tool to check?

Question 8

Which Layer 1 device forwards received frames to all ports and shares a collision domain?

Question 9

Which gives the correct DHCP address assignment process (DORA) and the ports used?

Question 10

Which redundancy bonding mode combines two NICs, normally uses only one, and automatically switches to the other NIC on failure?

Question 11

Which gives the protocol that finds the MAC corresponding to an IP when hosts on the same subnet communicate, and its scope of operation?

Question 12

Which statement about a CIDR /29 network is correct?

PreviousNetwork Devices, Protocols, and Redundancy: Infrastructure Threaded Together by LayersWeek 8 · Day 4Next DNS and BIND: The Internet's Phone Book That Turns Names into AddressesWeek 9 · Day 1

Official references

  • Linux Master 1 official exam syllabus(opens in a new tab)

On this page

  • Key Takeaways
  • The Layer Model — Devices, Protocols, and Tools in One Table
  • IP Classes, Private Ranges, and CIDR Review
  • Subnet Calculation — 3 Steps by Hand
  • Temporary vs Permanent Configuration — Command Lifetime Review
  • Diagnostic Flow — From Near to Far
  • Protocols and Ports Quick Review
  • Glossary
  • Practice Questions