Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 1999 19:18:27 -0800
From:      Enoch Wu <wue@eskimo.com>
To:        freebsd-questions@freebsd.org
Subject:   User PPP fails to connect with dynamic IP.
Message-ID:  <3.0.3.32.19990220191827.0069da3c@mail.eskimo.com>

next in thread | raw e-mail | index | archive | help
Hello,

I'm trying to set up "user ppp" on FreeBSD 2.2.7, to connect to an ISP that
runs dynamic IP. This one is a real puzzler since I was able to connect
using static IP to another ISP. Just look at the ppp.log appended to this
e-mail.

Regards,
Enoch Wu

/etc/ppp/ppp.conf:

#################################################################
# /etc/ppp/ppp.conf -- user PPP for dynamically assigned IP addr.
#  Author:  Enoch Wu  2/20/99
#################################################################
#
# Default setup. Executed always when PPP is invoked.
#
default:
 set log chat phase LCP TCP/IP
 set openmode active
 set device /dev/cuaa0
 set speed 19200
 set parity none
 disable pred1
 deny pred1
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK
\\dATDT\\T TIMEOUT 40 CONNECT"
 set redial 5 3

myisp:
 set phone 1234567
 set login "TIMEOUT 180 gin: myuserid ord: mypasswd"
 set timeout 300
 set ifaddr 127.0.0.1/0 127.0.0.2/0
 delete ALL
 add 127.0.0.1/0 255.255.255.0 204.122.22.0/16



/etc/ppp/ppp.linkup:

#########################################################################
# /etc/ppp/ppp.linkup -- linkup to ISP running dynamic IP.
# Author: EW    2/20/99
#########################################################################
# default to this
# e-book says myisp tag but example says MYADDR
# e-book says delete ALL but example says delete 0 0
MYADDR:
  delete ALL
  add 0 0 HISADDR


/var/log/ppp.log:

