Gentoo Archives: gentoo-user

From: Michal 'vorner' Vaner <vorner@×××.cz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Routing: how to enable..
Date: Sat, 17 Feb 2007 22:36:54
Message-Id: 20070217222848.GA32624@tarantula
In Reply to: Re: [gentoo-user] Routing: how to enable.. by Roman Naumann
1 Hello,
3 On Sat, Feb 17, 2007 at 11:07:34PM +0100, Roman Naumann wrote:
4 > Here the whole configuration: (imagine it as a complicated line of different
5 > connections through the entire house...)
6 > [SNIP]
8 Hm, I think in theory you should have the PC in the middle with 2 IP
9 addresses, on each interface different. On each segment (each side of
10 the middle one) should be IPs from different range and there should be
11 allowed routing (that I do not know how). It would look like this:
13 -->( PC1 <IP-A/Range1> ) -- ( <IP-B/Range1> PC2 <IP-C/Range2> ) -- ( <IP-D/Range2> PC3 )
15 PC2 can comm with all (since it is on both nets). PC3 shloud use IP-C as
16 its gateway, which will allow it to access PC1. PC1 should have static
17 route for whole Range2 to IP-B, so it can send to PC3. Now, how is that
18 set in Windows, who knows..
20 After this all is set, PC1 and PC3 should be able to talk to each other.
21 However, you will not see the pings unless both directions work.
23 So, you need to:
24 • PC3: /etc/conf.d/net:routes_eth0 = { default via IP-C }
25 • PC2: enable routing (I guess /etc/conf.d/net too)
26 • PC1: add a static route Range2 -> IP-B.
28 I just hope I did not mess that up.
30 Or you can set up a bridge on PC2 to make both segments one net only:
33 Have a nice day
35 --
36 BOFH Excuse #452:
38 Somebody ran the operating system through a spelling checker.
40 Michal 'vorner' Vaner


Subject Author
Re: [gentoo-user] Routing: how to enable.. JT Justman <jt@××××××××.com>