RedHat Linux IP Forwarding

Use the following to enable IP (IPv4) Forwarding in RedHat linux.


To enable IP forwarding temporarily (until the next reboot):
echo 1 > /proc/sys/net/ipv4/ip_forward

To enable permanently, edit /etc/sysconfig/network and change or add the following line:
FORWARD_IPV4 = YES

The Conversation

Follow the reactions below and share your own thoughts.

  • Anand M

    If i want communicate with two different Ip address example 172.16.10.63 machine has to ping 192.168.1.140 what has to be done?

  • Pce_manojgupta

    what is ip forwarding