Security

An administrator added 'net.ipv4.ip_forward = 1' to /etc/sysctl.d/99-router.conf on a gateway host. Running 'sysctl net.ipv4.ip_forward' still shows 0, and clients behind the gateway cannot reach the internet. The administrator wants the setting applied now, without a reboot, by loading all configured sysctl files. Which command should be run?

Show the answer

Correct answerD. sysctl --system

The sysctl --system command reloads settings from all standard configuration directories, including /etc/sysctl.d/, and applies them to the running kernel. The sysctl -a command only lists current values and changes nothing. Restarting a target does not reliably reread sysctl files.