LFCS Networking Practice Question
An administrator needs to permanently set a static IPv4 address 192.168.1.100/24 on interface eth0 using NetworkManager. Which command achieves this?
⚠ Common exam trap
The trap here is that candidates often forget to set `ipv4.method manual` when configuring a static IP, assuming that providing an address alone is sufficient, or they mistakenly use `nmcli device modify` for a permanent change instead of `nmcli connection modify`.
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
✓
nmcli connection modify eth0 ipv4.addresses 192.168.1.100/24 ipv4.method manual
`nmcli connection modify` is the proper command to permanently change a NetworkManager connection profile, and setting both `ipv4.addresses` and `ipv4.method manual` ensures the static IP is applied and the interface does not fall back to DHCP. Without setting the method to `manual`, NetworkManager may ignore the static address or override it with DHCP.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
nmcli connection modify eth0 ipv4.addresses 192.168.1.100/24
Why it's wrong here
Missing setting ipv4.method to manual.
- ✓
nmcli connection modify eth0 ipv4.addresses 192.168.1.100/24 ipv4.method manual
Why this is correct
Correct: sets both address and method, making it persistent.
- ✗
nmcli device modify eth0 ipv4.addresses 192.168.1.100/24
Why it's wrong here
nmcli device modify changes runtime settings only, not persistent.
- ✗
nmcli connection modify 'System eth0' ipv4.addresses 192.168.1.100/24 ipv4.method manual
Why it's wrong here
The connection name may not be 'System eth0'; it's typically 'eth0' or the interface name.
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.