Feb 20 10:04:39 darkstart ppp[158]: Phase: Connected!
Feb 20 10:04:39 darkstart ppp[158]: Chat: Expecting:
Feb 20 10:04:39 darkstart ppp[158]: Chat: Sending: ATE1Q0^M
Feb 20 10:04:39 darkstart ppp[158]: Chat: Expecting: OK-AT-OK
Feb 20 10:04:39 darkstart ppp[158]: Chat: Wait for (5): OK
Feb 20 10:04:41 darkstart ppp[158]: Phase: Phone: 1234567
Feb 20 10:04:41 darkstart ppp[158]: Chat: Sending: ATDT1234567^M
Feb 20 10:04:41 darkstart ppp[158]: Chat: Expecting: CONNECT
Feb 20 10:04:41 darkstart ppp[158]: Chat: Wait for (40): CONNECT
Feb 20 10:05:04 darkstart ppp[158]: Chat: Expecting: gin:
Feb 20 10:05:04 darkstart ppp[158]: Chat: Wait for (180): gin:
Feb 20 10:05:14 darkstart ppp[158]: Chat: Sending: myuserid^M
Feb 20 10:05:14 darkstart ppp[158]: Chat: Expecting: ord:
Feb 20 10:05:14 darkstart ppp[158]: Chat: Wait for (180): ord:
Feb 20 10:05:14 darkstart ppp[158]: Chat: Sending: mypasswd^M
Feb 20 10:05:14 darkstart ppp[158]: LCP: State change Initial --> Closed
Feb 20 10:05:14 darkstart ppp[158]: LCP: State change Closed --> Stopped
Feb 20 10:05:15 darkstart ppp[158]: LCP: LcpSendConfigReq
Feb 20 10:05:15 darkstart ppp[158]: LCP:  ACFCOMP[2]
Feb 20 10:05:15 darkstart ppp[158]: LCP:  PROTOCOMP[2]
Feb 20 10:05:15 darkstart ppp[158]: LCP:  ACCMAP[6] 0x00000000
Feb 20 10:05:15 darkstart ppp[158]: LCP:  MRU[4] 1500
Feb 20 10:05:15 darkstart ppp[158]: LCP:  MAGICNUM[6] 0x2bc5219c
Feb 20 10:05:15 darkstart ppp[158]: LCP: State change Stopped --> Req-Sent
Feb 20 10:05:18 darkstart ppp[158]: LCP: LcpSendConfigReq
Feb 20 10:05:18 darkstart ppp[158]: LCP:  ACFCOMP[2]
Feb 20 10:05:18 darkstart ppp[158]: LCP:  PROTOCOMP[2]
Feb 20 10:05:18 darkstart ppp[158]: LCP:  ACCMAP[6] 0x00000000
Feb 20 10:05:18 darkstart ppp[158]: LCP:  MRU[4] 1500
Feb 20 10:05:18 darkstart ppp[158]: LCP:  MAGICNUM[6] 0x2bc5219c
Feb 20 10:05:21 darkstart ppp[158]: LCP: LcpSendConfigReq
Feb 20 10:05:21 darkstart ppp[158]: LCP:  ACFCOMP[2]
Feb 20 10:05:21 darkstart ppp[158]: LCP:  PROTOCOMP[2]
Feb 20 10:05:21 darkstart ppp[158]: LCP:  ACCMAP[6] 0x00000000
Feb 20 10:05:21 darkstart ppp[158]: LCP:  MRU[4] 1500
Feb 20 10:05:21 darkstart ppp[158]: LCP:  MAGICNUM[6] 0x2bc5219c
Feb 20 10:05:24 darkstart ppp[158]: LCP: LcpSendConfigReq
Feb 20 10:05:24 darkstart ppp[158]: LCP:  ACFCOMP[2]
Feb 20 10:05:24 darkstart ppp[158]: LCP:  PROTOCOMP[2]
Feb 20 10:05:24 darkstart ppp[158]: LCP:  ACCMAP[6] 0x00000000
Feb 20 10:05:24 darkstart ppp[158]: LCP:  MRU[4] 1500
Feb 20 10:05:24 darkstart ppp[158]: LCP:  MAGICNUM[6] 0x2bc5219c
Feb 20 10:05:27 darkstart ppp[158]: LCP: LcpSendConfigReq
Feb 20 10:05:27 darkstart ppp[158]: LCP:  ACFCOMP[2]
Feb 20 10:05:27 darkstart ppp[158]: LCP:  PROTOCOMP[2]
Feb 20 10:05:27 darkstart ppp[158]: LCP:  ACCMAP[6] 0x00000000
Feb 20 10:05:27 darkstart ppp[158]: LCP:  MRU[4] 1500
Feb 20 10:05:27 darkstart ppp[158]: LCP:  MAGICNUM[6] 0x2bc5219c
Feb 20 10:05:30 darkstart ppp[158]: LCP: State change Req-Sent --> Stopped
Feb 20 10:05:30 darkstart ppp[158]: LCP: LcpLayerFinish
Feb 20 10:05:31 darkstart ppp[158]: Phase: Modem: Connect time: 52 secs: 241
octets in, 261 octets out
Feb 20 10:05:31 darkstart ppp[158]: Phase:  total 9 bytes/sec
Feb 20 10:05:31 darkstart ppp[158]: Phase: NewPhase: Dead
Feb 20 10:05:31 darkstart ppp[158]: Phase: Disconnected!
Feb 20 10:05:31 darkstart ppp[158]: LCP: LcpLayerFinish
Feb 20 10:05:31 darkstart ppp[158]: Phase: NewPhase: Dead
Feb 20 10:05:53 darkstart ppp[158]: Phase: NewPhase: Terminate
Feb 20 10:06:02 darkstart ppp[158]: Phase: PPP Terminated (normal).






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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.3.32.19990220191827.0069da3c>