CompTIA Linux+ (XK0-004) — Question 148
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?
Answer options
- A. echo ג€1ג€ > /proc/sys/net/ipv4/ip_forward
- B. echo ג€0ג€ > /proc/sys/net/ipv4/tcp_abort_on_overflow
- C. echo ג€0ג€ > /proc/sys/net/ipv4/max_connections
- D. echo ג€1ג€ > /proc/sys/net/ipv4/ip_default_ttl
Correct answer: A
Explanation
The correct command is A, as enabling IP forwarding is essential for a Linux system to function as a router, allowing it to forward packets between network interfaces. Options B, C, and D do not relate to the fundamental requirement of packet forwarding and will not help in making the router operational.