Discussion Locked

IP-Forwarding

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How to enable IP-Forwarding during boot time
in linux server system to configure as a router?
Is there any posibility to configure a linux workstation as a router?

5 replies

by cpfeiffe

in /etc/sysconfig/network you will have one or both of the following lines
FORWARD_IPV4=
FORWARD_IPV6=

Set them equal to yes. You will definitely have the IPV4 line and will only have the IPV6 line if you installed Linux to support IPV6 addressing.

Yes a workstation can be a router. All of the packages you need are installed.

by kevin anderson

Depending on your distribution, you could just edit /proc/sys/net/ipv4/ip_forward and change the 0 (zero) to a 1 (one).

What distribution are you using?

Routing will occur between 2 NICs automatically if IP Forwarding is enabled.

If you need to create a routing table, I found that the ROUTE man pages were a good starting point for developing my routes. Generally, you won't need to create a routing table though. If you aren't DHCP assigned one of the addresses, you may need to set a default gateway. The man pages for Route will give detailed instructions as well as notes if any are applicable for your particular distribution.

Kev.

This discussion is closed to new replies.