Question 430 of 513
NetworkingmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is `net.ipv4.ip_forward = 1`. This sysctl parameter must be enabled because it instructs the Linux kernel to forward IP packets between network interfaces—in this case, between eth0 on the 10.0.1.0/24 subnet and eth1 on the 10.0.2.0/24 subnet—allowing the server to act as a router. Without this setting, the kernel drops any packet not destined for the local system, effectively isolating the two networks. On the Linux Foundation Certified System Administrator LFCS exam, this concept tests your understanding of basic routing and kernel parameters; a common trap is confusing this with firewall rules or interface-specific settings. Remember that enabling IP forwarding is a global kernel toggle, not a per-interface configuration. A simple memory tip: think of the “4” in `ipv4` as the number of octets in an IP address, and “forward” as the action needed to pass traffic between subnets—if you want packets to move, you must flip that switch to 1.

LFCS Networking Practice Question

This LFCS practice question tests your understanding of networking. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A server needs to forward packets between two networks: 10.0.1.0/24 on eth0 and 10.0.2.0/24 on eth1. Which sysctl parameter must be enabled?

Question 1mediummultiple choice
Full question →

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

net.ipv4.ip_forward = 1

Option B is correct because enabling `net.ipv4.ip_forward = 1` allows the Linux kernel to forward IP packets between network interfaces, which is required for a server to route traffic between the 10.0.1.0/24 and 10.0.2.0/24 subnets. Without this parameter, the kernel drops any packet not destined for the local system, preventing inter-network communication.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • net.ipv4.conf.all.rp_filter = 1

    Why it's wrong here

    This enables reverse path filtering, not forwarding.

  • net.ipv4.ip_forward = 1

    Why this is correct

    This enables IP forwarding between interfaces.

    Related concept

    Read the scenario before looking for a memorised answer.

  • net.ipv4.conf.all.accept_source_route = 1

    Why it's wrong here

    This enables acceptance of source-routed packets, not forwarding.

  • net.ipv4.conf.all.send_redirects = 0

    Why it's wrong here

    This disables ICMP redirects, not forwarding.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse security-related sysctl parameters (like rp_filter or send_redirects) with the actual forwarding control, or mistakenly think that enabling source route acceptance is needed for routing between subnets.

Detailed technical explanation

How to think about this question

Under the hood, the `ip_forward` sysctl controls the kernel's `ip_forward` parameter in the IPv4 stack; when set to 1, the kernel's routing table is consulted for each incoming packet, and if a route exists, the packet is forwarded to the appropriate interface. A subtle behavior is that `ip_forward` must be enabled even if using iptables NAT or routing daemons like FRR, and it can be set persistently via `/etc/sysctl.conf` or `sysctl -w net.ipv4.ip_forward=1`. In real-world scenarios, forgetting to enable this parameter is a common cause of routing failures in multi-homed servers or virtual routers.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A network engineer segments a warehouse floor into three subnets: 20 scanners, 5 printers, and 2 management hosts. Picking the wrong mask wastes addresses or leaves too few usable hosts. Exam questions test whether you can apply CIDR notation, calculate block size, and identify the correct usable-host range for a given prefix.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related LFCS practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free LFCS practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this LFCS question test?

Networking — This question tests Networking — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: net.ipv4.ip_forward = 1 — Option B is correct because enabling `net.ipv4.ip_forward = 1` allows the Linux kernel to forward IP packets between network interfaces, which is required for a server to route traffic between the 10.0.1.0/24 and 10.0.2.0/24 subnets. Without this parameter, the kernel drops any packet not destined for the local system, preventing inter-network communication.

What should I do if I get this LFCS question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on LFCS

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Which THREE conditions must be met for a Linux system to function as a router between two networks?

hard
  • A.Each interface has an IP address in the respective subnet
  • B.IP forwarding is enabled (net.ipv4.ip_forward = 1)
  • C.Both interfaces have the same MAC address
  • D.iptables rules allow forwarding (FORWARD chain policy or rules)
  • E.The system is configured as the default gateway for both networks

Why A: Option A is correct because each interface must have an IP address in its respective subnet for the Linux system to receive packets from that network and forward them to the other. Without an IP address in the subnet, the interface cannot participate in ARP resolution or routing decisions for that network.

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.