Drag steps to the numbered slots on the right, or tap a step then tap a slot.
LPIC-1 GNU and Unix Commands Practice Question
Arrange the steps to configure a static IP address on a Linux system using the command line.
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
Step 1: Open the network configuration file (e.g., /etc/network/interfaces). Step 2: Configure the interface with static IP, netmask, gateway, and DNS. Step 3: Save and exit the file. Step 4: Restart the networking service.
Static IP configuration requires editing the appropriate config file, then restarting networking to apply changes.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Step 1: Open the network configuration file (e.g., /etc/network/interfaces). Step 2: Configure the interface with static IP, netmask, gateway, and DNS. Step 3: Save and exit the file. Step 4: Restart the networking service.
Why this is correct
This is the correct order because you must first open the config file, then set the parameters, save changes, and finally restart networking to apply them.
- ✗
Step 1: Restart the networking service. Step 2: Open the network configuration file. Step 3: Configure the interface with static IP, netmask, gateway, and DNS. Step 4: Save and exit the file.
Why it's wrong here
This is incorrect because restarting the service before making changes will not apply new settings, and the changes would only take effect after a subsequent restart.
- ✗
Step 1: Open the network configuration file. Step 2: Save and exit the file. Step 3: Configure the interface with static IP, netmask, gateway, and DNS. Step 4: Restart the networking service.
Why it's wrong here
This is incorrect because saving the file before configuring the interface leaves the settings unchanged; the configuration must be entered before saving.
- ✗
Step 1: Configure the interface with static IP, netmask, gateway, and DNS. Step 2: Restart the networking service. Step 3: Open the network configuration file. Step 4: Save and exit the file.
Why it's wrong here
This is incorrect because configuring and restarting without editing the config file will not persist the settings, and opening the file after restart is pointless.
Go deeper
Related to this question
About these practice questions
One of 527 original LPIC-1 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 →
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.