On 2011-10-15, S.K.R. de Jong <(E-Mail Removed)> wrote:
> I have a box A on network N1, a box B on network N2, and a box C
> with two NICs, one connected to N1 and the other to N2. How do I have to
> configure networking in A, B and C so that A will be directly reachable
> from B, and vice-versa?
>
Assuming the two networks have different, non-overlapping addresses:
Enable ip forwarding in box C, and for the other boxes you execute
a command like
route add net [other network] netmask [whatever] gateway [C's ip in this
network]
Put that in a script in /etc/network/ip-up.d or /etc/sysconfig/network
depending on the distro.
--
There's a lot to be said for not saying a lot.
|