CompTIA Linux+ (XK0-004) — Question 152

A Linux administrator is using a Linux system as a router. During the tests, the administrator discovers that IP packets are not being sent between the configured interfaces.
Which of the following commands enables this feature for IPv4 networks?

Answer options

Correct answer: B

Explanation

The correct answer is B, as the command 'echo 1 > /proc/sys/net/ipv4/ip_forward' specifically enables IP forwarding, allowing packets to be routed between interfaces. Options A, C, and D do not relate to enabling IP forwarding; instead, they attempt to modify settings that do not control packet forwarding behavior.