RedHat Linux IP Forwarding

Contributor Icon Contributed by abanks Date Icon February 2, 2004  
Tag Icon Tagged: Linux networking

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

Previous recipe | Next recipe |
 
  • Anonymous
    You might want to just edit /etc/sysctl.conf and set:
    net.ipv4.ip_forward = 1


    This will enable it permanently on your host.
  • 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?
blog comments powered by Disqus