Okay. Good. Here are the scripts we used to do something fairly similar to
what you seem to want. I've edited them a bit, to replace information like
the site's actual IP numbers with dummies and to eliminate some choices
irrelevant to your problem. From this starting point, you should be able to
develop what you want. 

Once you get this working, BTW, I'd be interested in feedback as to what
changes you needed to make it work. Also, you say the documentation you
found was "more for the client side...." Everything I have seen has been
*exclusively* for the client side, except for my own stuff and some material
a friend wrote on how he did this using mgetty. Have you seen *any* other
server-sice stuff for ppp?

Anyway, here goes .... 

Step 1 -- in /etc/inittab, add a line for a process that monitors each
serial port that has a modem. Our installation used agetty (still the
default *getty in Slackware, but not included, I don't think, in all the
other distributions). Our lines, which managed ports on a BocaBoard 16,
looked like this:

b1:45:respawn:/sbin/agetty -ht60 38400 ttyS16 -l /usr/local/etc/login.sh
b2:45:respawn:/sbin/agetty -ht60 38400 ttyS17 -l /usr/local/etc/login.sh
b3:45:respawn:/sbin/agetty -ht60 38400 ttyS18 -l /usr/local/etc/login.sh
b4:45:respawn:/sbin/agetty -ht60 38400 ttyS19 -l /usr/local/etc/login.sh
b5:45:respawn:/sbin/agetty -ht60 38400 ttyS20 -l /usr/local/etc/login.sh
b6:45:respawn:/sbin/agetty -ht60 38400 ttyS21 -l /usr/local/etc/login.sh 
b7:45:respawn:/sbin/agetty -ht60 38400 ttyS22 -l /usr/local/etc/login.sh
b8:45:respawn:/sbin/agetty -ht60 38400 ttyS23 -l /usr/local/etc/login.sh

(man agetty for details on the switches)

Step 2 -- create an appropriate login script (the login.sh in the above).
Ours was designed to allow people connecting to choose between a shell
connection (to a different machine, the one that had their accounts) and a
ppp connection. It looked like this:

#!/bin/bash
export TERM='vt100'
echo "login     `/bin/date`     $2      `tty`" >> /var/adm/logins
if [ $2 = 'ppp' ]; then
        /etc/ppp/ppplogin
else
        /usr/bin/rlogin -E8l $2 192.168.42.1
fi;
echo "logout    `/bin/date`     $2      `tty`" >> /var/adm/logins
#eop

If you don't need to distinguish shell and ppp logins, you can skip this
step and have the inittab entries point directly to the ppplogin script. 

Step 3 -- create an appropriate ppplogin script. The main work here is to
set the IP addresses. This does it dynamically -- if you are assigning a
fixed address to each modem, you could use 8 different scripts in the
inittab calls, one for each modem, setting the appropriate address for each.
In any case, our approach looked like this:

#!/bin/sh
pppid=0.0.0.0
if [ `/sbin/ifconfig |grep -c 192.168.42.11` = 0 ]; then
        pppid=192.168.42.11
elif [ `/sbin/ifconfig |grep -c 192.168.42.12` = 0 ]; then
        pppid=192.168.42.12
elif [ `/sbin/ifconfig |grep -c 192.168.42.13` = 0 ]; then
        pppid=192.168.42.13
elif [ `/sbin/ifconfig |grep -c 192.168.42.14` = 0 ]; then
        pppid=192.168.42.14
elif [ `/sbin/ifconfig |grep -c 192.168.42.15` = 0 ]; then
        pppid=192.168.42.15
elif [ `/sbin/ifconfig |grep -c 192.168.42.16` = 0 ]; then
        pppid=192.168.42.16
elif [ `/sbin/ifconfig |grep -c 192.168.42.17` = 0 ]; then
        pppid=192.168.42.17
elif [ `/sbin/ifconfig |grep -c 192.168.42.18` = 0 ]; then
        pppid=192.168.42.18
fi;

[the next bit is all one line in the original script]
exec /usr/lib/ppp/pppd passive modem proxyarp auth login +pap
192.168.42.4:$pppid
# eop

You'll want to change the pppd line to reflect the setup appropriate to your
site, in particular the file you use for authorized userid/password pairs
for connecting. Actually, I think all you really needed from me is the
advice in step 1; I expect you know how to do the rest of this already.

Hope this helps. Good luck.

At 06:05 PM 12/18/98 -0600, Hughes, Timothy P wrote:
[deleted]
>This is what I want to do, I want to be able to hang a group of modems
>off the server, and use a modem pool. (I would be creating a hunt group
>for these modems.)  I would like to setup the server to assign an IP
>address to each modem, and I have tried to do this.  Where my problem
>lies, is that Windoze95 does not recieve the IP address or any other
>network information after doing the speed negotiation with the PPP
>servers modem.  It will just hang there.  I have tried manually inputing
>the network information into the windows client, but I still recieve the
>same problems.  
[rest deleted]

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
762 Garland Drive
Palo Alto, CA  94303-3603
650.321.3561 voice     650.322.1209 fax          [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to