The important thing to realize is that you don't have one complicated job
here. You have two fairly easy jobs, each pretty much unrelated to the other.

I assume one modem will dial out, while the other will answer an incoming
call. (If not, what do you mean by "uplink" and "downlink"?) I also assume
you have 2 serial ports available, each on a different IRQ (or if the two
modems are internal, they are modems that work with Linux and are assigned
to different IRQs).

The modem that dials out is a standard, off-the-shelf pppd application. Just
follow whichever of the procedures described in the PPP HowTo
(http://metalab.unc.edu/LDP/HOWTO/PPP-HOWTO.html) is appropriate to your
situation. If you're not sure which method to use, tell us a bit more about
the details and you'll get some suggestions. For starters, I'd suggest you
use the manual approach - set up the ppp-on and ppp-off scripts listed in
the HowTo and get basic dialing working. Then switch to a demand dialer like
diald if your application calls for automated dialing. BTW,
http://axion.physics.ubc.ca/ppp-linux.html is another helpful site to check.

The modem that answers an incoming call is run through /etc/inittab, which
sets a *tty* progess watching for an incoming call. (You can use agetty for
this; mgetty is more commonly used, I think.) What the *tty* process does
depends on how you want to authenticate te incoming call. If you use
userid/password authentication, it just passes control to login, which does
a normal login. The userid that the call logs into then runs as its shell
(remember to add this to /etc/shells) a script that starts pppd. Or the
*tty* process can pass control directly to pppd, which can authenticate
using PAP or CHAP. A good stating place for information on dial-in is
http://www.swcp.com/~jgentry/pers.html .

Other details involve getting the IP addresses right on both lines and
identifying nameservers properly in /etc/resolv.conf . Again, not hard, but
focused advice requires that we know some details of what you want to do.
Here too the PPP HowTo will get you started.

Hope this helps. Good luck.

PS - If you post a follow-up, please do it as ordinary text, not html. The
html is hard to read in an ordinary e-mail client. Also mention what
distribution and version of Linux you're running, what kernel version, and
what version of pppd.

At 06:56 AM 7/7/99 +0800, Glynn Condez wrote:
><html><div>can anyone help me how to configure a two modems use for dial up in
>linux box, the other modem is use for uplink and the other one is use for
>downlink. can anyone helpme ? thanks a lot</div>
[rest deleted]
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA  94303-3603                       [EMAIL PROTECTED]        
----------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to