Redhat Linux 8.0 and getting modem to answer
Uncle Jim
jim at jimani.com
Fri Jan 10 16:42:36 CST 2003
Hi,
On Fri, Jan 10, 2003 at 08:35:03AM -0600, Moss, Jon wrote:
>
> I installed mgetty yesterday at work and found a couple of how-to's via
> Google. Late in the day yesterday I modified my inittab and rebooted.
> However, I was getting errors (and repeated errors from the respawning) so I
> edited inittab to comment out mgetty and rebooted again. I didn't have time
> to review the errors further but will do so later this morning.
>
> I've read through some of the man pages on mgetty and pppd and several
> how-to's, but will do some more reading.
>
> What version of mgetty are you using? Do you know which one works best or
> better with Redhat 8.0?
The machine that I can easily see right now is an old one (2.0.35 kernel) and
it is using mgetty-1.1.14-2 (RH-8.0 uses mgetty-1.1.28-9) but things should
similar. You will probably find more difference in the pppd. I'm using
ppp-2.3.3-4 (RH-8.0 uses ppp-2.4.1-7).
The line in /etc/inittab that I use is
s1:2345:off:/sbin/mgetty -s 115200 ttyS1
In /etc/mgetty+sendfax/mgetty.config for the ttyS1 port I added
port ttyS1
speed 115200
modem-type data
In /etc/mgetty+sendfax/login.config down near the bottom I use
/AutoPPP/ - a_ppp /usr/sbin/pppd ms-dns 207.188.139.67 idle 500 login require-pap proxyarp
You (and I) would be happier if you used the IP of your own DNS in this line.
This configuration allows the caller to either login to a shell with something
like minicom or start PPP and use this box as a gateway.
And then I invented the file /etc/ppp/options.ttyS1 (the name is important)
that contains:
# COM 1
207.188.139.67:207.188.139.78
This file will cause the PPP caller to be assigned IP 207.188.139.78 when
they call in to the modem connected to ttyS1. IP 207.188.139.67 is the
box answering the modem and establishing the PPP.
That is all I can remember at the moment. There may be something else I
forgot. If you have trouble, show me the error message.
--
Jim
More information about the Kclug
mailing list