What command would he use to complete this action?

A system administrator wants to enable packet without making the changes permanent.
What command would he use to complete this action?

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.



Leave a Reply 7

Your email address will not be published. Required fields are marked *


david

david

should be Echo 1> /proc/sys/net/ipv4/ip_forward

mamun

mamun

There is no /proc/sys/net/ipv4_ip_forward file in oracle linux

Naga

Naga

C is Correct : Verified in the system

Naga

Naga

Sorry it should be /proc/sys/net/ipv4/ip_forward

Naga

Naga

Answer is B but option is wrong: after ipv4 / should come not _

e73kiel

e73kiel

[root@oracle ~]# cat /etc/oracle-release
Oracle Linux Server release 6.8
[root@oracle ~]# cat /proc/sys/net/ipv4/ip_forward
1

its D

Vlastislav

Vlastislav

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 ..