Courseiva
Advanced Networking ConfigurationhardMultiple ChoiceObjective-mapped

LPIC-2 Advanced Networking Configuration Practice Question

A Linux router running multiple routing tables is misconfigured. The administrator wants to add a policy routing rule that sends all traffic from subnet 10.10.0.0/16 to routing table 200. Which command should be used?

⚠ Common exam trap

Test-takers frequently confuse adding a route to a table (ip route add ... table 200) with creating a policy rule that directs traffic to that table (ip rule add ... table 200), leading them to pick option D instead of B.

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 rule add from 10.10.0.0/16 table 200

The `ip rule` command is used to add policy routing rules in Linux, which direct packets to specific routing tables based on criteria like source address. The `from` parameter specifies the source subnet (10.10.0.0/16), and `table 200` directs matching traffic to routing table 200, enabling policy-based routing beyond the default 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.

  • route add -net 10.10.0.0/16 table 200

    Why it's wrong here

    'route' command does not support multiple tables.

  • ip rule add from 10.10.0.0/16 table 200

    Why this is correct

    Creates a routing policy rule based on source address.

  • iptables -A FORWARD -s 10.10.0.0/16 -j table 200

    Why it's wrong here

    iptables cannot add routing table entries.

  • ip route add 10.10.0.0/16 dev eth0 table 200

    Why it's wrong here

    Adds a route to table 200, not a rule to select that table.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

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 →

How Courseiva writes practice questions · Editorial policy

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.