Exam 202-450 All QuestionsBrowse all questions from this exam
Question 1

On a Linux router, packet forwarding for IPv4 has been enabled. After a reboot, the machine no longer forwards IP packets from other hosts. The command: echo 1 > /proc/sys/net/ipv4/ip_forward temporarily resolves this issue.

Which one of the following options is the best way to ensure this setting is saved across system restarts?

    Correct Answer: C

    To ensure that the setting is saved across system restarts on a Linux router, you need to make a persistent change in the system configuration files. Modifying /etc/sysctl.conf to include net.ipv4.ip_forward=1 is the correct approach, as this file is read and applied during system boot. This ensures that the packet forwarding setting persists across reboots.

Discussion
serlanOption: C

C - ok

A2AudioAddictOption: C

It should be /etc/sysctl.conf, not /etc/sysct1.conf. But otherwise C is correct.