[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

error configurando coneccion por telefono de un debian a otro



saludos a todos

necesito conectar 2 debians via telefonica, el 1ro ya ejecuta la llamada correctamente, pero en la relacion mgetty y pppd en la maquina que recibe la llamada tengo un problema que no logro darme cuenta que es.

no voy a especificar la configuracion de wvdial en la maquina que llama porque esta operacion se efecuta correctamente, incluso llego a ver el prompt de la maquina destino
esto en lo que me sale en la terminal cuando efectuo la llamada
********************************
server1:/var/log# wvdial
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT<telefono>
--> Waiting for carrier.
ATDT<telefono>
CONNECT 24000/ARQ/V34/LAPM/V42BIS
--> Carrier detected.  Waiting for prompt.
Debian GNU/Linux ttyS0 57600 (21600/ARQ/V34/LAPM/V42BIS)
**EMSI_REQA77E
[11]
enediel.domain.com login:
Debian GNU/Linux ttyS0 57600 (21600/ARQ/V34/LAPM/V42BIS)
**EMSI_REQA77E
[11]
enediel.domain.com login:
--> Looks like a login prompt.
--> Sending: ppp
ppp
Password:
--> Looks like a password prompt.
--> Sending: (password)
Last login: Thu Apr  6 10:41:04 2006 on ttyS0
Linux enediel.domain.com 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
ppp@enediel:~$
--> Hmm... a prompt.  Sending "ppp".
ppp
-bash: ppp: command not found
ppp@enediel:~$
--> Hmm... a prompt.  Sending "ppp".
ppp
-bash: ppp: command not found
ppp@enediel:~$
--> Hmm... a prompt.  Sending "ppp".
--> Don't know what to do!  Starting pppd and hoping for the best.
--> Starting pppd at Thu Apr  6 10:50:26 2006
--> pid of pppd: 19873
--> Using interfdomain ppp0
--> Disconnecting at Thu Apr  6 10:51:35 2006
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.


************************

en la maquina que debe de erecibir la llamada

en /etc/inittab tengo la siguiente declaracion al final
T0:2345:respawn:/sbin/mgetty -x8 -s 57600 ttyS0

el modem esta conectado al com1, incluso configure a modo de prueba el wvdial y probe efectuar una llamada a un telefono normal, todo sin problemas.

cree un usario de prueba, con el que estoy intentando efectuar la conexion
ppp:x:1003:1003:,,,:/home/ppp:/bin/bash


esto es lo que recibo en /var/log/mgetty/mg_ttyS0.log

04/06 11:21:59 yS0  mgetty: interim release 1.1.33-Apr10
04/06 11:21:59 yS0   mgetty.c compiled at May 12 2005, 16:30:23
04/06 11:21:59 yS0   user id: 0, pid: 9579, parent pid: 1
04/06 11:21:59 yS0   reading configuration data for port 'ttyS0'
04/06 11:21:59 yS0   reading /etc/mgetty/mgetty.config...
04/06 11:21:59 yS0   conf lib: read: 'debug 4'
04/06 11:21:59 yS0   conf lib: read: 'fax-id '
04/06 11:21:59 yS0   conf lib: read: 'speed 38400'
04/06 11:21:59 yS0   conf lib: read: 'issue-file /etc/issue.mgetty'
04/06 11:21:59 yS0   key: 'speed', type=0, flags=2, data=57600
04/06 11:21:59 yS0   key: 'switchbd', type=0, flags=1, data=0
04/06 11:21:59 yS0   key: 'direct', type=3, flags=1, data=FALSE
04/06 11:21:59 yS0   key: 'blocking', type=3, flags=1, data=FALSE
04/06 11:21:59 yS0   key: 'port-owner', type=1, flags=1, data=root
04/06 11:21:59 yS0   key: 'port-group', type=1, flags=1, data=dialout
04/06 11:21:59 yS0   key: 'port-mode', type=0, flags=1, data=432
04/06 11:21:59 yS0   key: 'toggle-dtr', type=3, flags=1, data=TRUE
04/06 11:21:59 yS0   key: 'toggle-dtr-waittime', type=0, flags=1, data=500
04/06 11:21:59 yS0   key: 'need-dsr', type=3, flags=1, data=FALSE
04/06 11:21:59 yS0   key: 'data-only', type=3, flags=1, data=FALSE
04/06 11:21:59 yS0   key: 'fax-only', type=3, flags=1, data=FALSE
04/06 11:21:59 yS0   key: 'modem-type', type=1, flags=1, data=auto
04/06 11:21:59 yS0   key: 'modem-quirks', type=0, flags=0, data=(empty)
04/06 11:21:59 yS0 key: 'init-chat', type=2, flags=1, data= \dATQ0V1H0 OK AT OK \dATQ0V1H0 OK yS0 key: 'force-init-chat', type=2, flags=1, data= \d\d\d\d+++\d\d\d
04/06 11:21:59 yS0   key: 'post-init-chat', type=2, flags=0, data=(empty)
04/06 11:21:59 yS0   key: 'data-flow', type=4, flags=1, data=1
04/06 11:21:59 yS0   key: 'fax-send-flow', type=4, flags=1, data=7
04/06 11:21:59 yS0   key: 'fax-rec-flow', type=4, flags=1, data=7
04/06 11:21:59 yS0   key: 'modem-check-time', type=0, flags=1, data=3600
04/06 11:21:59 yS0   key: 'rings', type=0, flags=1, data=1
04/06 11:21:59 yS0   key: 'msn-list', type=2, flags=0, data=(empty)
04/06 11:21:59 yS0   key: 'get-cnd-chat', type=2, flags=0, data=(empty)
04/06 11:21:59 yS0   key: 'cnd-program', type=1, flags=0, data=(empty)
04/06 11:21:59 yS0 key: 'answer-chat', type=2, flags=1, data= ATA CONNECT \c

04/06 11:21:59 yS0   key: 'answer-chat-timeout', type=0, flags=1, data=80
04/06 11:21:59 yS0   key: 'autobauding', type=3, flags=1, data=FALSE
04/06 11:21:59 yS0   key: 'ringback', type=3, flags=1, data=FALSE
04/06 11:21:59 yS0   key: 'ringback-time', type=0, flags=1, data=30
04/06 11:21:59 yS0   key: 'ignore-carrier', type=3, flags=1, data=FALSE
04/06 11:21:59 yS0 key: 'issue-file', type=1, flags=3, data=/etc/issue.mgetty
04/06 11:21:59 yS0   key: 'prompt-waittime', type=0, flags=1, data=500
04/06 11:21:59 yS0   key: 'login-prompt', type=1, flags=1, data=@ login:
04/06 11:21:59 yS0   key: 'login-time', type=0, flags=1, data=240
04/06 11:21:59 yS0   key: 'fido-send-emsi', type=3, flags=1, data=TRUE
04/06 11:21:59 yS0 key: 'login-conf-file', type=1, flags=1, data=login.config
04/06 11:21:59 yS0   key: 'fax-id', type=1, flags=3, data=
04/06 11:21:59 yS0   key: 'fax-min-speed', type=0, flags=1, data=0
04/06 11:21:59 yS0   key: 'fax-max-speed', type=0, flags=1, data=14400
04/06 11:21:59 yS0   key: 'fax-server-file', type=1, flags=0, data=(empty)
04/06 11:21:59 yS0   key: 'diskspace', type=0, flags=1, data=1024
04/06 11:21:59 yS0   key: 'notify', type=1, flags=1, data=root
04/06 11:21:59 yS0   key: 'fax-owner', type=1, flags=1, data=root
04/06 11:21:59 yS0   key: 'fax-group', type=1, flags=1, data=fax
04/06 11:21:59 yS0   key: 'fax-mode', type=0, flags=1, data=432
04/06 11:21:59 yS0 key: 'fax-spool-in', type=1, flags=1, data=/var/spool/fax/incoming:/tmp
04/06 11:21:59 yS0   key: 'debug', type=0, flags=2, data=8
04/06 11:21:59 yS0   key: 'statistics-chat', type=2, flags=0, data=(empty)
04/06 11:21:59 yS0   key: 'statistics-file', type=1, flags=0, data=(empty)
04/06 11:21:59 yS0   key: 'gettydefs', type=1, flags=1, data=n
04/06 11:21:59 yS0   key: 'term', type=1, flags=0, data=(empty)
04/06 11:21:59 yS0  check for lockfiles
04/06 11:21:59 yS0   checklock: stat failed, no file
04/06 11:21:59 yS0  locking the line
04/06 11:21:59 yS0   makelock(ttyS0) called
04/06 11:21:59 yS0   do_makelock: lock='/var/lock/LCK..ttyS0'
04/06 11:21:59 yS0   lock made
04/06 11:22:00 yS0   tio_get_rs232_lines: status: RTS DTR
04/06 11:22:00 yS0  WARNING: DSR is off - modem turned off or bad cable?
04/06 11:22:00 yS0  lowering DTR to reset Modem
04/06 11:22:00 yS0   tss: set speed to 57600 (10001)
04/06 11:22:00 yS0   tio_set_flow_control( HARD )
04/06 11:22:00 yS0   waiting for line to clear (VTIME=1), read:
04/06 11:22:01 yS0  send: \dATQ0V1H0[0d]
04/06 11:22:01 yS0  waiting for ``OK''
04/06 11:22:01 yS0   got:
04/06 11:22:21 yS0  timeout in chat script, waiting for `OK'
04/06 11:22:21 yS0  init chat timed out, trying force-init-chat
04/06 11:22:21 yS0 send: \d[10][03]\d\d\d+++\d\d\denediel:/var/log/mgetty# cat > mg_ttyS0.log

[2]+  Stopped                 cat >mg_ttyS0.log
enediel:/var/log/mgetty# cat mg_ttyS0.log

04/06 11:23:31 yS0  timeout in chat script, waiting for `OK'
04/06 11:23:31 yS0  init chat failed, exiting...: Interrupted system call
04/06 11:23:31 ##### failed in mg_init_data, dev=ttyS0, pid=9770

04/06 11:23:31 yS0   removing lock file
--
04/06 11:23:31 yS0  mgetty: interim release 1.1.33-Apr10
04/06 11:23:31 yS0   mgetty.c compiled at May 12 2005, 16:30:23
04/06 11:23:31 yS0   user id: 0, pid: 9928, parent pid: 1
04/06 11:23:31 yS0   reading configuration data for port 'ttyS0'
04/06 11:23:31 yS0   reading /etc/mgetty/mgetty.config...
04/06 11:23:31 yS0   conf lib: read: 'debug 4'
04/06 11:23:31 yS0   conf lib: read: 'fax-id '
04/06 11:23:31 yS0   conf lib: read: 'speed 38400'
04/06 11:23:31 yS0   conf lib: read: 'issue-file /etc/issue.mgetty'
04/06 11:23:31 yS0   key: 'speed', type=0, flags=2, data=57600
04/06 11:23:31 yS0   key: 'switchbd', type=0, flags=1, data=0
04/06 11:23:31 yS0   key: 'direct', type=3, flags=1, data=FALSE
04/06 11:23:31 yS0   key: 'blocking', type=3, flags=1, data=FALSE
04/06 11:23:31 yS0   key: 'port-owner', type=1, flags=1, data=root
04/06 11:23:31 yS0   key: 'port-group', type=1, flags=1, data=dialout
04/06 11:23:31 yS0   key: 'port-mode', type=0, flags=1, data=432
04/06 11:23:31 yS0   key: 'toggle-dtr', type=3, flags=1, data=TRUE
04/06 11:23:31 yS0   key: 'toggle-dtr-waittime', type=0, flags=1, data=500
04/06 11:23:31 yS0   key: 'need-dsr', type=3, flags=1, data=FALSE
04/06 11:23:31 yS0   key: 'data-only', type=3, flags=1, data=FALSE
04/06 11:23:31 yS0   key: 'fax-only', type=3, flags=1, data=FALSE
04/06 11:23:31 yS0   key: 'modem-type', type=1, flags=1, data=auto
04/06 11:23:31 yS0   key: 'modem-quirks', type=0, flags=0, data=(empty)
04/06 11:23:31 yS0 key: 'init-chat', type=2, flags=1, data= \dATQ0V1H0 OK AT OK \dATQ0V1H0 OK yS0 key: 'force-init-chat', type=2, flags=1, data= \d\d\d\d+++\d\d\d
04/06 11:23:31 yS0   key: 'post-init-chat', type=2, flags=0, data=(empty)
04/06 11:23:31 yS0   key: 'data-flow', type=4, flags=1, data=1
04/06 11:23:31 yS0   key: 'fax-send-flow', type=4, flags=1, data=7
04/06 11:23:31 yS0   key: 'fax-rec-flow', type=4, flags=1, data=7
04/06 11:23:31 yS0   key: 'modem-check-time', type=0, flags=1, data=3600
04/06 11:23:31 yS0   key: 'rings', type=0, flags=1, data=1
04/06 11:23:31 yS0   key: 'msn-list', type=2, flags=0, data=(empty)
04/06 11:23:31 yS0   key: 'get-cnd-chat', type=2, flags=0, data=(empty)
04/06 11:23:31 yS0   key: 'cnd-program', type=1, flags=0, data=(empty)
04/06 11:23:31 yS0 key: 'answer-chat', type=2, flags=1, data= ATA CONNECT \c

04/06 11:23:31 yS0   key: 'answer-chat-timeout', type=0, flags=1, data=80
04/06 11:23:31 yS0   key: 'autobauding', type=3, flags=1, data=FALSE
04/06 11:23:31 yS0   key: 'ringback', type=3, flags=1, data=FALSE
04/06 11:23:31 yS0   key: 'ringback-time', type=0, flags=1, data=30
04/06 11:23:31 yS0   key: 'ignore-carrier', type=3, flags=1, data=FALSE
04/06 11:23:31 yS0 key: 'issue-file', type=1, flags=3, data=/etc/issue.mgetty
04/06 11:23:31 yS0   key: 'prompt-waittime', type=0, flags=1, data=500
04/06 11:23:31 yS0   key: 'login-prompt', type=1, flags=1, data=@ login:
04/06 11:23:31 yS0   key: 'login-time', type=0, flags=1, data=240
04/06 11:23:31 yS0   key: 'fido-send-emsi', type=3, flags=1, data=TRUE
---------------------------------------------------------------------------------------------

/etc/mgetty/login.config tiene estas dos lineas que no son comentarios

/AutoPPP/ -     a_ppp   /usr/sbin/pppd auth -chap +pap login debug
*       -       -       /bin/login @


gracias por cualquier sugerencia de como resolver el problema

saludos
Enediel



Linux user 300141
Debian GNU/Linux




Reply to: