help ppp dial in server setup in RH6.0 using mgetty:files

"Dr. S.K. Singh" (sks@goat.up.nic.in)
Mon, 27 Sep 1999 17:49:11 +0530




Hi,

I am trying to configure mgetty on ttySO using Multitech modem on a RedHat
(RH) 6.0 Linux to make it a dialin ppp server but could not get my modem
responding. The RH has very good configuration programme which configures
dialout ppp. 
var/log/messages says ppp started but script fails.


when i configure  modem for dialout then responds from outside
but does not give login and says initscript fails.but when i delete
/etc/ssyconfig/network-scripts/chat-ppp0 file then it does not
responds.


I wish to narrate what i did so that u can diagnose fault easilty.

Step 1

I added following lines
---------------------------------
**in /etc/inittab
S0:45:respawn:/sbin/mgetty -D -x2 /dev/ttyS0

--------------------------------------------
**in /etc/ppp/options
-detach

---------------------------------------
**my /etc/ppp/options/options.ttyS0
192.168.1.21:192.168.1.24

-------------------------------------
**my /etc/mgetty+sendfax files
a. login.config

/AutoPPP/ - a_ppp /usr/sbin/pppd auth +pap login kdebug 7 debug

----------------------------------------------------------
** mgetty configuration file

# set the global debug level to "4" (default from policy.h)
debug 4

# set the local fax station id
fax-id 49 89 xxxxxxxx

# access the modem(s) with 38400 bps
#speed 38400
speed 115200

#  use these options to make the /dev/tty-device owned by "uucp.uucp" 
#  and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!*
#port-owner uucp
#port-group uucp
#port-mode 0664

#  use these options to make incoming faxes owned by "root.uucp" 
#  and mode "rw-r-----" (0640). *LEADING ZERO NEEDED!*
#fax-owner root
#fax-group uucp
#fax-mode 0640


# ----- port specific section -----
# 
# Here you can put things that are valid only for one line, not the others
#

# Zoom V.FX 28.8, connected to ttyS0: don't do fax, less logging
#
port ttyS0
#  debug 3
#  data-only y


---------------------------------------------------
**my /etc/sysconfig/network-scripts/ifcfg-ppp0 file


DEVICE="ppp0"
ONBOOT="yes"
USERCTL="yes"
MODEMPORT="/dev/ttyS0"
LINESPEED="115200"
PERSIST="yes"
DEFABORT="yes"
DEBUG="yes"
INITSTRING="ATZX1"
DEFROUTE="yes"
HARDFLOWCTL="yes"
ESCAPECHARS="no"
PPPOPTIONS=""
PAPNAME=""
REMIP=""
NETMASK="255.255.255.0"
IPADDR=""
MRU=""
MTU=""
DISCONNECTTIMEOUT=""
RETRYTIMEOUT="5"
BOOTPROTO="none"

/var/log/messages file

Sep 27 14:38:13 goat ifup-ppp: pppd started for ppp0 on /dev/ttyS0 at 115200
Sep 27 14:38:13 goat pppd[4241]: pppd 2.3.7 started by root, uid 0
Sep 27 14:38:14 goat chat[4243]: send (ATZX1s0=0^M)
Sep 27 14:38:14 goat chat[4243]: expect (OK)
Sep 27 14:38:14 goat chat[4243]: ATZX1s0=0^M^M
Sep 27 14:38:14 goat chat[4243]: OK
Sep 27 14:38:14 goat chat[4243]:  -- got it 
Sep 27 14:38:14 goat chat[4243]: send (^M)
Sep 27 14:38:14 goat chat[4243]: expect (CONNECT)
Sep 27 14:38:14 goat chat[4243]: ^M
Sep 27 14:38:59 goat chat[4243]: alarm
Sep 27 14:38:59 goat pppd[4241]: Connect script failed
Sep 27 14:38:59 goat chat[4243]: Failed
Sep 27 14:39:00 goat pppd[4241]: Exit.


This is all Kindly let me know what else I have to do to get ppp dial in
server functional.
Thanks!


*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
	Dr. S. K. Singh, 
Agril. Res. Services. Scientist (AG&B) and I/C ARIS Cell,
	CIRG, Makhdoom, Farah, Mathura
	281122, India. Ph. 91-565-7-63334(R)
		63246 (Fax), 63325 (O)
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*