Leased Line Configuration problem
"R. Koirala" (ranjan@wlink.com.np)
Wed, 26 May 1999 16:49:56 +0500
Hi,
I am trying to connect linux servers running redhat 5.2 through a leased
line connection using Multi Tech's 224E modem, configured in leased line
mode.
I am using mgetty for this.
I have the following configuration on my answering server side running
mgetty:
/usr/local/etc/mgetty+sendfax/mgetty.conf
<bigger># for only lease mode
port ttyS1
speed 1200
debug 9
data-only y
init-chat ATC1&D3&L1S0=3D1&W&W1
</bigger>
/usr/local/etc/mgetty+sendfax/login.conf
***please see the autoppp part ***
<bigger># login.config
#
# SAMPLES:
#
# Automatic PPP startup on receipt of LCP configure request (AutoPPP).
# mgetty has to be compiled with "-DAUTO_PPP" for this to work.
# Warning: Case is significant, AUTOPPP or autoppp won't work!
# Consult the "pppd" man page to find pppd options that work for you.
#
# NOTE: for *some* users, the "-detach" option has been necessary, for=20
# others, not at all. If your pppd doesn't die after hangup, try
it.
#
# NOTE2: "kdebug 7 debug" creates lots of debugging info. If all=20
works,
# remove those!
#
/AutoPPP/ - - /usr/sbin/pppd auth login -chap +pap modem crtscts proxyarp
kdebug 7 debug lock
#
#
# An example where no login name in the argument list is desired:
# automatically telnetting to machine "smarty" for a given login name
#
#telnet-smarty gast telnet /usr/bin/telnet -8 smarty
#
# This is the "standard" behaviour - *dont* set a userid or utmp
# entry here, otherwise /bin/login will fail!
# This entry isn't really necessary: if it's missing, the built-in
# default will do exactly this.
#
* - - /bin/login @
</bigger>
The log file( /var/log/mgetty.ttyS1 looks like this:
<bigger>--
05/26 12:32:53 yS1 mgetty: experimental test release 1.1.14-Apr02
05/26 12:32:53 yS1 mgetty.c compiled at May 26 1999, 10:35:45
05/26 12:32:53 yS1 user id: 0, parent pid: 1
05/26 12:32:53 yS1 reading configuration data for port 'ttyS1'
05/26 12:32:53 yS1 reading
/usr/local/etc/mgetty+sendfax/mgetty.config...
05/26 12:32:53 yS1 conf lib: read: 'speed 1200'
05/26 12:32:53 yS1 conf lib: read: 'port-owner uucp'
05/26 12:32:53 yS1 conf lib: read: 'port-group uucp'
05/26 12:32:53 yS1 conf lib: read: 'port-mode 0664'
05/26 12:32:53 yS1 conf lib: read: 'port ttyS0'
05/26 12:32:53 yS1 section: port ttyS0, ignore
05/26 12:32:53 yS1 conf lib: read: 'debug 9'
05/26 12:32:53 yS1 conf lib: read: 'data-only y'
05/26 12:32:53 yS1 conf lib: read: 'init AT&F\r\n OK\r\n'
05/26 12:32:53 yS1 key: 'speed', type=3D0, flags=3D2, data=3D1200
05/26 12:32:53 yS1 key: 'switchbd', type=3D0, flags=3D1, data=3D0
05/26 12:32:53 yS1 key: 'direct', type=3D3, flags=3D2, data=3DTRUE
05/26 12:32:53 yS1 key: 'blocking', type=3D3, flags=3D1, data=3DFALSE
05/26 12:32:53 yS1 key: 'port-owner', type=3D1, flags=3D3, data=3Duucp
05/26 12:32:53 yS1 key: 'port-group', type=3D1, flags=3D3, data=3Duucp
05/26 12:32:53 yS1 key: 'port-mode', type=3D0, flags=3D3, data=3D436
05/26 12:32:53 yS1 key: 'toggle-dtr', type=3D3, flags=3D1, data=3DTRUE
05/26 12:32:53 yS1 key: 'toggle-dtr-waittime', type=3D0, flags=3D1,
data=3D500
05/26 12:32:53 yS1 key: 'data-only', type=3D3, flags=3D1, data=3DFALSE
05/26 12:32:53 yS1 key: 'fax-only', type=3D3, flags=3D1, data=3DFALSE
05/26 12:32:53 yS1 key: 'modem-type', type=3D1, flags=3D1, data=3Dauto
05/26 12:32:53 yS1 key: 'modem-quirks', type=3D0, flags=3D0, data=3D(empty=
)
05/26 12:32:53 yS1 key: 'init-chat', type=3D2, flags=3D1, data=3D \dATQ0V1=
H0
OK ATM0&C1&D3&L1S0=3D1&W&W1 OK=20
05/26 12:32:53 yS1 key: 'force-init-chat', type=3D2, flags=3D1, data=3D
\d=10=03\d\d\d+++\d\d\d
\dATQ0V1H0 OK=20
05/26 12:32:53 yS1 key: 'modem-check-time', type=3D0, flags=3D1,=20
data=3D3600
05/26 12:32:53 yS1 key: 'rings', type=3D0, flags=3D1, data=3D1
05/26 12:32:53 yS1 key: 'get-cnd-chat', type=3D2, flags=3D0, data=3D(empty=
)
05/26 12:32:53 yS1 key: 'answer-chat', type=3D2, flags=3D1, data=3D ATA
CONNECT \c=20
=20
05/26 12:32:53 yS1 key: 'answer-chat-timeout', type=3D0, flags=3D1,
data=3D80
05/26 12:32:53 yS1 key: 'autobauding', type=3D3, flags=3D1, data=3DFALSE
05/26 12:32:53 yS1 key: 'ringback', type=3D3, flags=3D1, data=3DFALSE
05/26 12:32:53 yS1 key: 'ringback-time', type=3D0, flags=3D1, data=3D30
05/26 12:32:53 yS1 key: 'ignore-carrier', type=3D3, flags=3D1, data=3DFALS=
E
05/26 12:32:53 yS1 key: 'issue-file', type=3D1, flags=3D1,=20
data=3D/etc/issue
05/26 12:32:53 yS1 key: 'prompt-waittime', type=3D0, flags=3D1, data=3D500
05/26 12:32:53 yS1 key: 'login-prompt', type=3D1, flags=3D1, data=3D@!logi=
n:=20
05/26 12:32:53 yS1 key: 'login-time', type=3D0, flags=3D1, data=3D240
05/26 12:32:53 yS1 key: 'fido-send-emsi', type=3D3, flags=3D1, data=3DTRUE
05/26 12:32:53 yS1 key: 'fax-id', type=3D1, flags=3D1, data=3D49 89=20
xxxxxxxx
05/26 12:32:53 yS1 key: 'fax-server-file', type=3D1, flags=3D0,
data=3D(empty)
05/26 12:32:53 yS1 key: 'diskspace', type=3D0, flags=3D1, data=3D1024
05/26 12:32:53 yS1 key: 'notify', type=3D1, flags=3D1, data=3Dfaxadmin
05/26 12:32:53 yS1 key: 'fax-owner', type=3D1, flags=3D1, data=3Duucp
05/26 12:32:53 yS1 key: 'fax-group', type=3D1, flags=3D0, data=3D(empty)
05/26 12:32:53 yS1 key: 'fax-mode', type=3D0, flags=3D1, data=3D432
05/26 12:32:53 yS1 key: 'debug', type=3D0, flags=3D2, data=3D9
05/26 12:32:53 yS1 key: 'statistics-chat', type=3D2, flags=3D0,
data=3D(empty)
05/26 12:32:53 yS1 key: 'statistics-file', type=3D1, flags=3D0,
data=3D(empty)
05/26 12:32:53 yS1 key: 'gettydefs', type=3D1, flags=3D1, data=3Dn
05/26 12:32:53 yS1 key: 'term', type=3D1, flags=3D0, data=3D(empty)
05/26 12:32:53 yS1 check for lockfiles
05/26 12:32:53 yS1 checklock: stat failed, no file
05/26 12:32:53 yS1 locking the line
05/26 12:32:53 yS1 makelock(ttyS1) called
05/26 12:32:53 yS1 do_makelock: lock=3D'/var/lock/LCK..ttyS1'
05/26 12:32:53 yS1 lock made
05/26 12:32:53 yS1 tio_get_rs232_lines: status: RTS CTS DTR
05/26 12:32:53 yS1 WARNING: DSR is off - modem turned off or bad=20
cable?
05/26 12:32:53 yS1 lowering DTR to reset Modem
05/26 12:32:54 yS1 tss: set speed to 1200 (011)
05/26 12:32:54 yS1 tio_set_flow_control( HARD )
05/26 12:32:54 yS1 waiting for line to clear (VTIME), read:=20
05/26 12:32:54 yS1 waiting for line to clear (VTIME), read:=20
05/26 12:32:54 yS1 removing lock file
05/26 12:32:54 yS1 waiting...
05/26 12:33:24 yS1 select returned 1
05/26 12:33:24 yS1 checking lockfiles, locking the line
05/26 12:33:24 yS1 makelock(ttyS1) called
05/26 12:33:24 yS1 do_makelock: lock=3D'/var/lock/LCK..ttyS1'
05/26 12:33:24 yS1 lock made
05/26 12:33:24 yS1 waiting for line to clear (VTIME), read:
[00][08][08][08][00][08][08][08]
05/26 12:33:25 yS1 looking for utmp entry... (my PID: 3488)
05/26 12:33:25 yS1 utmp + wtmp entry made
05/26 12:33:25 yS1 tio_set_flow_control( HARD )
05/26 12:33:25 yS1 print welcome banner (/etc/issue)
05/26 12:33:25 yS1 getlogname (AUTO_PPP),
read:[08][f8][08][08][f8][08][08][00][08][08][08][08][08][00][08][08][08][08=
][08][08][08][08][08][08][08][08][08][08][08][08][00][08][08][08][08][08][08=
][08][00][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][00=
][08][08][08][08][08][08][08][08][08][08][08][00][f8][08][08][00][08][08][08=
][08][08][08][08][08][08][00][08][08][08][08][08][08][08][08][08][08][08][08=
][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08=
][08][08][00][08][08][08][08][08][00][f8][08][08][08][08][08][08][08][f8][08=
][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][00][08][08][08=
][08][08][08][08][08][08][08][08][00][08][08][08][08][08][08][08][00][08][08=
][08][08][08][08][08][00][f8][08][08][08][08][08][08][08][08][08][08][08][08=
][08][00][08][08][08][08][08][08][08][08][08][00][08][08][08][08][08][08][08=
][08][08][08][08][08][08][08][08][08][00][08][08][08][08][08][08][08][08][08=
][08][08][00][f8][08][08][00][08][08][08][08][08][08][08][08][08][08][08][08=
][08][08][08][08][00][08][08][08][08][08][08][08][08][00][08][08][08][08][08=
][08][08][08][08][08][00][08][08][08][08][08][08][08][08][08][08][08][08][08=
][00][f8][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][00][08=
][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08=
][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][00][f8][08][08=
][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][00=
][08][08][08][08][08][08][08][08][00][08][08][08][08][08][08][08][08][08][08=
][08][08][08][08][08][08][00][08][08][08][08][08][00][f8][08][08][08][08][08=
][08][08][08][08][f8][08][08][08][08][08][08][f8][08][08][08][08][08][08][08=
][08][08][f8][08][08][08][08][08][08][08][08][f8][08][08][08][08][08][08][08=
][00][08][08][08][08][08][08][08][00][f8][08][08][08][08][08][08][00][08][08=
][08][08][08][08][08][08][08][08][08][08][08][08][08][08][00][08][08][08][08=
][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08][08]k[8=
3]
05/26 12:35:30 yS1 getlogname (AUTO_PPP), read:FkG[e2]
05/26 12:35:31 ##### failed dev=3DttyS1, pid=3D3488, got signal 1, exiting
05/26 12:35:31 yS1 removing lock file
The originating side I am trying to connect using ppp.
Can sombody pls suggest me how I should go about this. Or=20
is there any other ways I can configure the lease line using the standard
modem with mgetty.
TIA.
REgards,
ranjan
</bigger>