Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
SIMULATION - Your System is going to use as a Router for two networks. One Network is 192.168.0.0/24 and Another Network is 192.168.1.0/24. Both network's IP address has assigned. How will you forward the packets from one network to another network?
Suggested Answer:See explanation below.
echo "1" >/proc/sys/net/ipv4/ip_forward vi /etc/sysctl.conf net.ipv4.ip_forward = 1 If you want to use the Linux System as a Router to make communication between different networks, you need enable the IP forwarding. To enable on running session just set value 1 to /proc/sys/net/ipv4/ip_forward. As well as automatically turn on the IP forwarding features on next boot set on /etc/sysctl.conf file.
If you want your change to survive the reboot, insert below line
vi /etc/sysctl.conf
net.ipv4.ip_forward=1
reboot the machine and check
cat /proc/sys/net/ipv4/ip_foward
Directly editing sysctl.conf is not recommended anymore, configs now go to /etc/sysctl.d directory.
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.d/ipforward.conf
sysctl -p
reboot
sysctl net.ipv4.ip_forward (to verify; should return a value of 1)
Firewalld had been added a new option,--add-forward, in version 0.9.0 .With this option packects from one interface can be forwarded to another interface. https://firewalld.org/2020/04/intra-zone-forwarding
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.
syed2020
1 year, 8 months agowizojlo
1 month, 1 week agobadguy001djh
2 years, 8 months agobadguy001djh
2 years, 8 months agoQuangTruong
2 years, 10 months ago