PPP REconnecting strange

PPP REconnecting strange

Post by daniel_weid.. » Mon, 07 Jun 1999 04:00:00



Hi,

Can someone help me please with a strange behavior
I noticed
with pppd:
Usually /var/log/messages shows me the following
after
dropping down my PPP connection:

Jun  6 17:36:23 linux pppd[2911]: Terminating on
signal 2.
Jun  6 17:36:23 linux pppd[2911]: sent [LCP
TermReq id=0x2]
Jun  6 17:36:24 linux pppd[2911]: rcvd [LCP
TermAck id=0x2]
Jun  6 17:36:24 linux pppd[2911]: Connection
terminated.
Jun  6 17:36:24 linux pppd[2911]: Exit.
Jun  6 17:37:56 linux kernel: PPP: ppp line
discipline successfully unregistered

You should notice the time gap betwen the two last
log lines: 92 seconds!!!
This seems to be the reason why sometimes the
connection establishment
is cancelled, and this only because I reconnected
immediately after
disconnecting (i.e. without waiting up to 92
seconds...).
In this case I got the following log snip:

Jun  6 17:33:44 linux pppd[2537]: Terminating on
signal 2.
Jun  6 17:33:44 linux pppd[2537]: sent [LCP
TermReq id=0x2]
Jun  6 17:33:44 linux pppd[2537]: rcvd [LCP
TermAck id=0x2]
Jun  6 17:33:44 linux pppd[2537]: Connection
terminated.
Jun  6 17:33:45 linux pppd[2537]: Exit.
       ^^^^^^^^
Jun  6 17:34:22 linux pppd[2696]: pppd 2.2.0
started by i, uid 500
Jun  6 17:34:25 linux chat[2713]: timeout set to
60 seconds
Jun  6 17:34:25 linux chat[2713]: abort on (NO
CARRIER)
Jun  6 17:34:25 linux chat[2713]: abort on (BUSY)
Jun  6 17:34:25 linux chat[2713]: abort on (NO
DIALTONE)
Jun  6 17:34:25 linux chat[2713]: abort on (ERROR)
Jun  6 17:34:25 linux chat[2713]: send (+++ATZ^M)
Jun  6 17:34:25 linux chat[2713]: expect (OK)
Jun  6 17:34:26 linux chat[2713]: ATZ^M^M
Jun  6 17:34:26 linux chat[2713]: OK -- got it
Jun  6 17:34:26 linux chat[2713]: send
(ATDT010110191501^M)
Jun  6 17:34:26 linux chat[2713]: expect (CONNECT)
Jun  6 17:34:26 linux chat[2713]: ^M
Jun  6 17:34:50 linux kernel: PPP: ppp line
discipline successfully unregistered
       ^^^^^^^^
Jun  6 17:34:55 linux chat[2713]:
ATDT010110191501^M^M
Jun  6 17:34:55 linux chat[2713]: CONNECT -- got
it
Jun  6 17:34:55 linux chat[2713]: send (^M)
Jun  6 17:34:55 linux pppd[2696]: Serial
connection established.
Jun  6 17:35:02 linux kernel: PPP: version 2.2.0
(dynamic channel allocation)
Jun  6 17:35:02 linux kernel: PPP Dynamic channel
allocation code copyright 1995 Caldera, Inc.
Jun  6 17:35:02 linux kernel: PPP line discipline
registered.
Jun  6 17:35:02 linux kernel: registered device
ppp0
Jun  6 17:35:02 linux pppd[2696]: Using interface
ppp0
Jun  6 17:35:02 linux pppd[2696]: Connect: ppp0
<--> /dev/modem
Jun  6 17:35:02 linux pppd[2696]: sent [LCP
ConfReq id=0x1 <mru 1500> <magic 0x29ab97b1>
<pcomp> <accomp>]
Jun  6 17:35:05 linux pppd[2696]: sent [LCP
ConfReq id=0x1 <mru 1500> <magic 0x29ab97b1>
<pcomp> <accomp>]
Jun  6 17:35:06 linux pppd[2696]: Hangup (SIGHUP)
Jun  6 17:35:06 linux pppd[2696]: Modem hangup
Jun  6 17:35:06 linux pppd[2696]: Connection
terminated.
Jun  6 17:35:06 linux pppd[2696]: Exit.

- Does someone understand why things got wrong in
this case?
- Do I always have to wait the time until
  "ppp line discipline successfully unregistered"
before
  safely reconnecting PPP?
- Is there a way to make the kernel react more
rapidly
  i.e. unregister more quickly?

Thanks for help,
Daniel.

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.