From owner-freebsd-questions Tue Jul 25 8: 2:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.tiscalinet.be (smtp-out.tiscalinet.be [212.35.2.51]) by hub.freebsd.org (Postfix) with ESMTP id 0DDC037B57D; Tue, 25 Jul 2000 08:02:25 -0700 (PDT) (envelope-from g-d-b@freegates.be) Received: from ppp-15-031.tiscalinet.be ([212.35.15.32] helo=gdb) by mail.tiscalinet.be with smtp (Exim on FreeGates) id 13H6Dt-00048g-00; Tue, 25 Jul 2000 17:02:22 +0200 Message-ID: <000701bff649$93b4ac00$200f23d4@gdb> From: "GDB" To: "Mark Ovens" Cc: References: <000801bff4a0$4c3eec00$f70b23d4@gdb> <20000723135438.A236@parish> <000a01bff4b3$54b2f1c0$e30d23d4@gdb> <20000723191441.D236@parish> <000601bff592$cc37c2e0$071123d4@gdb> <20000724193753.A236@parish> Subject: Re: PPP / chat script problems: PART IV: A NEW HOPE Date: Tue, 25 Jul 2000 17:03:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG No, doesn't work. The command ATE1 means "enable command echo". In ppp, after , I can type in commands, but the commands aren't echoed. For example, when I type in AT, in reality, it goes like this: step what I type what appears on screen 1. A 2. T A 3. AT 4. OK So: no commands are echoed after sending the command ATE1. At boot time, I notice this: ... sio3: configured irq 9 not in bitmap of probed irqs 0 sio3 at 0x2e8-0x2ef irq 9 on isa ... Is that ok? My modem is, in Win98 terms, at COM4. Irq conflicts maybe? More help please, You are doing it just fine :-) ----- Original Message ----- From: Mark Ovens To: GDB Cc: Sent: Monday, July 24, 2000 8:37 PM Subject: Re: PPP / chat script problems: PART III: THE SEARCH FOR ... > On Mon, Jul 24, 2000 at 07:15:40PM +0200, GDB wrote: > > No, doesn't work, still "warning: chat script failed". I still have my 2 DNS > > numbers, where do I have to put them? > > > > The ``enable dns'' line should make ppp query your ISP for it's DNS > numbers and put them in /etc/resolv.conf (replacing any that are there > already). You can put them in /etc/resolv.conf (note no 'e' on the end > of ``resolv'') but leave ``enable dns''. That way, if your ISP > supports this feature, and most do, then /etc/resolv.conf will > automatically be updated if your ISP changes there DNS IPs. the format > of /etc/resolv.conf is: > > nameserver a.b.c.d > nameserver e.f.g.h > > > > ppp.conf: > > > > default: > > set device /dev/cuaa3 > > set speed 115200 > > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT \ > > OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT\\s115200" > ^^^^^^^^^ > > I'd remove this, just leave ``CONNECT'' or it will fail if it doesn't > connect at 115200 (which is the DTE speed anyway). > > > provider: > > set phone XXXXXXX > > set authname XXXXXXX > > set authkey XXXXXXX > > set timeout 120 > > set ifaddr 10.0.0.1/0 0.0.0.0 255.255.255.0 0.0.0.0 > ^^^^^^^^^^^^^ > > You haven't changed this to 0.0.0.0 :) > > > enable dns > > > > > > My ppp log file: > > > > [snip] > > > Jul 24 18:54:23 myname ppp[224]: tun0: Phase: bundle: Establish > > Jul 24 18:54:23 myname ppp[224]: tun0: Phase: deflink: closed -> opening > > Jul 24 18:54:23 myname ppp[224]: tun0: Phase: deflink: Connected! > > Jul 24 18:54:23 myname ppp[224]: tun0: Phase: deflink: opening -> dial > > Jul 24 18:54:23 myname ppp[224]: tun0: Phase: Phone: 092700420 > > Jul 24 18:54:23 myname ppp[224]: tun0: Chat: deflink: Dial attempt 1 of 1 > > Jul 24 18:54:23 myname ppp[224]: tun0: Chat: Send: AT^M > > Jul 24 18:54:23 myname ppp[224]: tun0: Chat: Expect(5): OK > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Expect timeout > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Send: AT^M > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Expect(5): OK > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Received: AT^M^M > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Received: OK^M > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Send: ATE1Q0^M > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Expect(5): OK > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Received: AT^M^M > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Received: OK^M > > Jul 24 18:54:28 myname ppp[224]: tun0: Chat: Send: ATDT092700420^M > > Jul 24 18:54:30 myname ppp[224]: tun0: Chat: Expect(40): CONNECT 115200 > > Jul 24 18:54:30 myname ppp[224]: tun0: Chat: Received: ATE1Q0^M^M > > Jul 24 18:55:11 myname ppp[224]: tun0: Chat: Expect timeout > > OK. It appears that your modem is echoing back everything you send it. > If you type ``term'' at the ``ppp ON foobar>'' prompt and then type I > would expect you see this: > > AT <<== You type this > AT > OK > ATDT092700420 <<== You type this > ATDT092700420 > > You will need to check your modem's documentation to help solve this > (maybe the default ``ATE1Q0'' in the ``set dial'' line is causing > it?). Also increase the TIMEOUT from 5 to 10 or 15: > > ....CARRIER TIMEOUT 15.... > > > Jul 24 18:55:11 myname ppp[224]: tun0: Phase: deflink: dial -> hangup > > Jul 24 18:55:11 myname ppp[224]: tun0: Phase: deflink: Disconnected! > > Jul 24 18:55:11 myname ppp[224]: tun0: Phase: deflink: Connect time: 48 > > secs: 0 octets in, 0 octets out > > Jul 24 18:55:11 myname ppp[224]: tun0: Phase: total 0 bytes/sec, peak 0 > > bytes/sec on Mon Jul 24 18:55:11 2000 > > Jul 24 18:55:11 myname ppp[224]: tun0: Phase: deflink: hangup -> closed > > Jul 24 18:55:11 myname ppp[224]: tun0: Phase: bundle: Dead > > > > Any ideas? Meanwhile, I'm going to read the BSD handbook chapter "PPP"... > > > > Thanks anyway... > > > > > > > > > > ----- Original Message ----- > > From: Mark Ovens > > To: GDB > > Cc: > > Sent: Sunday, July 23, 2000 8:14 PM > > Subject: Re: PPP / chat script problems: PART II: A NEW BEGINNING > > > > > > > On Sun, Jul 23, 2000 at 04:36:03PM +0200, GDB wrote: > > > > Here's my ppp.conf script: > > > > > > > > default: > > > > set device /dev/cuaa3 > > > > set speed 115200 > > > > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT \ > > > > OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT \"\"" > > > > provider > > > > set phone "" > > > ^^^^^^^^^^^^^ > > > > > > I take it that you really have a number here? > > > > > > > set login > > > > > > Remove/comment out this, unless your ISP requires a Unix-style > > > login/password login (probably not). > > > > > > > set authname xxxxxxx > > > > set authkey xxxxxxxx > > > > set timeout 120 > > > > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 # I think I > > have > > > ^^^^^^^^^^^^^ > > > > > > 0.0.0.0 > > > > > > > to change the first 2 by my ISP DNSs, > > > > > > this line is nothing to do with DNS, it's for using dynamic IP > > > addresses. If your ISP gives you a static IP this line is totally > > > wrong anyway. > > > > > > > > > > > # right? > > > > add default HISADDR > > > > > > Redundant, but harmless. > > > > > > > enable dns > > > > > > > > Then I do: > > > > #ppp > > > > dial provider > > > > > > > > warning: chat script failed > > > > > > How long after the dialling finishes before this warning appears? > > > > > > > >quit > > > > # > > > > > > > > That's all I did. I tried to connect to my ISP manually, but I have > > > > difficulties typing in the username and password. After typing in "term" > > in > > > > ppp, the last character I typed does not appear on the screen. after > > typing > > > > in ATDT, the following text appears when I hit once > > more: > > > > CONNECT 1520 (NOT 15200, really 1520) plus some other text, date and > > > > time, when I type once again: > > > > > > > > > > Uh. this sounds familiar, it's to do with local echoing (if we really > > > need it I'll have to look it up). You shouldn't need to do this > > > anyway, your ISP almost certainly uses PAP or CHAP so once we've got > > > ppp.conf sorted this becomes academic. > > > > > > Try the above mods and if you still have problems add: > > > > > > set log chat command connect hdlc ipcp lcp phase tcp/ip tun > > > > > > to ppp.conf and see what appears in /var/log/ppp.log. > > > > > > BTW, I've added -questions back to the Cc:. You should always do this, > > > not because I don't want to help, but because if I can't sort it out > > > everyone else will see and there's a good chance someone else will > > > jump in and help out. > > > > > > > User access verification > > > > username: > > > > password: > > > > > > > > These 3 lines do not appear in a nice way, only parts of it, I have to > > type > > > > a couple of times. So that makes it difficult to just type in my > > > > name and password. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message