February 2011
Intermediate to advanced
332 pages
9h 3m
English
Using the sysctl command:
sysctl -w net.ipv4.ip_forward=1
This method doesn't need a reboot and will enable IP forwarding on the fly but will not be preserved after a reboot.
Using the sysctl configuration file, we can add the following line in the /etc/sysctl.conf file:
net.ipv4.ip_forward = 1
/etc/sysctl.conf file, we need to run the following command:sysctl -p /etc/sysctl.conf
These changes will be preserved after a reboot.
Using the sysctl command.
sysctl -w net.inet.ip.forwarding=1 ...
Read now
Unlock full access