ppp routing to multiple private subnets?

ppp routing to multiple private subnets?

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



Setup:

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

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:172.16.1.1  P-t-P:172.16.1.1  Mask:255.255.255.0
          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
172.16.1.1      0.0.0.0         255.255.255.255 UH     1500 0
0 ppp0
127.0.0.0       0.0.0.0         255.0.0.0       U      3584 0
0 lo
0.0.0.0         0.0.0.0         0.0.0.0         U      1500 0
0 ppp0

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

'route add 192.0.0.0 gw 172.16.1.1' 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 212.212.212.212, the gnatbox is 194.1.1.1
and the work machine I'm trying to access is 10.10.10.10

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

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

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

route del -host 194.1.1.1 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 194.1.1.1 fo it to pass on.  traceroute 194.1.1.1
is OK, but traceroute 10.10.10.x gets no where near 194.1.1.1 - 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.

Tim

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