On Mon, 01 Mar 2004 01:02:25 +0000, Snowbat <(E-Mail Removed)> wrote:
> Ekkard Gerlach wrote:
>
>> I have to two subnets, two PC's:
>> 192.168.0.1 <-> ISDN/modem <-> 192.168.10.1
>> (ppp gets 192.168.10.20)
>> I
>> I
>> router-PC
>> 192.168.0.99
>> DSL -> internet
>>
>> The client 10.1 should have full access
>> to internet. I've already reached my target
>> by giving a 0.X-adress to the 10.1-machine.
>> But not with different subnets. (BTW: I search
>> a solution that can be expanded to two subnets:
>> 0.X and 10.X. But step by step ....)
>> 192.168.0.1 is calling 10.1 an gets: 192.168.10.20
>>
>> Thats what I tried to realize surfing from 10.1:
>>
>> 10.1: route add default gw 192.168.0.1 ippp1
>> entry in /etc/resolve.conf
>> 0.1: arp -Ds 192.168.10.20 eth0 netmask 255.255.255.255 pub
>> echo "1" > /proc/sys/net/ipv4/ip_forward
>>
>> ... but it doesn't work with different networks.
>> What is my fault?
>
> Did you add a route to 192.168.10.1 on router-PC?
Ie, route add -net 192.168.10.0 gw 192.168.0.1 dev (whatever-eth)
And does router-PC know to masquerade 192.168.10.0/24 network (or entire
192.168.0.0/16 block)?
And make sure that 192.168.0.1 box does NOT set a default route to its
ippp, since that should still point to router-PC.
--
David Efflandt - All spam ignored
http://www.de-srv.com/