ExamGecko
Home / LPI / 202-450 / Practice Test 1
Ask Question

LPI 202-450 Practice Test 1

Add to Whishlist
00:00:00
Show Answer
Report Issue   Restart test

Question 1 / 40

On a Linux router, packet forwarding for IPv4 has been enabled. After a reboot, the machine no longer forwards IP packets from other hosts. The command: echo 1 > /proc/sys/net/ipv4/ip_forward temporarily resolves this issue.

Which one of the following options is the best way to ensure this setting is saved across system restarts?

Add echo 1 > /proc/sys/net/ipv4/ip_forward to the root user login script
Add echo 1 > /proc/sys/net/ipv4/ip_forward to the root user login script
Add echo 1 > /proc/sys/net/ipv4/ip_forward to any user login script
Add echo 1 > /proc/sys/net/ipv4/ip_forward to any user login script
In /etc/sysct1.conf change net.ipv4.ip_forward to 1
In /etc/sysct1.conf change net.ipv4.ip_forward to 1
In /etc/rc.local add net.ipv4.ip_forward = 1
In /etc/rc.local add net.ipv4.ip_forward = 1
In /etc/sysconfig/iptables-config add ipv4.ip_forward = 1
In /etc/sysconfig/iptables-config add ipv4.ip_forward = 1
Comment (0)
Suggested answer: C
asked 18/09/2024
Donald Geddis
52 questions