Date: Tue, 25 Jul 2000 17:03:23 +0200 From: "GDB" <g-d-b@freegates.be> To: "Mark Ovens" <marko@freebsd.org> Cc: <questions@freebsd.org> Subject: Re: PPP / chat script problems: PART IV: A NEW HOPE Message-ID: <000701bff649$93b4ac00$200f23d4@gdb> References: <000801bff4a0$4c3eec00$f70b23d4@gdb> <20000723135438.A236@parish> <000a01bff4b3$54b2f1c0$e30d23d4@gdb> <20000723191441.D236@parish> <000601bff592$cc37c2e0$071123d4@gdb> <20000724193753.A236@parish>
next in thread | previous in thread | raw e-mail | index | archive | help
No, doesn't work. The command ATE1 means "enable command echo". In ppp, after <term>, I can type in commands, but the commands aren't echoed. For example, when I type in AT<enter>, in reality, it goes like this: step what I type what appears on screen 1. A 2. T A 3. <enter> AT 4. <enter> 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 <marko@freebsd.org> To: GDB <g-d-b@freegates.be> Cc: <questions@freebsd.org> 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 <marko@freebsd.org> > > To: GDB <g-d-b@freegates.be> > > Cc: <questions@freebsd.org> > > 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 "<my provider>" > > > ^^^^^^^^^^^^^ > > > > > > 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<enter> > > > > dial provider<enter> > > > > <modem dials number, I can hear it> > > > > warning: chat script failed > > > > > > How long after the dialling finishes before this warning appears? > > > > > > > >quit<enter> > > > > # > > > > > > > > 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<number>, the following text appears when I hit <enter> once > > more: > > > > CONNECT 1520 (NOT 15200, really 1520) plus some other text, date and > > > > time, when I type <enter> 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<enter> > > > > username: > > > > password: > > > > > > > > These 3 lines do not appear in a nice way, only parts of it, I have to > > type > > > > <enter> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000701bff649$93b4ac00$200f23d4>