Making PPP connection available to all machines in network

Making PPP connection available to all machines in network

Post by Jean-Louis Lero » Sun, 31 Dec 1899 09:00:00



I have two computers, 'ds9' and 'enterprise', that are networked
together. IP addresses are, respectively, 192.168.0.2 and 192.168.0.6
(see Dan I've followed your advice against class B networks :)).

From enterprise I can dial my ISP server, everything works fine. Now
I'd like ds9 to be able to use the PPP link as well. So I tried making
enterprise ds9's default gateway. Was I too naive? it doesn't work.

After dialing my ISP and executing:

          route add default gw enterprise

...on ds9, here are the routing tables:

enterprise
----------
`route`

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
195.238.21.1    *               255.255.255.255 UH    0      0        0 ppp0
192.168.0.6     *               255.255.255.255 UH    0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         195.238.21.1    0.0.0.0         UG    0      0        0 ppp0

`ifconfig`

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:195.238.22.116  P-t-P:195.238.21.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:2 dropped:0 overruns:0 frame:2
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10

ds9
---
`route`

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.2     *               255.255.255.255 UH    0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         enterprise.newe 0.0.0.0         UG    0      0        0 eth0

I notice that, from ds9, I can ping the local address assigned to ppp0
(195.238.22.116), bot not the remote address (195.238.21.1).

enterprise doesn't seem to be running neither routed nor gated, but
does claim (at boot time) that IPv4 forwarding is up.

So what am I doing wrong? TIA...

Jean-Louis

 
 
 

Making PPP connection available to all machines in network

Post by Ben Do » Sun, 31 Dec 1899 09:00:00


Quote:> I have two computers, 'ds9' and 'enterprise', that are networked
> together. IP addresses are, respectively, 192.168.0.2 and 192.168.0.6
> (see Dan I've followed your advice against class B networks :)).

> From enterprise I can dial my ISP server, everything works fine. Now
> I'd like ds9 to be able to use the PPP link as well. So I tried making
> enterprise ds9's default gateway. Was I too naive? it doesn't work.

> After dialing my ISP and executing:

>           route add default gw enterprise

You have to use IP masquerading if you only have the one IP address from
the dial-up line.  Compile firewall support and ip masquerading into the
kernel, and make sure that you insert the modules you need, echo 1 >
/proc/net/forward (I think; this is from memory) to enable ipv4 packet
forwarding, and run ipchains to enable the forwarding rules, something
like
ipchains -A forward -p tcp -s 192.168.0.0/24 -j MASQ
This is sort of ugly; I highly recommend reading the man pages for
ipchains and the IP-Masquerade-HOWTO and Firewall-HOWTO (not necessarily
in that order), but you get the idea.

 
 
 

1. making hostsnames available to windows machines (dns)

Hi all!

I wanted to do the following:

Some windows machines (eg sun) are connected to one linux 'server' which
is actually running named at a local network

when I do ping sun from the linux site everything is fine (this host has
been entered in /etc/hosts). But when I try
ping server from the windows machine, the linux machine builds up an
internet connection and AFTERWARDS states the right IP.

As you guess I do not like wasting money that way.
Another problem is: I want to be able to do a ping server.mynet.bla ...
how may I achieve this ?

Thanks, Soeren.
--
Und nicht vergessen: Pupi in the lapi ist nicht gleich pupi in the
schnulko !

2. Welcome to comp.unix.programmer (v1.7)

3. Making /dev/modem available over a network

4. IP accounting

5. Making a Sparc available to NT servers as a "Connect Network Drive"

6. Linux setup help?!

7. Making my YDL Machine Visible on ATALK NETWORK

8. Kernel access in SVR4

9. RH5.1 PPP connection: PPP connection persists, telnet session times out

10. PPP - Not available on this machine

11. Making PPP device persist, even after lost connection?

12. Problems with making a PPP connection

13. I need help making a ppp/chap connection