Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 1999 00:33:39 +0100 (CET)
From:      Leif Neland <leif@swimsuit.internet.dk>
To:        freebsd-current@FreeBSD.ORG
Subject:   ppp: Do something if connection fails.
Message-ID:  <Pine.BSF.4.05.9901130027420.25540-100000@arnold.swimsuit.internet.dk>

next in thread | raw e-mail | index | archive | help
Is it possible to do something if the connection fails to get established?

When ppp fails, but instead just loops, I either turn the modem off and
on, or do a software reset.

But I don't want to reset the modem every time I want to dial out, as it
would take too long time.

When the connection loops, I get this in ppp.log

Jan 11 18:11:00 arnold ppp[20952]: tun0: Phase: bundle: Establish 
Jan 11 18:11:00 arnold ppp[20952]: tun0: Phase: deflink: closed -> opening 
Jan 11 18:11:00 arnold ppp[20952]: tun0: Phase: deflink: Connected! 
Jan 11 18:11:00 arnold ppp[20952]: tun0: Phase: deflink: opening -> dial 
Jan 11 18:11:00 arnold ppp[20952]: tun0: Phase: Phone: 12345678
Jan 11 18:11:00 arnold ppp[20952]: tun0: Chat: deflink: Dial attempt 1 of 1 
Jan 11 18:11:00 arnold ppp[20952]: tun0: Chat: Send: ATZ^M 
Jan 11 18:11:00 arnold ppp[20952]: tun0: Chat: Expect(5): OK 
Jan 11 18:11:01 arnold ppp[20952]: tun0: Chat: Received: ATZ^M^M 
Jan 11 18:11:01 arnold ppp[20952]: tun0: Chat: Received: OK^M 
Jan 11 18:11:01 arnold ppp[20952]: tun0: Chat: Send: ATE1^M 
Jan 11 18:11:01 arnold ppp[20952]: tun0: Chat: Expect(5): OK 
Jan 11 18:11:01 arnold ppp[20952]: tun0: Chat: Received: ATE1^M^M 
Jan 11 18:11:01 arnold ppp[20952]: tun0: Chat: Received: OK^M 
Jan 11 18:11:01 arnold ppp[20952]: tun0: Chat: Send: AT&K00B40DI12345678^M 
Jan 11 18:11:02 arnold ppp[20952]: tun0: Chat: Expect(15): CONNECT 
Jan 11 18:11:02 arnold ppp[20952]: tun0: Chat: Received: 
AT&K00B40DI12345678^M^M 
Jan 11 18:11:02 arnold ppp[20952]: tun0: Chat: Received: CONNECT 115200/PPP  64000/NONE^M 
Jan 11 18:11:02 arnold ppp[20952]: tun0: Phase: deflink: dial -> login 
Jan 11 18:11:02 arnold ppp[20952]: tun0: Phase: deflink: login -> lcp 
Jan 11 18:11:02 arnold ppp[20952]: tun0: LCP: FSM: Using "deflink" as a transport 
Jan 11 18:11:02 arnold ppp[20952]: tun0: LCP: deflink: State change Initial --> Closed 
Jan 11 18:11:02 arnold ppp[20952]: tun0: Phase: deflink: Entering STOPPED state for 2 seconds 
Jan 11 18:11:02 arnold ppp[20952]: tun0: LCP: deflink: State change Closed --> Stopped 
Jan 11 18:11:04 arnold ppp[20952]: tun0: LCP: deflink: LayerStart 
Jan 11 18:11:04 arnold ppp[20952]: tun0: LCP: deflink: SendConfigReq(134) state = Stopped 
Jan 11 18:11:04 arnold ppp[20952]: tun0: LCP:  ACFCOMP[2] 
Jan 11 18:11:04 arnold ppp[20952]: tun0: LCP:  PROTOCOMP[2] 
Jan 11 18:11:04 arnold ppp[20952]: tun0: LCP:  ACCMAP[6] 0x00000000 
Jan 11 18:11:04 arnold ppp[20952]: tun0: LCP:  MRU[4] 1500 
Jan 11 18:11:04 arnold ppp[20952]: tun0: LCP:  MAGICNUM[6] 0x6954f108 
Jan 11 18:11:05 arnold ppp[20952]: tun0: LCP: deflink: State change Stopped --> Req-Sent 
Jan 11 18:11:05 arnold ppp[20952]: tun0: LCP: deflink: RecvConfigRej(134) state = Req-Sent 
Jan 11 18:11:05 arnold ppp[20952]: tun0: LCP:  PROTOCOMP[2] 
Jan 11 18:11:05 arnold ppp[20952]: tun0: LCP:  ACFCOMP[2] 
Jan 11 18:11:05 arnold ppp[20952]: tun0: LCP: deflink: SendConfigReq(135) state = Req-Sent 
Jan 11 18:11:05 arnold ppp[20952]: tun0: LCP:  ACCMAP[6] 0x00000000 
Jan 11 18:11:05 arnold ppp[20952]: tun0: LCP:  MRU[4] 1500 
Jan 11 18:11:05 arnold ppp[20952]: tun0: LCP:  MAGICNUM[6] 0x6954f108 
Jan 11 18:11:08 arnold ppp[20952]: tun0: LCP: deflink: SendConfigReq(135) state = Req-Sent 
Jan 11 18:11:08 arnold ppp[20952]: tun0: LCP:  ACCMAP[6] 0x00000000 
Jan 11 18:11:08 arnold ppp[20952]: tun0: LCP:  MRU[4] 1500 
Jan 11 18:11:08 arnold ppp[20952]: tun0: LCP:  MAGICNUM[6] 0x6954f108 
Jan 11 18:11:11 arnold ppp[20952]: tun0: LCP: deflink: SendConfigReq(135) state = Req-Sent 
Jan 11 18:11:11 arnold ppp[20952]: tun0: LCP:  ACCMAP[6] 0x00000000 
Jan 11 18:11:11 arnold ppp[20952]: tun0: LCP:  MRU[4] 1500 
Jan 11 18:11:11 arnold ppp[20952]: tun0: LCP:  MAGICNUM[6] 0x6954f108 
Jan 11 18:11:14 arnold ppp[20952]: tun0: LCP: deflink: SendConfigReq(135) state = Req-Sent 
Jan 11 18:11:14 arnold ppp[20952]: tun0: LCP:  ACCMAP[6] 0x00000000 
Jan 11 18:11:14 arnold ppp[20952]: tun0: LCP:  MRU[4] 1500 
Jan 11 18:11:14 arnold ppp[20952]: tun0: LCP:  MAGICNUM[6] 0x6954f108 
Jan 11 18:11:17 arnold ppp[20952]: tun0: LCP: deflink: SendConfigReq(135) state = Req-Sent 
Jan 11 18:11:17 arnold ppp[20952]: tun0: LCP:  ACCMAP[6] 0x00000000 
Jan 11 18:11:17 arnold ppp[20952]: tun0: LCP:  MRU[4] 1500 
Jan 11 18:11:17 arnold ppp[20952]: tun0: LCP:  MAGICNUM[6] 0x6954f108 
Jan 11 18:11:20 arnold ppp[20952]: tun0: LCP: deflink: LayerFinish 
Jan 11 18:11:20 arnold ppp[20952]: tun0: LCP: deflink: State change Req-Sent --> Stopped 
Jan 11 18:11:20 arnold ppp[20952]: tun0: LCP: deflink: State change Stopped --> Closed 
Jan 11 18:11:20 arnold ppp[20952]: tun0: LCP: deflink: State change Closed --> Initial 
Jan 11 18:11:20 arnold ppp[20952]: tun0: Phase: deflink: Disconnected! 
Jan 11 18:11:20 arnold ppp[20952]: tun0: Phase: deflink: lcp -> hangup 
Jan 11 18:11:20 arnold ppp[20952]: tun0: Phase: deflink: Connect time: 20 secs: 25 octets in, 272 octets out 
Jan 11 18:11:20 arnold ppp[20952]: tun0: Phase:  total 14 bytes/sec, peak 33 bytes/sec on Mon Jan 11 18:11:20 1999 
Jan 11 18:11:20 arnold ppp[20952]: tun0: Phase: deflink: hangup -> closed 
Jan 11 18:11:20 arnold ppp[20952]: tun0: Phase: bundle: Dead 


What's happening?

Leif



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901130027420.25540-100000>