RAS Server

Gert Doering (gert@greenie.muc.de)
Fri, 2 Apr 1999 09:23:57 +0200


Hi,

(please keep mgetty@muc.de on the CC: list, it's pretty impolite to take
the discussion to private mail - after all, someone else might have the
same problem some day, and then he can find it in the list archives)

On Thu, Apr 01, 1999 at 04:40:04PM -0600, Joddy Grider wrote:
> > Hmmm.  Now this sounds to me like a PPP setup problem, always handing out
> > the same IP address to the other end.  You need to set up PPP so that
> > every modem line gets a different remote IP address.
> 
> Any suggestions on how to do thay?
> 

No idea.  I'm no Linux/PPP guru,  I don't even use PPP on Linux (nor
AutoPPP).  I'm fairly sure there is a way to do it, but it might run along
the line of 

 - from "login.config", run a shell script "run.ppp"
 - "run.ppp" looks at the output of "tty" (which gives the tty the call
   comes in) and selects an IP address based on this
 - "run.ppp" starts pppd with that address as remote arguments

Something like this:

----------- snip ---------
#!/bin/sh
TTY=`tty`
case $TTY in
	/dev/ttyE01) REM_IP=1.1.1.1 ;;
	/dev/ttyE02) REM_IP=1.1.1.2 ;;
	/dev/ttyE03) REM_IP=1.1.1.3 ;;
	/dev/ttyE04) REM_IP=1.1.1.4 ;;
esac
LOCAL_IP=4.4.4.4

exec /usr/sbin/pppd <options> $LOCAL_IP:$REM_IP
----------- snip ---------

The details are left to the reader for further study :) - "man pppd" and
the pppd debug logs are your friends.

(Note: I do not have a problem answering questions about mgetty, but
please understand that I can't solve every single question about modems
out there, at least not for free - I earn my living by solving tricky
problems :-) - but I can, and will, give hints where to find the solution).

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de