LPIC-1 Essential System Services and Networking Practice Question
On a Debian-based system using ifupdown, which file should be edited to configure a static IP address for an interface?
⚠ Common exam trap
It's easy for candidates to confuse the default network configuration file for Debian-based systems with those used by other distributions (Red Hat) or newer abstraction layers (Netplan, systemd-networkd), leading them to pick a file that is technically valid but not used by the ifupdown tool specified in the question.
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
✓
/etc/network/interfaces
On Debian-based systems using the traditional ifupdown suite, the file `/etc/network/interfaces` is the central configuration file for defining network interfaces, including static IP addresses. This file is parsed by the `ifup` and `ifdown` commands to bring interfaces up or down with the specified settings, such as `address`, `netmask`, and `gateway`.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
/etc/systemd/network/50-static.network
Why it's wrong here
This is used by systemd-networkd.
- ✓
/etc/network/interfaces
Why this is correct
This is the main configuration file for ifupdown on Debian.
- ✗
/etc/netplan/01-netcfg.yaml
Why it's wrong here
This is for Ubuntu's Netplan configuration.
- ✗
/etc/sysconfig/network-scripts/ifcfg-eth0
Why it's wrong here
This is used on Red Hat-based systems.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.