PrepAway - Latest Free Exam Questions & Answers

How will you forward the packets from one network to another network?

CORRECT TEXT
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?

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
1. echo “1” >/proc/sys/net/ipv4/ip_forward
2. 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.


Leave a Reply