LPIC-2 Advanced Networking Configuration Practice Question
A network administrator is configuring source-based routing. They have created a new routing table and added a default route. They then run: ip rule add to 10.0.0.0/24 lookup 100. Traffic from 10.0.0.0/24 still uses the main table. What is the problem?
⚠ Common exam trap
Candidates often confuse the `to` and `from` keywords in `ip rule`, mistakenly thinking `to` refers to the source subnet when it actually refers to the destination, leading them to select a rule that never matches the intended traffic.
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
✓
The rule uses 'to' instead of 'from' to match the source subnet.
The `ip rule add to 10.0.0.0/24 lookup 100` command uses the `to` keyword, which matches the destination address, not the source address. For source-based routing, you must use the `from` keyword to match the source subnet. Since the rule matches destination 10.0.0.0/24 instead of source, traffic originating from 10.0.0.0/24 is not matched by this rule and continues to use the main routing table.
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 rule uses 'to' instead of 'from' to match the source subnet.
Why this is correct
For source-based routing, the rule should specify 'from' to match the source address. Using 'to' matches the destination.
- ✗
The rule is not persistent.
Why it's wrong here
Persistence affects reboot behavior, not immediate application.
- ✗
The rule priority is too high.
Why it's wrong here
Priority is optional and not the cause; even without explicit priority, the rule should apply if it matches.
- ✗
The routing table 100 does not have a default route.
Why it's wrong here
The table has a default route, so that is not the issue.
Visual reference
Go deeper
Related to this question
About these practice questions
One of 507 original LPIC-2 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 LPIC-2 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-2 exam.