How to route win95 LAN thru Linux Box with ppp connection.

How to route win95 LAN thru Linux Box with ppp connection.

Post by Maurice Bl » Mon, 21 Sep 1998 04:00:00



I'm having a problem with my lan. I want all my win95 machines to
connect to the Internet via my linux box (Red Hat 5.1 with PPP).
I can get the Linux box on the net just fine, just activate ppp0 and
add route default ppp0 and voila.
I also have linux configured as a gateway and the info from my
route table is:

Quote:>Kernel IP routing table
>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
>195.64.64.1     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
>194.229.16.0    0.0.0.0         255.255.255.0   U     0      0        1 eth0
>127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        2 lo
>0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
>0.0.0.0         194.229.16.225  0.0.0.0         UG    0      0        2 eth0

So i'm guessing the line with the gateway address should have the ppp0
interface assigned to it. But route add won't let me
"route add default gw 194.229.16.225 ppp0" without an error.

What am I doing wrong?

Thanks,
Maurice

 
 
 

How to route win95 LAN thru Linux Box with ppp connection.

Post by Jens-U. Mozdze » Mon, 21 Sep 1998 04:00:00



> [...] But route add won't let me
> "route add default gw 194.229.16.225 ppp0" without an error.

> What am I doing wrong?

Shouldn't that be "route add -net default dev ppp0"?

Quote:

> Thanks,
> Maurice

Regards,
Jens
--

Schleswiger Damm 200                          | phone & fax
++49-40-5595175
D-22457 Hamburg, Germany                      |

 
 
 

How to route win95 LAN thru Linux Box with ppp connection.

Post by Clifford Ki » Mon, 21 Sep 1998 04:00:00



>I'm having a problem with my lan. I want all my win95 machines to
>connect to the Internet via my linux box (Red Hat 5.1 with PPP).
>I can get the Linux box on the net just fine, just activate ppp0 and
>add route default ppp0 and voila.

The problem is that the win95 machines can't get on the net?

Quote:>I also have linux configured as a gateway and the info from my
>route table is:
>>Kernel IP routing table
>>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
>>195.64.64.1     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
>>194.229.16.0    0.0.0.0         255.255.255.0   U     0      0        1 eth0
>>127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        2 lo
>>0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
>>0.0.0.0         194.229.16.225  0.0.0.0         UG    0      0        2 eth0
>So i'm guessing the line with the gateway address should have the ppp0
>interface assigned to it. But route add won't let me
>"route add default gw 194.229.16.225 ppp0" without an error.

The routing looks OK to me as it stands.  The second from last line in
the route output shows a default route to the ppp0 interface, presumable
the _active_ default route - set up after making the ppp connection.

Perhaps the problem is IP forwarding - either not compiled into the
kernel or not turned on.  I would check that it is turned on, 'cat
/proc/sys/net/ipv4/ip_forward' = 1 .  I would also check that it is in
the kernel with ls /proc/net/ip_forward, if there is no such file then
there is no IP forwarding in the kernel.

--
Clifford Kite                                              Not a guru. (tm)

 
 
 

How to route win95 LAN thru Linux Box with ppp connection.

Post by Elmar Jans » Tue, 22 Sep 1998 04:00:00



> I'm having a problem with my lan. I want all my win95 machines to
> connect to the Internet via my linux box (Red Hat 5.1 with PPP).
> I can get the Linux box on the net just fine, just activate ppp0 and
> add route default ppp0 and voila.
> I also have linux configured as a gateway and the info from my
> route table is:
> >Kernel IP routing table
> >Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> >195.64.64.1     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
> >194.229.16.0    0.0.0.0         255.255.255.0   U     0      0        1 eth0
> >127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        2 lo
> >0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
> >0.0.0.0         194.229.16.225  0.0.0.0         UG    0      0        2 eth0

You defined a Class C network on eth0. The address 194.229.16.225 is in the
range of the Class C net. So it is impossible to route that address over ppp0.
I tjink you need an address in a diffferent network for ppp0.
Look witk ifconfig what IP-Address ppp0 have.

Bis dann (so long)
Elmar

Quote:> So i'm guessing the line with the gateway address should have the ppp0
> interface assigned to it. But route add won't let me
> "route add default gw 194.229.16.225 ppp0" without an error.
> What am I doing wrong?
> Thanks,
> Maurice

 
 
 

How to route win95 LAN thru Linux Box with ppp connection.

Post by Vincent Zweij » Tue, 22 Sep 1998 04:00:00



||  I'm having a problem with my lan. I want all my win95 machines to
||  connect to the Internet via my linux box (Red Hat 5.1 with PPP).
||  I can get the Linux box on the net just fine, just activate ppp0 and
||  add route default ppp0 and voila.

Make sure you have configured IP forwarding in the kernel *and* turned
it on with:

    # echo 1 >/proc/sys/net/ipv4/ip_forwarding

||  I also have linux configured as a gateway and the info from my
||  route table is:
||
||  >Kernel IP routing table
||  >Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
||  >195.64.64.1     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
||  >194.229.16.0    0.0.0.0         255.255.255.0   U     0      0        1 eth0
||  >127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        2 lo
||  >0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
||  >0.0.0.0         194.229.16.225  0.0.0.0         UG    0      0        2 eth0
||
||  So i'm guessing the line with the gateway address should have the ppp0
||  interface assigned to it. But route add won't let me
||  "route add default gw 194.229.16.225 ppp0" without an error.

That address is not the one of your ppp peer (195.64.64.1).

The last routing table entry is not doing anything.  Remove it when your
ppp link is up.  In fact, assuming the local ethernet has no other link
to internet, do not set a default route to the local ethernet at all.

What is special about 194.229.16.225, by the way?

Just make the default route go through ppp, as it already is:

    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    195.64.64.1     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
    194.229.16.0    0.0.0.0         255.255.255.0   U     0      0        1 eth0
    127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        2 lo
    0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0

The last line can also read:

    0.0.0.0         195.64.64.1     0.0.0.0         UG    0      0        0 ppp0

because with ppp the gateway does not matter.

Doei.                                                             Vincent.
--

<http://www.xs4all.nl/~zweije/>      | don't read, does anybody get burnt?"
[Xhost should be taken out and shot] |            -- Paul Tomblin on a.s.r.

 
 
 

1. Routing win95 pc thru linux box

Im attempting to route my 2 pc's and 2 macs through a linux box
the linux machine is running kernel 2.0.29 with Diald

can someone please tell me how to set up the kernel, and diald as well as
anything else I have to?

I would like to route udp packets as well.

thanks in advance..

oh, and please respond via e-mail as well


2. AMI MegaRAID driver for Solaris 9 x86

3. Linux gateway box hosting internet connection thru PPP for multiple machines

4. NFS Boot with timeouts

5. Networking Linux Box to Win95 Box using ethernet connection and Combo card

6. 2.4 Kernal on RH6.1

7. how to ppp(win95) - pppd(linux)+eth0 -- lan -- win95

8. My linux system as a PPP server?

9. Routing Internet connection from WINXP box to LINUX Box

10. Sending FAX/w Win95 thru linux box

11. relaying e-mail from win95 thru my Linux box

12. Routing A ppp connection on LAN

13. Routing my PPP connection to my LAN