Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #709

Re: Two PCs on different networks, another PC on both networks

From Bill Marcum <bill@lat.localnet>
Newsgroups comp.os.linux.networking
Subject Re: Two PCs on different networks, another PC on both networks
Date 2011-10-15 23:48 -0400
Organization Hooves Across the Water
Message-ID <ho0qm8-c46.ln1@lat.localnet> (permalink)
References <j7cjsm$pv$1@news.albasani.net>

Show all headers | View raw


On 2011-10-15, S.K.R. de Jong <SKRdJ@nowhere.net> 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.

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Two PCs on different networks, another PC on both networks "S.K.R. de Jong" <SKRdJ@nowhere.net> - 2011-10-15 18:37 +0000
  Re: Two PCs on different networks, another PC on both networks Bill Marcum <bill@lat.localnet> - 2011-10-15 23:48 -0400

csiph-web