LFCS Networking Practice Question
A server has two network interfaces: eth0 (public IP 203.0.113.10/24) and eth1 (private IP 10.0.0.1/8). The default gateway is 203.0.113.1. The admin wants to ensure that traffic to the private subnet 10.0.0.0/8 goes via eth1. Which command correctly adds a static route?
⚠ Common exam trap
Many candidates confuse the network address with a host address (as in Option A) or incorrectly assume a gateway is always required (as in Option B), forgetting that directly connected networks only need a device specification.
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
✓
ip route add 10.0.0.0/8 dev eth1
It adds a static route for the 10.0.0.0/8 network directly via the eth1 interface, which is the private interface with IP 10.0.0.1/8. The `ip route add` command with `dev eth1` specifies that traffic destined for the 10.0.0.0/8 subnet should be sent out through eth1, without needing a next-hop gateway since eth1 is directly connected to that subnet.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
ip route add 10.0.0.1/8 dev eth1
Why it's wrong here
This adds a host route, not network.
- ✗
ip route add 10.0.0.0/8 via 10.0.0.1 dev eth0
Why it's wrong here
Gateway is on wrong subnet, and dev should be eth1.
- ✓
ip route add 10.0.0.0/8 dev eth1
Why this is correct
Correct: adds network route via device eth1.
- ✗
route add -net 10.0.0.0/8 eth1
Why it's wrong here
The route command expects different syntax; this is deprecated and incorrect.
Visual reference
Go deeper
Related to this question
About these practice questions
This LFCS question is part of Courseiva's 507-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.