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
  • Week 9
  • Week 10
  • Week 11
  • Week 12
  • Week 13
  • Week 14
    • 1.Primary Subject 1 Mock Exam: Weak Points in Understanding Practical Linux
    • 2.Primary Subject 2 Mock Exam: Weak Points in Linux System Administration
    • 3.Primary Subject 3 Mock Exam: Weak Points in Using Networks and Services
    • 4.Secondary Practical Exam Mock: Short-Answer and Hands-On Drills
    • 5.Final Wrong-Answer and Flashcard Roundup and Exam-Day Strategy (Wrapping Up the 70 Days)
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 14/Day 3

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

Linux Master 1· AssociateWeek 14 · Day 3~23 min read

Day 3 - Primary Subject 3 Mock Exam: Weak Points in Using Networks and Services

📌 Key Points

  • The last primary subject, "Using Networks and Services," mixes concepts + services + memorization, so it has the widest scope.
  • The core strategy is to memorize the "service = daemon = port = configuration file" four-piece set together.
  • The port table is the heart of this subject — SSH 22, SMTP 25, DNS 53, HTTP 80, HTTPS 443. FTP is control 21 / data 20.
  • DNS records: A (name→IPv4), MX (mail), CNAME (alias), PTR (IP→name, reverse), SOA (zone authority).
  • Mail is split into sending (SMTP) and receiving (POP3/IMAP). POP3 downloads and deletes; IMAP keeps mail on the server and synchronizes.
  • The maximum first octet of Class A is 126, not 127 (127 is reserved for loopback). The private ranges are 10/8, 172.16/12, 192.168/16.

Weak Point 1: Networking Basics — OSI and TCP/IP

  • The mapping between the 7 OSI layers and the 4 TCP/IP layers, and the devices and protocols of each layer, are asked.
OSI LayerExamplesDevices
7 ApplicationHTTP, FTP, DNS-
4 TransportTCP, UDP-
3 NetworkIP, ICMPRouter, L3 switch
2 Data LinkMAC, EthernetSwitch, bridge
1 PhysicalCable, bitsHub, repeater
  • Let's also review subnet calculation. /24 = 255.255.255.0 = 256 addresses (254 usable).
  • The prefix bit count is the network portion, and the rest is the host portion.
CIDRSubnet MaskHosts (usable)
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430

TCP vs UDP: TCP is connection-oriented and reliable (3-way handshake), while UDP is connectionless and fast (DNS lookups, streaming). The same service can use both (DNS uses 53/UDP and 53/TCP).

Weak Point 2: Port Number Roundup

  • The port memorization table is the heart of this subject. Memorize it in full.
ServicePortProtocol
FTP20 (data)/21 (control)TCP
SSH22TCP
Telnet23TCP
SMTP25TCP
DNS53UDP/TCP
DHCP67/68UDP
HTTP80TCP
POP3110TCP
NTP123UDP
IMAP143TCP
HTTPS443TCP
SMTPS465TCP
Syslog514UDP

⚠️ FTP trap: Control is 21 and data is 20 (active mode). In passive mode, the data port changes dynamically. If the question just asks for the "FTP port," the answer is often 21.

Weak Point 3: DNS — BIND and Records

  • The DNS server is BIND, and its configuration is split between /etc/named.conf and zone files.
RecordMeaning
AHostname → IPv4
AAAAHostname → IPv6
MXMail server (priority)
CNAMEAlias (alias → canonical name)
NSDesignates the name server
PTRIP → hostname (reverse)
SOAZone authority start and refresh information
  • The 3 client configuration files: /etc/resolv.conf (specifies name servers), /etc/hosts (local static mappings), /etc/nsswitch.conf (lookup order).

Lookup tools: nslookup, dig (detailed), host (simple). Reverse lookup uses the PTR record, for IP→name conversion.

Weak Point 4: Web (Apache) and Mail

  • Memorize the key directives of the Apache (httpd) configuration.
DirectiveMeaning
ServerNameServer domain
DocumentRootDocument root path
ListenListening port
<VirtualHost>Virtual host
DirectoryIndexDefault document (index.html)
  • Mail is split into sending (SMTP) and receiving (POP3/IMAP).
