Red Hat Certified System Administrator RHCSA · Free Practice Question Medium
Question 5
How can you enable packet forwarding for IPv4 on a system running Red Hat Enterprise Linux 9? Provide a brief explanation of the steps involved.
Show model answer
To enable IPv4 packet forwarding on RHEL 9, you need to modify the sysctl configuration. First, open the /etc/sysctl.conf file in a text editor with root privileges. Add the line net.ipv4.ip_forward = 1 to enable forwarding. This change tells the kernel to forward IP packets between interfaces. After saving the file, apply the changes by running sudo sysctl -p. This command will load the new configuration. This setting is essential for setting up the system as a router or a gateway.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
