1. A 4-port serial card won't run all 4 ports through /dev/ttyS0. Each port
will be a different ttyS* entry; which ones depends on the card (or
decisions you make using setserial). You don't say what card you are using;
typicaly, thesse cards use a single interrupt for all serial ports, but a
different IO base address for each. See if the documentation tells you about
this. Then you can either look for ttyS* entries that are correct
("setserial /dev/ttyS*" for each possible value of *) or use setserial to
set the devices you prefer to use to the appropriate IRQs and IOports. ("man
setserial" for more info on that program)
2. You then need to have a *getty* process watch each /dev/ttyS* entry for
an incoming connection. I've done this in the past using agetty, but most
distributions (other than Slackware, which I use) use mgetty, I think. An
example agetty line (in /etc/inittab) is:
b1:45:respawn:/sbin/agetty -ht60 38400 ttyS16 -l /usr/local/etc/login.sh
("man agetty" for the details, if your system has agetty installed)
3. The example above calls a program (shell script, actually) called
login.sh . You need to create this; it is what starts the pppd program for
this device. The one I used isn't typical of modern installations, because I
had to solve the problem of sharing 4 ppp connections over 8 modem lines
(older kernels only permitted 4 ppp sessions at a time). Basically, you
could use a shall script something like this (chaiging the IP address to
whatever is appropriate for your system):
#!/bin/sh
pppid=192.168.42.18
#[the next bit is all one line in the original script]
exec /usr/sbin/pppd passive modem proxyarp auth login +pap 192.168.42.4:$pppid
# eop
4. Your actual modems need to be configured correctly, to auto-answer and
report dropped connections properly.
As I said, there are other ways to handle the details, but this is a general
outline of the procedure, with one set of examples that should work.
Hope this helps. Good luck.
At 04:24 AM 3/29/99 PST, Toshio Yakawa wrote [abridged]:
>I need you advice about how can I configure my Linux computer (Red Hat
>5.2) to be a PPP server. From the accomplish PPP 2.3.3 readme file, it
>only show how can we connect one computer dail into another computer
>which is an PPP server. It is very well documented.
>
>But if I would like my Linux computer to allow more than 4 moderms dail
>in at the same time. I got the 4 ports' mutliport card which allows I
>connect 4 moderms into my Linux computer's single serial port via the
>mutliport. So in this case, how can I configure my Linux to be a PPP
>server which allows for more than 4 PPP connections at the same time via
>a sigle serial port (ttyS0)?
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
762 Garland Drive
Palo Alto, CA 94303-3603
650.328.4219 voice [EMAIL PROTECTED]
----------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]