LFCS Networking Practice Question
Exhibit
Refer to the exhibit.
# /etc/network/interfaces on Debian:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1After configuring the /etc/network/interfaces file as shown, the administrator runs 'ifup eth0'. Which IP address will be assigned to eth0?
⚠ Common exam trap
Watch out — candidates often assume a missing 'dhcp' keyword defaults to DHCP, but the explicit 'static' keyword overrides any implicit behavior, and the 'address' line directly assigns the IP.
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
✓
192.168.1.100
The configuration in /etc/network/interfaces specifies a static IP address of 192.168.1.100 with the 'address' directive. When 'ifup eth0' is executed, it reads this file and assigns the configured static IP to the interface, ignoring any DHCP settings.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
192.168.1.1
Why it's wrong here
That's the gateway IP.
- ✓
192.168.1.100
Why this is correct
Static IP as configured.
- ✗
No IP assigned
Why it's wrong here
The interface will get the static IP.
- ✗
An IP from DHCP
Why it's wrong here
The interface is set to static, not dhcp.
Visual reference
Go deeper
Related to this question
About these practice questions
One of 507 original LFCS practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.