Monday, April 21, 2008

Enable routing on your linux box

My environment: RH FC8, i386

If you have a dual NICs (or more) Linux PC would like to do routing / ip forwarding, simply do the following:

echo 1 > /proc/sys/net/ipv4

Or put it into your /etc/sysctl.conf file if you want to keep the config after reboot:

net.ipv4.ip_forward = 1

No comments: