exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 71 discussion

Actual exam question from RedHat's EX200
Question #: 71
Topic #: 1
[All EX200 Questions]

SIMULATION -
Your System is going use as a router for 172.24.0.0/16 and 172.25.0.0/16. Enable the IP Forwarding.
1. echo "1" >/proc/sys/net/ipv4/ip_forward
2. vi /etc/sysctl.conf net.ipv4.ip_forward=1

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
/proc is the virtual filesystem, containing the information about the running kernel.
To change the parameter of running kernel you should modify on /proc. From Next reboot the system, kernel will take the value from /etc/sysctl.conf.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Lazylinux
3 months, 2 weeks ago
NEVER Directly edit sysctl.conf is not recommended, create customised file in the /etc/sysctl.d directory. echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.d/IP_Forwarding.conf sysctl --load /etc/sysctl.d/IP_Forwarding.conf ***DO NOT make mistake like others do and use -p because the option -p ONLY works if you edited the /etc/sysctl.conf file which is NOT recommended, so if you use customized file as per above **Highly recommended** then you must use option --load as per above example confirm by either sysctl -a | grep ip_forward or cat /proc/sys/net/ipv4/ip_forward NOTE:REBOOT is highly recommended but not necessary if you use the above procedure
upvoted 1 times
...
mattd81
2 years, 5 months ago
sysctl -w net.ipv4.ip_forward=1
upvoted 3 times
Lazylinux
3 months, 2 weeks ago
Reboot and you will get ZERO in the exam, see my comments
upvoted 1 times
...
ly01
4 months, 3 weeks ago
This does not persist. Official solution is correct
upvoted 1 times
...
...
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.

SaveCancel
Loading ...