CategoryProtocolRole
MTASMTPMail transfer (sendmail/postfix)
MDA-Delivery to the mailbox (procmail)
MUAPOP3/IMAPUser reading (client)

POP3 vs IMAP: POP3 downloads and deletes from the server (stored locally), while IMAP keeps mail on the server and synchronizes (multiple devices). IMAP is better for multiple devices.

Weak Point 5: FTP and SSH

  • vsftpd is the representative FTP server, and telling the modes apart is the key.
ModeConnection DirectionFeatures
ActiveServer→client dataPossible client firewall problems
PassiveClient→server dataFirewall-friendly
  • SSH is the standard for secure remote access.
ItemDetails
Port22
Daemonsshd
Configuration/etc/ssh/sshd_config
Key authenticationssh-keygen, authorized_keys
File transferscp, sftp

⚠️ Security settings: In sshd_config, the key points are PermitRootLogin no (block direct root login), changing Port, and recommending key authentication. Telnet (23, plaintext) should be replaced with SSH.

Weak Point 6: Network Commands and Security

  • Let's summarize the diagnostic and configuration commands.
CommandRole
ip/ifconfigConfigure and check interfaces
pingCheck connectivity (ICMP)
tracerouteTrace the route
netstat/ssConnection and port status
nslookup/digDNS lookup
route/ip routeRouting table
arpMAC-IP mapping

Status check in one line: View open ports and LISTEN state with ss -tlnp (or netstat -tlnp). You can see at a glance which process is using which port.

Weak Point 7: DHCP and NTP

  • Automatic IP assignment and time synchronization are also within the exam scope.
ServicePortConfiguration FileRole
DHCP67 (server)/68 (client)/etc/dhcp/dhcpd.confAutomatic IP assignment
NTP123/etc/ntp.conf (chrony uses chrony.conf)Time synchronization
  • The keywords are DHCP's IP lease concept and NTP's stratum structure.

The 4 DHCP steps (DORA): Discover → Offer → Request → Ack. The flow in which the client finds a server by broadcast and is leased an IP.

Weak Point 8: Network Configuration Files and Bonding

  • Let's summarize the structure of interface configuration files on the RHEL family.
FilePurpose
ifcfg-eth0Per-interface IP and gateway
/etc/sysconfig/networkGlobal network settings
/etc/hostnameHostname
/etc/hostsStatic name resolution
  • Key items: BOOTPROTO (static/dhcp), IPADDR, NETMASK, GATEWAY, ONBOOT (activate at boot), DNS1.

ONBOOT trap: With ONBOOT=no, the interface does not come up at boot. Even if you set every IP value correctly, the network won't work if ONBOOT is no — that's the trap.

Weak Point 9: Security — Blocking Intrusions and Responding to Scans

  • Network security concepts are also included in Subject 3.
ConceptDescription
FirewallControl traffic with iptables/firewalld
TCP Wrapperhosts.allow/hosts.deny access control
Port scanProbing for open ports with tools like nmap (attack reconnaissance)
IDS/IPSIntrusion detection/prevention systems

Security in one line: Plaintext protocols (Telnet 23, FTP 21) send passwords as-is, so they are vulnerable to eavesdropping. The principle is to replace them with encrypted ones: SSH (22), SFTP, HTTPS (443).

Weak Point 10: The IP Addressing Scheme and Special Addresses

  • IPv4 classes and private IP ranges are simple memorization but easy to confuse.
ClassRange (first octet)Default MaskUse
A1-126/8Large scale
B128-191/16Medium scale
C192-223/24Small scale
D224-239-Multicast
E240-255-Research/reserved
  • Memorize the private IP ranges too — Class A 10.0.0.0/8, Class B 172.16.0.0/12, Class C 192.168.0.0/16.
Special AddressMeaning
127.0.0.1Loopback (itself)
0.0.0.0All addresses / unspecified
255.255.255.255Limited broadcast

127 vs 126: Class A is 1-126, and 127 is excluded because it is reserved for loopback. The answer to "What is the maximum first octet of Class A?" is 126, not 127.

Weak Point 11: IPv6 and Routing Basics

  • IPv6 is 128 bits, written as 8 groups of hexadecimal (separated by colons).
  • A run of consecutive zero groups can be abbreviated with :: once.
CategoryIPv4IPv6
Bits32128
NotationDotted decimalColon hexadecimal
Address exhaustionA problemPractically unlimited
Loopback127.0.0.1::1
  • Routing is split into static (route add/ip route add) and dynamic (RIP, OSPF, BGP).
  • The default gateway is the exit to which packets are sent when the destination is not in the routing table.

The :: rule: In IPv6, :: (abbreviation of consecutive zeros) can be used only once in an address. Using it twice makes it ambiguous how many zeros each covers, so it is invalid.

Check yourself with the mock exam below.

📖 Glossary

  • OSI 7 layers : A standard model that divides network communication by role. Routers operate at Layer 3 and switches at Layer 2.
  • CIDR : A notation that expresses an address range by the number of bits in the network portion, like /24.
  • TCP / UDP : A transport method that establishes a connection and guarantees ordering and retransmission / a transport method that sends quickly without a connection.
  • Active / passive mode : In FTP, the method where the server opens the data connection to the client / the method where the client opens it to the server (firewall-friendly).
  • MTA / MDA / MUA : The server that transfers mail / the program that delivers to the mailbox / the client the user reads with.
  • POP3 / IMAP : A method that downloads mail and deletes it from the server / a method that keeps mail on the server and synchronizes with multiple devices.
  • PTR record : A DNS record for reverse lookup that converts an IP to a name.
  • DORA : The 4 steps by which DHCP leases an address — Discover, Offer, Request, Ack.
  • stratum : A tier number in NTP indicating how many steps away you are from the reference clock.
  • ONBOOT : A setting that decides whether the interface is brought up automatically at boot. If no, the network doesn't work even if the IP is set correctly.
  • Private IP : Address ranges for internal use that don't go directly onto the Internet (10/8, 172.16/12, 192.168/16).
  • Loopback (127.0.0.1 / ::1) : The address that points to itself. This is why 127 is excluded from the Class A range.
  • :: abbreviation : A notation in IPv6 that omits a run of consecutive zero groups. It can be used only once in an address.
  • Static routing / dynamic routing : The method where the administrator enters routes manually / the method of learning automatically via RIP, OSPF, and BGP.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Among the 7 OSI layers, which layer is where routers operate and the IP and ICMP protocols belong?

Question 2

Which service separates the control connection and the data connection and uses port 21 as the control port?

Question 3

Which DNS record is used for reverse lookup, converting an IP address to a hostname?

Question 4

Which protocol and port does a mail server's role of transferring mail to another server (MTA) use?

Question 5

Which receiving protocol is suited to synchronizing and using the same mailbox from multiple devices?

Question 6

In a /24 subnet (255.255.255.0), how many IPs can actually be assigned to hosts?

Question 7

Which setting in /etc/ssh/sshd_config blocks direct root login for SSH server security?

Question 8

Which configuration file specifies the name servers a DNS client queries?

Question 9

Which is an appropriate command to check the ports in the LISTEN state on the current system and their processes?

Question 10

Which directive in the Apache (httpd) configuration specifies the top-level directory path of web documents?

PreviousPrimary Subject 2 Mock Exam: Weak Points in Linux System AdministrationWeek 14 · Day 2Next Secondary Practical Exam Mock: Short-Answer and Hands-On DrillsWeek 14 · Day 4

Official references

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

On this page

  • Key Points
  • Weak Point 1: Networking Basics — OSI and TCP/IP
  • Weak Point 2: Port Number Roundup
  • Weak Point 3: DNS — BIND and Records
  • Weak Point 4: Web (Apache) and Mail
  • Weak Point 5: FTP and SSH
  • Weak Point 6: Network Commands and Security
  • Weak Point 7: DHCP and NTP
  • Weak Point 8: Network Configuration Files and Bonding
  • Weak Point 9: Security — Blocking Intrusions and Responding to Scans
  • Weak Point 10: The IP Addressing Scheme and Special Addresses
  • Weak Point 11: IPv6 and Routing Basics
  • Glossary
  • Practice Questions