The Salisburys wrote:

Hi all
someone may help?
I have 2 home networks & 1 adsl connection.
all together 4 network cards & 1 ppp for adsl
one network is 10.0.0.x the other is 192.168.0.x (gateways are 10.0.0.1 & 192.168.0.1)
I have it only half working.
Both networks connect to the internet OK. But I can't connect from 10.0.0.x to 192.168.0.x although the reverse is OK. ie
I can connect from 192.168.0.x to 10.0.0.x
my 10.0.0.1 gateway machine: utilises "eth1" to connect to the ppp0 conection for adsl modem
my 10.0.0.1 gateway machine: utilises "eth0" to connect to the 10.0.0.x my 192.168.0.1 gateway machine: utilises "eth1" to connect to the 10.0.0.x my 192.168.0.1 gateway machine: utilises "eth0" to connect to the 192.168.0.x



Two options:

Option A: As you have it

10.0.0.1 Machine: eth0 -> 10.0.0.1 -> route to 10.0.0.x
10.0.0.1 Machine: eth1 -> ADSL ppp0 -> default route
10.0.0.1 Machine: eth1 -> route to 192.168.0.x via gateway 10.0.0.2
10.0.0.x Machines: gateway -> 10.0.0.1

192.168.0.1 Machine: eth0 -> 192.168.0.1 -> route to 192.168.0.x
192.168.0.1 Machine: eth1 -> 10.0.0.2 -> route to 10.0.0.x
192.168.0.1 Machine: eth1 -> default route -> 10.0.0.1
192.168.0.x Machines: gateway -> 192.168.0.1
To do this:
- make sure eth1 on 10.0.0.1 is the default gateway or route
- On 10.0.0.1 run
route add -net 192.168.0.0 netmask 255.255.255.0 gw 10.0.0.2 eth1
- Make sure default gateway on 192.168.0.1 is 10.0.0.1

Option B: Make one gateway with 2 networks hanging off it

GW eth0: ADSL ppp0 -> default route
GW eth1: 10.0.0.1 -> route to 10.0.0.x
GW eth2: 192.168.0.1 -> route to 192.168.0.x

This should work without any further configuring. Machines on both networks have gateway set to x.x.0.1, and the .0.1 machine knows how to get to both network arms as well as internet.


Fil -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to