Link to home
Start Free TrialLog in
Avatar of jcw071697
jcw071697

asked on

PPP server. Can't ping router. IP forwarding.

I'm trying to setup a ppp dialup server on Linux (2.0.29)/
Debian and am having problems.

I want a Win95 machine to be able to dialup into my linux
box and access the Internet through the linux box which is
connected to a router (internet).

I am able to get the modems to connect and I can ping the
win95 machine from linux and the Win95 machine can ping my
ethernet port. However, I can't get the win95 machine to
ping the router.  So, the Win95 machine cannot access the
Internet (web,etc.), or anything beyond the Linux machine.

Is this an IP forwarding problem?  I'm not sure if I have
IP forwarding turned on or not.  How can I tell?  What does
IP forwarding do anyway?  Does ipfwadm accomplish this? I know ipfwadm is installed.  I know I can access the Internet
from the Linux box w/ no problems. I used debian to install
everything so I can't find any source files around for the
kernel to see if IP forwarding was turned on or not.

Here's my setup:

----------
Internet |
----------
     |
     |
     |
-----------------------
Router: 208.128.204.1 |
-----------------------
     |
     |
     |
----------------------------
eth0: 208.128.204.2        |
                           |
Linux Box                  |
                           |
ttyS1 serial port:         |
208.128.204.3              |
----------------------------
      |
      |
-----------------
208.128.204.4   |
Win95 machine   |
-----------------

Does the serial port need its own ip?  Does it have to be a
real IP or can it be a private one?

In my options.ttyS1 (setup for dynamic IP addressing) file
I have:  

208.128.204.3:208.128.204.4

Is this right?  Or, should it be the ethernet (.2) or
router (.1) address instead of (.3 serial port).  I've
tried all three, and it doesn't seem to matter.  When I
used .1 (router) address I think my linux box got locked
out of the router (couldn't ping the router from linux). I
still can't access the Internet via the WIn95 machine.

Any help would be greatly appreciated.  Everything's been
pretty much setup based on reading the PPP howto, mgetty
stuff, and serial howtos.  If there is addiotional info. needed, please let me know.

Bonkers,
Chris

cjwong@istep.com
ASKER CERTIFIED SOLUTION
Avatar of sauron
sauron

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of christg
christg

Did you tried to add your router IP adress as a gateway in your win95 tcpip configuration.
Avatar of jcw071697

ASKER

The problem I had turned out to be not having IP forwarding turned on.  So, I recompiled the kernel it all works now.  I did this prior to getting your answer.  But after your answer, it seems that I should have recompiled the kernel (debian linux (2.0.30)) using the "optimize as router" option since you indicated that I am using the Linux box as a router.  I hope
there is not a significant difference between having the linux box optimized as a router v. not optimized.

Thanks for the answer you gave me.