XK0-006 practice question 7 of 15
A systems administrator needs to enable routing of IP packets between network interfaces. Which of the following kernel parameters should the administrator change?
Full set: 149 questionsThe net.ipv4.ipforward kernel parameter is a boolean flag that controls IP packet forwarding for IPv4 on a Linux system. When its value is set to 1, the kernel is permitted to forward packets between different network interfaces, effectively allowing the machine to function as a router. A value of 0 (the default on most desktop systems) disables this functionality. This parameter can be changed dynamically using sysctl or made persistent in /etc/sysctl.conf.
A. net.ipv4.ipmulticast is related to multicast routing, which is a specific type of routing, not general IP packet forwarding.
B. net.ipv4.iproute is not a valid sysctl kernel parameter. Routing tables are managed with tools like the ip route command.
C. net.ipv4.iplocalportrange defines the ephemeral port range for outgoing connections and is unrelated to packet forwarding.
1. The Linux Kernel Archives, Kernel Documentation, Documentation/networking/ip-sysctl.txt. Section ipforward. The document states: "Enable/disable IP forwarding. This is a global switch."
2. Red Hat Enterprise Linux 9 Documentation, Section 3.5. "Configuring the system to function as a router". The guide specifies: "To enable IP forwarding, enter the following command as root: # echo "net.ipv4.ipforward = 1" > /etc/sysctl.d/95-ip-forward.conf".
3. IBM Documentation, "IP forwarding". This official vendor document explains that to enable IP forwarding on Linux, the administrator must set the value of /proc/sys/net/ipv4/ipforward to 1.
Keep practicing
Take the free XK0-006 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other XK0-006 practice questions
- Question 1A DevOps engineer needs to create a local Git repository. Which of the following commands…
- Question 2Which of the following is the main reason for setting up password expiry policies?
- Question 3A Linux administrator needs to securely erase the contents of a hard disk. Which of the f…
- Question 4Which of the following best describes the role of initrd?
- Question 5Which of the following is a characteristic of Python 3?
- Question 6A Linux user runs the following command: nohup ping comptia.com & Which of the following …
