ppp routing to multiple private subnets?

ppp routing to multiple private subnets?

Post by David Efflan » Sun, 17 May 1998 04:00:00


- Linux ppp0 to same IP on Win95 DUN server (seems to be
only way to get TCP/IP connection to Win95).
- Nat32 forwards between ppp and static on
ethernet (Win95 using DHCP assigned on same stack).
- router connects through 56K dsu to network.
- Not using DNS or Wins at this time (just lmhosts for samba).

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:  P-t-P:  Mask:
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:61 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0 coll:0

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window
irtt Iface UH     1500 0
0 ppp0       U      3584 0
0 lo         U      1500 0
0 ppp0

I have no trouble accessing Win95 shares on with
'smbclient' and I can ping the SMTP server on the net.  But
'pine' hangs for about 3 minutes then errors about a broken connection
when attempting SMTP on the net.

'route add gw' seems to work, but pine still
takes ~30 seconds for SMTP connection (3000 miles away).

Is it normal to have to add routes for other subnets or would a
different subnet mask for the ppp connection eliminate the need for
the extra route?  Or do the matching IP's across ppp trip up
defaultroute (no G flag on any route)?

David Efflandt/Elgin, IL USA


1. Routing over Internet to private 10.x.x.x subnet

I'm trying to allow my home linux box ssh access to an internal work
machine for remote support.  The work machine is on a private IP on a
subnet protected by a gnat firewall box, which has two NICs, one with
a public IP I can ping etc.

I've configured the gnat box to allow my IP access to the ssh machine
on the work subnet, but I'm not sure how to tell my home linux box to
route all data for that subnet through the gnatbox.

So lets say my home IP is, the gnatbox is
and the work machine I'm trying to access is

I need to ssh to from my home linux box, and obviously
I'll need to add a route to say where data for the
subnet should go.  I've tried:

route add -host eth1   ;add route to gnatbox or next cmd
doesnt work
route add -net gw eth1  ;add route to net via

I've then tried with and without next route cmd:

route del -host eth1

It doesn't work.  I'm ignoring the possibility of a gnatbox config
error for now - ans have tried to verify data for 10.10.10.x is at
least being sent to fo it to pass on.  traceroute
is OK, but traceroute 10.10.10.x gets no where near - but
rather only as far as my ISP.

I'm sure to many it's obvious what I'm doing wrong - and I assume what
I'm trying to do is not possible is this way.  I just thought I'd at
least try before asking for help :)

Any help appreciated - don't fancy the 40 mile drive to come into the
office to change someones password.


2. How to transfer the root file system

3. routing two private subnets?

4. CDPlayer for X86 ?

5. PPP/ARP routing problem: using a PPP remote address inside an Ethernet subnet

6. PROBLEM: using xhost

7. private network -VPN-private network routing

8. KControl error

9. firewall / routing multiple subnets

10. Setting Static Routes to Multiple Subnets on the Same LAN

11. routing to multiple subnets in one entry

12. subnet to subnet routing question

13. Routing PPP<->Ethernet on a private 192.168.0.* net