Pages

Friday, January 17, 2014

Enable IP Forward Linux

Enable IP forward is part of internet sharing task.
To check current status of IP forward by one of following commands:
  1. sysctl net.ipv4.ip_forward
  2. cat /proc/sys/net/ipv4/ip_forward

To enable IP forward by one of the following methods:

  1. sysctl -w net.ipv4.ip_forward=1
  2. echo 1 > /proc/sys/net/ipv4/ip_forward
  3. vi /etc/sysctl.conf

net.ipv4.ip_forward=1