CompTIA
XK0-005 · Question #734
A Linux administrator is configuring network traffic forwarding. Despite having proper iptables rules, the traffic forwarding is not working. Which of the following commands will allow Linux to pass…
The correct answer is B. echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf ; sysctl -p. To enable IP forwarding, the kernel parameter net.ipv4.ip_forward must be set to 1. This is done by appending net.ipv4.ip_forward=1 to /etc/sysctl.conf and applying the changes using sysctl -p. This command ensures that the system can forward packets between different network
System Management
Question
A Linux administrator is configuring network traffic forwarding. Despite having proper iptables rules, the traffic forwarding is not working. Which of the following commands will allow Linux to pass network traffic between different interfaces? nmcli allow-forwarding eth0 A.
Options
- Becho 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf ; sysctl -p
- Cip route forward allow --all-interfaces ; systemctl restart network
How the community answered
(17 responses)- B76% (13)
- C24% (4)
Explanation
To enable IP forwarding, the kernel parameter net.ipv4.ip_forward must be set to 1. This is done by appending net.ipv4.ip_forward=1 to /etc/sysctl.conf and applying the changes using sysctl -p. This command ensures that the system can forward packets between different network
Topics
#Network Configuration#IP Forwarding#Kernel Parameters#sysctl
Community Discussion
No community discussion yet for this question.