Networking Forums

Networking Forums > Computer Networking > Linux Networking > internet access through another subnet

Reply
Thread Tools Display Modes

internet access through another subnet

 
 
Ekkard Gerlach
Guest
Posts: n/a

 
      02-29-2004, 06:52 PM
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?

tia
Ekkard

 
Reply With Quote
 
 
 
 
Snowbat
Guest
Posts: n/a

 
      03-01-2004, 12:02 AM
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?
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      03-01-2004, 12:44 PM
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/
 
Reply With Quote
 
Ekkard Gerlach
Guest
Posts: n/a

 
      03-01-2004, 11:22 PM
David Efflandt wrote:
>>
>> 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.
>

thank you, your pointer were right. The IP-traffic reaches the
router PC and it going into internet. But nothing comes back.
First there was no routing to 10.x. I put the routing but nothing
more happens. I think I have to tell my SuseFirewall (Suse 8.2)
that there is a second network. I don't understand much of routing
firewall and masquerading. So, the next days I will read tutorials.
Before any other discussion here is not worth it.

thx
Ekkard
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access hosts in other subnet lovecreatesbea...@gmail.com Linux Networking 7 07-29-2008 08:55 PM
Off-subnet access periodically lost Ryan Windows Networking 1 07-30-2005 07:07 PM
Subnet Mask Changes to Class A & B ... but still has access to the network??? (Baffled) =?Utf-8?B?S2VuX2luX1BnaF9QQQ==?= Windows Networking 0 05-24-2004 04:56 PM
Configuring Acer Access Point at host end of subnet? Fred Goldstein Wireless Internet 0 02-14-2004 07:39 PM
Wireless Access point needs subnet? wayne Linux Networking 4 07-18-2003 01:57 AM



1 2 3 4 5 6 7 8 9 10 11