A system administrator wants to enable packet without making the changes permanent.
What command would he use to complete this action?
A.
Echo 1> /proc/sys/net/ip_forward/
B.
Echo 1> /proc/sys/net/ipv4_ip_forward
C.
Echo 1 > /etc/sysconfig/sys/net/ipv4/ip_forward
D.
Echo 0 > /proc/sys/net/ipv4/ip_forward
Explanation:
The ‘1’ in “/proc/sys/net/ipv4/ip_forward” enables IP forwarding.
A ‘0’ signifies IP forwarding is disabled.
should be Echo 1> /proc/sys/net/ipv4/ip_forward
There is no /proc/sys/net/ipv4_ip_forward file in oracle linux
C is Correct : Verified in the system
Sorry it should be /proc/sys/net/ipv4/ip_forward
Answer is B but option is wrong: after ipv4 / should come not _
[root@oracle ~]# cat /etc/oracle-release
Oracle Linux Server release 6.8
[root@oracle ~]# cat /proc/sys/net/ipv4/ip_forward
1
its D
D says: echo 0 > /proc/sys/net/ipv4/ip_forward
will disable packet forwarding,
should be
echo 1 > /proc/sys/net/ipv4/ip_forward
Echo with capital “E” is also wrong ..