Which of the following files can be used to enable routing on a Linux system?
  1. /proc/sys/net/ipv4/ip_forward
  2. /proc/sys/net/ipv4/ip_routing
  3. /etc/sysconfig/network/routes
  4. /etc/ip-forwarding
Explanation
Answer - A - You should use the /proc/sys/net/ipv4/ip_forward file to enable routing on a Linux system.

Key Takeaway: The /proc/sys/net/ipv4/ip_forward file is used to enable or disable IP forwarding on the system. The /etc/sysctl.conf file is used to enable IP forwarding each time the system is booted. A router configuration can support multicast and basic IP routing using the route command. NAT can be used to connect private local area networks to the Internet or load balance servers. To turn on IP forwarding to allow Linux computer to act as a gateway or router, use the following command, echo 1 > /proc/sys/net/ipv4/ip_forward.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz