First you would need to set up your Linux server so that it is on
both subnets. Typically this means having two network interfaces,
one connected to each. Then you need to make sure IP forwarding
is allowed. `cat /proc/sys/net/ipv4/ip_forward` would be one if
forwarding is allowed and zero if not. To enable it, type
"echo 1 > /proc/sys/net/ipv4/ip_forward". You might want to check
your iptables settings to make sure this traffic is allowed.
After the server is set up, you'll need to go to each client
(unless you use dhcp) and add a route to the other subnet using
the Linux server's address on the same subnet as a gateway.
If a client on one subnet needs to connect to a client on the
other subnet, both clients need to have the route added.
I hope this makes sense. Please post if you have any questions.
Last edited by carltm; 03-03-2011 at 07:39 AM.
Reason: fixed typo
|