nerdexam
CompTIA

XK0-005 · Question #1004960

A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. In addition, the…

The correct answer is A. echo "1" > /proc/sys/net/ipv4/ip_forward. To make a Linux system fully functional as a router, the administrator must enable IP forwarding to allow the system to route packets between its network interfaces.

System Management

Question

A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. In addition, the output of the iptables -L command appears to contain a complete firewall configuration. Which of the following commands does the administrator need to issue for the router to be fully functional?

Options

  • Aecho "1" > /proc/sys/net/ipv4/ip_forward
  • Becho "0" > /proc/sys/net/ipv4/tcp_abort_on_overflow
  • Cecho "0" > /proc/sys/net/ipv4/max_connections
  • Decho "1" > /proc/sys/net/ipv4/ip_default_ttl

How the community answered

(39 responses)
  • A
    95% (37)
  • B
    3% (1)
  • C
    3% (1)

Why each option

To make a Linux system fully functional as a router, the administrator must enable IP forwarding to allow the system to route packets between its network interfaces.

Aecho "1" > /proc/sys/net/ipv4/ip_forwardCorrect

This command sets the `/proc/sys/net/ipv4/ip_forward` kernel parameter to '1', which enables IP forwarding. Enabling IP forwarding is essential for a Linux system to act as a router, allowing it to forward incoming network packets from one interface to another.

Becho "0" > /proc/sys/net/ipv4/tcp_abort_on_overflow

The `tcp_abort_on_overflow` parameter controls TCP connection behavior when the listen queue overflows, which is not directly related to enabling the fundamental IP routing functionality.

Cecho "0" > /proc/sys/net/ipv4/max_connections

There is no standard kernel parameter named `max_connections` in `/proc/sys/net/ipv4/` that limits the total number of connections in this manner, and setting an unknown parameter to '0' would not enable routing.

Decho "1" > /proc/sys/net/ipv4/ip_default_ttl

The `ip_default_ttl` parameter sets the default Time-To-Live for outgoing IP packets, which is a packet attribute, not the mechanism for enabling the core routing capability itself.

Concept tested: Enabling IP forwarding on Linux

Source: https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt

Topics

#Linux networking#IP forwarding#Router configuration#Kernel parameters

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice