Thursday, January 21, 2010

RHCE EXAM PART 3 (IP FORWARDING & LINUX ROUTER)

You will be asked to make your machine able to forward IP and act like a router.
To do this:

# cat /proc/sys/net/ipv4/ip_forward
If the returned value is 0 that means IP forwarding is disabled.

Then
# echo 1 > /proc/sys/net/ipv4/ip_forward
This will make IP forwarding active temporarily

To make it permanent
# vim /etc/sysctl.conf
net.ipv4.ip_forward=1

And done.

1 comment: