LPIC-1 Essential System Services and Networking Practice Question
Which THREE steps are required to configure a static IP address on a modern Linux system using systemd-networkd?
⚠ Common exam trap
Watch out — candidates often confuse temporary commands like 'ip addr add' with persistent configuration, or assume editing /etc/hosts is part of IP assignment, when systemd-networkd requires dedicated .network files and a service restart to apply static IPs permanently.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Create a .network file in /etc/systemd/network/
Systemd-networkd uses .network files in /etc/systemd/network/ to define static IP configurations. These files contain sections like [Match] and [Network] to specify the interface and address details, replacing traditional ifcfg scripts or manual ip commands.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Edit /etc/hosts to map IP to hostname
Why it's wrong here
Optional, not required for static IP.
- ✓
Create a .network file in /etc/systemd/network/
Why this is correct
Required for static configuration.
- ✓
Edit /etc/resolv.conf to set DNS servers
Why this is correct
Needed for DNS resolution.
- ✗
Run 'ip addr add <IP> dev eth0'
Why it's wrong here
Temporary, not persistent.
- ✓
Run 'systemctl restart systemd-networkd'
Why this is correct
Applies the changes.
Go deeper
Related to this question
About these practice questions
This LPIC-1 question is part of Courseiva's 527-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.