From owner-freebsd-questions Sun Apr 8 1:23:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by hub.freebsd.org (Postfix) with ESMTP id 864CF37B422 for ; Sun, 8 Apr 2001 01:23:21 -0700 (PDT) (envelope-from jon@nmt.edu) Received: from nmt.edu (dialin1.passcal.nmt.edu [129.138.26.201]) by mailhost.nmt.edu (8.11.3/8.11.3) with ESMTP id f388NFe03081; Sun, 8 Apr 2001 02:23:16 -0600 Message-ID: <3AD02066.B83D8BCE@nmt.edu> Date: Sun, 08 Apr 2001 02:25:10 -0600 From: Jon Collis X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: David Banning Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PPP negoatiation, LCP and immediate Disconnected! References: <3ACF7DD8.7AE7B3CA@nmt.edu> <20010408002845.E36393@www3.pacific-pages.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David, Thanks for writing. I'm very grateful. I've looked at what you suggested and it didn't seem to change anything. I read the ppp man which is helpful and it provided some ideas for the set ifaddr. I looked at some of the IP's that my ISP was assigning, and they all appeared to be of the form 129.138.5.x. So, I set up ifaddr to look for that and nothing has changed at all in the output log. Is there anything that the interactive mode is turning on that would not be in my script? It seems as though the ppp negotion just fails to take place. Weird, thanks for your suggestions, Jon David Banning wrote: > I can't pinpoint your problem for sure, but my guess is your line; > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > > I use a dialup line too, with a dynamic ip address. > Here is my ppp.conf which includes auto login (I changed my login and password) > To fireup my ppp I execute; > > ppp -auto -nat -quiet ondemand > > Here it is; > > default: > # > # Make sure that "device" references the correct serial port > # for your modem. (cuaa0 = COM1, cuaa1 = COM2) > # > > set device /dev/cuaa1 > set log Phase Chat LCP IPCP CCP tun command > set timeout 0 > set speed 115200 > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATZ OK ATM0 OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" > > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0 > add default HISADDR > enable dns > > ondemand: > # > # edit the next three lines and replace the items in caps with > # the values which have been assigned by your ISP. > # > set timeout 540 > set phone 4166422952 > set authname myloginname > set authkey mypassword > > On Sat, Apr 07, 2001 at 02:51:36PM -0600, Jon Collis wrote: > > Hello, > > > > > > I have recently installed the 4.2-RELEASE version of FreeBSD. My > > computer is an Intel P3. > > > > I am trying to get my ppp up an running. If I open a term to /dev/cuaa3, > > I am able to dial my provider and connect such that I can browse the > > web. The only problem, is that I am having to type in my username and > > password at the prompts. So, I have created an entry in the ppp.conf > > file for my provider and using the "dial myprovider" command in ppp I > > try to connect, but I cannot. Chat works well and it just fails at the > > last step where it is actually negotiating the ppp connection. This > > seems very odd to me. Is there something about the default setting which > > negotiates ppp in a different manner? Looking at the log, it seems as > > though it actually connects for, say, less than a minute, but I can > > never access to web. > > > > I am being assigned an IP from my provider for what it is worth. Should > > I look for that assignment in my chat script? Well, any suggestions > > would be much appreciated. Here is the ppp.log information followed by > > my ppp.conf file: > > > > Apr 7 12:11:24 ppp[572]: Phase: Using interface: tun0 > > Apr 7 12:11:24 ppp[572]: Phase: deflink: Created in closed state > > Apr 7 12:11:24 ppp[572]: tun0: Command: default: set speed 115200 > > Apr 7 12:11:24 ppp[572]: tun0: Command: default: set dial ABORT BUSY > > ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T > > TIMEOUT 40 CONNECT > > Apr 7 12:11:24 ppp[572]: tun0: Command: default: set ifaddr 10.0.0.1/0 > > 10.0.0.2/0 255.255.255.0 0.0.0.0 > > Apr 7 12:11:24 ppp[572]: tun0: Command: default: set timeout 120 > > Apr 7 12:11:24 ppp[572]: tun0: Command: default: add default HISADDR > > Apr 7 12:11:24 ppp[572]: tun0: Command: default: enable dns > > Apr 7 12:11:24 ppp[572]: tun0: Phase: PPP Started (interactive mode). > > Apr 7 12:11:27 ppp[572]: tun0: Command: /dev/tty: dial nmt > > Apr 7 12:11:27 ppp[572]: tun0: Command: nmt: set phone 8354543 > > Apr 7 12:11:27 ppp[572]: tun0: Command: nmt: set login ABORT > > NO\sCARRIER TIMEOUT 120 name:-\r-name: jon word: wu_wei > ppp > > Apr 7 12:11:27 ppp[572]: tun0: Command: nmt: set openmode active 3 > > Apr 7 12:11:27 ppp[572]: tun0: Phase: bundle: Establish > > Apr 7 12:11:27 ppp[572]: tun0: Phase: deflink: closed -> opening > > Apr 7 12:11:27 ppp[572]: tun0: Phase: deflink: Connected! > > Apr 7 12:11:27 ppp[572]: tun0: Phase: deflink: opening -> dial > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Phone: 8354543 > > Apr 7 12:11:27 ppp[572]: tun0: Chat: deflink: Dial attempt 1 of 1 > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Send: AT^M > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Expect(5): OK > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Received: AT^M^M > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Received: OK^M > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Send: ATE1Q0^M > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Expect(5): OK > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Received: ATE1Q0^M^M > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Received: OK^M > > Apr 7 12:11:27 ppp[572]: tun0: Chat: Send: ATDT8354543^M > > Apr 7 12:11:29 ppp[572]: tun0: Chat: Expect(40): CONNECT > > Apr 7 12:11:56 ppp[572]: tun0: Chat: Received: ATDT8354543^M^M > > Apr 7 12:11:56 ppp[572]: tun0: Chat: Received: CONNECT > > Apr 7 12:11:56 ppp[572]: tun0: Phase: deflink: dial -> carrier > > Apr 7 12:11:57 ppp[572]: tun0: Phase: deflink: /dev/cuaa3: CD detected > > > > Apr 7 12:11:57 ppp[572]: tun0: Phase: deflink: carrier -> login > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Expect(120): name: > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: > > 24000/ARQ/V34/LAPM/V42BIS^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: ^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: Type the full name > > of the computer you wish to use. (RLOGIN now default)^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: > > ----------------------------------------------------------------------------^M > > > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| NOTE: > > for AUTHORIZED MODEM USERS (only) |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| > > ======================================= |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| To login > > please use the password from your TCC account. |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| > > ******************************************************* |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| (use > > ^ x to return to the server prompt) |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: > > |*| > > |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| 835-6740: <= > > 28.8K-baud, ON-campus only (20 lines total). |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| 835-4543: <= > > 28.8K-baud, OFF-campus only (120 lines total). |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: > > |*| > > |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| There is a 6-hour > > absolute session timeout on these lines. |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: > > |*| > > |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| For Non-PPP file > > transfer issue following commands at server prompt: |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| > > -------------------------------------------------------------------- > > |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| TERMINAL > > FLOWCONTROL NONE {abbreviated TER FLOW NONE} |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| TERMINAL > > FLOWCONTROL HARDWARE {should be the default; but ...} |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| TERMINAL NO > > ESCAPE-CHARACTER |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| (if TELNET is > > used then you must issue TERM DOWNLOAD as well) |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: |*| (if using sz > > try the flag -kw4096, or -kw 4096 {maybe even 1024}) |*|^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: > > ----------------------------------------------------------------------------^M > > > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: ^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: CONNECTION > > SERVICE FOR USE BY VALID ACCOUNT HOLDERS ONLY.^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: ^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: ^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: User Access > > Verification^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: ^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Received: Username: > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Send: xxx^M > > Apr 7 12:11:57 ppp[572]: tun0: Chat: Expect(120): word: > > Apr 7 12:11:58 ppp[572]: tun0: Chat: Received: xxx^M > > Apr 7 12:11:58 ppp[572]: tun0: Chat: Received: Password: > > Apr 7 12:11:58 ppp[572]: tun0: Chat: Send: xxxx^M > > Apr 7 12:11:58 ppp[572]: tun0: Chat: Expect(120): > > > Apr 7 12:11:58 ppp[572]: tun0: Chat: Received: ^M > > Apr 7 12:11:58 ppp[572]: tun0: Chat: Received: grissom> > > Apr 7 12:11:58 ppp[572]: tun0: Chat: Send: ppp^M > > Apr 7 12:11:58 ppp[572]: tun0: Phase: deflink: login -> lcp > > Apr 7 12:11:58 ppp[572]: tun0: LCP: FSM: Using "deflink" as a > > transport > > Apr 7 12:11:58 ppp[572]: tun0: LCP: deflink: State change Initial --> > > Closed > > Apr 7 12:11:58 ppp[572]: tun0: Phase: deflink: Entering STOPPED state > > for 3 seconds > > Apr 7 12:11:58 ppp[572]: tun0: LCP: deflink: State change Closed --> > > Stopped > > Apr 7 12:12:01 ppp[572]: tun0: LCP: deflink: LayerStart > > Apr 7 12:12:01 ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state = > > Stopped > > Apr 7 12:12:01 ppp[572]: tun0: LCP: ACFCOMP[2] > > Apr 7 12:12:01 ppp[572]: tun0: LCP: PROTOCOMP[2] > > Apr 7 12:12:01 ppp[572]: tun0: LCP: ACCMAP[6] 0x00000000 > > Apr 7 12:12:01 ppp[572]: tun0: LCP: MRU[4] 1500 > > Apr 7 12:12:01 ppp[572]: tun0: LCP: MAGICNUM[6] 0x720110f0 > > Apr 7 12:12:01 ppp[572]: tun0: LCP: deflink: State change Stopped --> > > Req-Sent > > Apr 7 12:12:04 ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state = > > Req-Sent > > Apr 7 12:12:04 ppp[572]: tun0: LCP: ACFCOMP[2] > > Apr 7 12:12:04 ppp[572]: tun0: LCP: PROTOCOMP[2] > > Apr 7 12:12:04 ppp[572]: tun0: LCP: ACCMAP[6] 0x00000000 > > Apr 7 12:12:04 ppp[572]: tun0: LCP: MRU[4] 1500 > > Apr 7 12:12:04 ppp[572]: tun0: LCP: MAGICNUM[6] 0x720110f0 > > Apr 7 12:12:07 ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state = > > Req-Sent > > Apr 7 12:12:07 ppp[572]: tun0: LCP: ACFCOMP[2] > > Apr 7 12:12:07 ppp[572]: tun0: LCP: PROTOCOMP[2] > > Apr 7 12:12:07 ppp[572]: tun0: LCP: ACCMAP[6] 0x00000000 > > Apr 7 12:12:07 ppp[572]: tun0: LCP: MRU[4] 1500 > > Apr 7 12:12:07 ppp[572]: tun0: LCP: MAGICNUM[6] 0x720110f0 > > Apr 7 12:12:10 ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state = > > Req-Sent > > Apr 7 12:12:10 ppp[572]: tun0: LCP: ACFCOMP[2] > > Apr 7 12:12:10 ppp[572]: tun0: LCP: PROTOCOMP[2] > > Apr 7 12:12:10 ppp[572]: tun0: LCP: ACCMAP[6] 0x00000000 > > Apr 7 12:12:10 ppp[572]: tun0: LCP: MRU[4] 1500 > > Apr 7 12:12:10 ppp[572]: tun0: LCP: MAGICNUM[6] 0x720110f0 > > Apr 7 12:12:14 ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state = > > Req-Sent > > Apr 7 12:12:14 ppp[572]: tun0: LCP: ACFCOMP[2] > > Apr 7 12:12:14 ppp[572]: tun0: LCP: PROTOCOMP[2] > > Apr 7 12:12:14 ppp[572]: tun0: LCP: ACCMAP[6] 0x00000000 > > Apr 7 12:12:14 ppp[572]: tun0: LCP: MRU[4] 1500 > > Apr 7 12:12:14 ppp[572]: tun0: LCP: MAGICNUM[6] 0x720110f0 > > Apr 7 12:12:17 ppp[572]: tun0: LCP: deflink: LayerFinish > > Apr 7 12:12:17 ppp[572]: tun0: LCP: deflink: State change Req-Sent --> > > Stopped > > Apr 7 12:12:17 ppp[572]: tun0: LCP: deflink: State change Stopped --> > > Closed > > Apr 7 12:12:17 ppp[572]: tun0: LCP: deflink: State change Closed --> > > Initial > > Apr 7 12:12:17 ppp[572]: tun0: Phase: deflink: Disconnected! > > Apr 7 12:12:17 ppp[572]: tun0: Phase: deflink: lcp -> logout > > Apr 7 12:12:17 ppp[572]: tun0: Phase: deflink: logout -> hangup > > Apr 7 12:12:17 ppp[572]: tun0: Phase: deflink: Disconnected! > > Apr 7 12:12:17 ppp[572]: tun0: Phase: deflink: Connect time: 50 secs: > > 3021 octets in, 275 octets out > > Apr 7 12:12:17 ppp[572]: tun0: Phase: deflink: : 140 packets in, 5 > > packets out > > Apr 7 12:12:17 ppp[572]: tun0: Phase: total 65 bytes/sec, peak 332 > > bytes/sec on Sat Apr 7 12:12:17 2001 > > Apr 7 12:12:17 ppp[572]: tun0: Phase: deflink: hangup -> closed > > Apr 7 12:12:17 ppp[572]: tun0: Phase: bundle: Dead > > > > > > Sorry about that huge thing if it offends. I am now going to include my > > ppp.conf file. Perhaps there is something that I need to add to it, but > > I have tried setting the mode to active or passive to no avail. > > > > default: > > ident user-ppp VERSION (built COMPILATIONDATE) > > > > # Ensure that "device" references the correct serial port > > # for your modem. (cuaa0 = COM1, cuaa1 = COM2) > > # > > set device /dev/cuaa3 > > > > set log Phase Chat Connect LCP IPCP CCP tun command > > set speed 115200 > > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ > > \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" > > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > > set timeout 120 # 3 mintue idle timer (the > > default) > > add default HISADDR # Add a (sticky) default route > > enable dns # request DNS info (for > > resolv.conf) > > > > myprovider: > > set phone 8354543 > > set login "ABORT NO\\sCARRIER TIMEOUT 120 name:-\\r-name: xxx word: xxx > > \> ppp" > > > > > > > > Well, that's all of that. Thanks for any help that you can send, > > > > Jon Collis > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > -- > Real Users hate Real Programmers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message