LFCS Networking Practice Question
Exhibit
DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes HWADDR=52:54:00:12:34:56
Refer to the exhibit. The /etc/sysconfig/network-scripts/ifcfg-eth0 file contains the above content. After reboot, eth0 still does not obtain an IP via DHCP. What is the most likely missing configuration?
⚠ Common exam trap
The trap here is that candidates often focus on DHCP-specific parameters like DNS or gateway, overlooking that NetworkManager requires the `TYPE` directive to recognize the interface as an Ethernet device, without which the DHCP configuration is never applied.
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
✓
TYPE=Ethernet is missing
The `ifcfg-eth0` file is missing the `TYPE=Ethernet` directive. In RHEL/CentOS 7 and later, NetworkManager requires the `TYPE` parameter to correctly identify and manage the interface type. Without it, NetworkManager may ignore the file or fail to apply DHCP settings, even if `BOOTPROTO=dhcp` is present.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The MTU is not specified
Why it's wrong here
MTU not specified defaults to 1500, which is fine.
- ✗
DNS1 is not set
Why it's wrong here
DNS can be provided by DHCP; not required.
- ✓
TYPE=Ethernet is missing
Why this is correct
Without TYPE=Ethernet, the network service may not process the file correctly.
- ✗
The gateway is not defined
Why it's wrong here
DHCP provides the gateway; not required in the file.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every LFCS question from scratch — 507 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 LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.