A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the correct way to accomplish this task?
B. sysctl -w net.ipv4.ip_forward=1
The sysctl command is used to configure the Linux kernel parameters at runtime. To enable IPv4 packet forwarding, the administrator needs to set the value of the net.ipv4.ip_forward parameter to 1. This can be done with the following command:
sysctl -w net.ipv4.ip_forward=1
This command sets the value of net.ipv4.ip_forward to 1, enabling IPv4 packet forwarding. The -w option specifies that the change should be written to the running system and not just displayed.
Note that this change will only persist until the next reboot. To make the change persistent across reboots, the administrator needs to add the following line to the /etc/sysctl.conf file:
net.ipv4.ip_forward=1
After adding this line, the administrator can run the sysctl -p command to reload the /etc/sysctl.conf file and apply the changes.
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
linux_admin
Highly Voted 8 months, 4 weeks agolinux_admin
8 months, 4 weeks agolizb7223
Most Recent 9 months, 1 week agoHava_2013
12 months ago