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


Groups > comp.os.linux.networking > #707 > unrolled thread

Two PCs on different networks, another PC on both networks

Started by"S.K.R. de Jong" <SKRdJ@nowhere.net>
First post2011-10-15 18:37 +0000
Last post2011-10-15 23:48 -0400
Articles 2 — 2 participants

Back to article view | Back to comp.os.linux.networking


Contents

  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

#707 — Two PCs on different networks, another PC on both networks

From"S.K.R. de Jong" <SKRdJ@nowhere.net>
Date2011-10-15 18:37 +0000
SubjectTwo PCs on different networks, another PC on both networks
Message-ID<j7cjsm$pv$1@news.albasani.net>
	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?

[toc] | [next] | [standalone]


#709

FromBill Marcum <bill@lat.localnet>
Date2011-10-15 23:48 -0400
Message-ID<ho0qm8-c46.ln1@lat.localnet>
In reply to#707
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.networking


csiph-web