Date: Sun, 6 Oct 1996 11:57:17 -0400 From: "Gary Chrysler" <tcg@ime.net> To: <wb2oyc@cyberenet.net>, "Guy Silliman" <mgpr@prolog.net> Cc: <questions@freebsd.org> Subject: Re: PPP config Yet again <sigh> Message-ID: <199610061556.LAA11321@ime.net>
next in thread | raw e-mail | index | archive | help
Guy and Paul. Here's a working ppp setup you can use as a guide! # /etc/ppp/ppp.conf, derived from handbook.txt default: set device /dev/cuaa1 set speed 38400 set parity none disable lqr deny lqr # NOTICE!! set dial line is WRAPPED!!!! # Unwrap to: 'TONE TIMEOUT' set dial "ABORT BUSY ABORT NO\\sCARRIER ABORT NO\\sDIAL\\sTONE TIMEOUT 5 \"\" ATZ OK \\dATDT\\T TIMEOUT 40 CONNECT" isp: set phone 1231234 set login "TIMEOUT 10 ogin:-\\r-ogin: Pusername word: password" set timeout 0 set ifaddr 0 0 dial # end of handbook stuff # /etc/ppp/ppp.linkup MYADDR: add 0 0 HISADDR A bit about the format of these files! (Quote from man ppp) o Each line contains one command, label or comment. o A line starting with a `#' character is treated as a comment line. o A label name has to start in the first column and should be followed by a colon (:). o A command line must contain a space or tab in the first column. This format is vitial! If it's not as stated it will not work! The login script seems to be the most troublesome so A bit about the 'set login' line. (script) The first thing is: How do you invoke ppp on your ISP's system?? As the above samples are, ppp is invoked by the first character of the username, ie: Pusername Each ISP does it differently! I'll *try* and explain this line! set login "TIMEOUT 10 ogin:-\\r-ogin: Pusername word: password" TIMEOUT is set to 10 seconds, Thus it'll wait 10 seconds for each of the following to become true else fail. ogin:-\\r-ogin Pusername wait 10 seconds for the word: ogin: If not recieved within 10 seconds send a CR and again wait 10 seconds for the word: ogin: If not recieved in 10 seconds fail! If recieved send: Pusername and go on to the next one. (P = Invoke ppp, username = duh) word: password wait 10 seconds for the word: word: send: password, else fail! it is CASE SENSITIVE! so if your ISP's login prompts are not the usual: Login: Password: prompts you need to change the line to match! An example is: Login: PassWord: Note the capitol W, That will cause the above 'set login' script to fail! change it to: set login "TIMEOUT 10 ogin:-\\r-ogin: Pusername Word: password" -Enjoy Gary ~~~~~~~~~~~~~~~~ Improve America's Knowledge... Share yours The Borg... Where minds meet (207) 929-3848 ---------- > From: wb2oyc@cyberenet.net > To: Guy Silliman <mgpr@prolog.net> > Cc: questions@freebsd.org > Subject: RE: PPP config Yet again <sigh> > Date: Saturday, October 05, 1996 5:59 PM > > > On 05-Oct-96 Guy Silliman wrote: > >>Ok, I am new to the scene here, and although I can see this question has > >been asked about a million times, I too am having trouble with PPP. > > > >I have no trouble connecting and negotiating an IP from my ISP, however once > >I am connected I have no route to anywhere.. > > > Guy, > I'm really new to FreeBSD and have troubles with PPP myself, but I think > what you need to do is "add 0 0 HISADDR". Thats what I have to do after > using term mode to connect to my ISP and have started a PPP connect. In my > case, I have to use term, as I haven't been able to make sense out of the > ppp.conf or get it working properly. Can't even get it to dial. So I use > term mode to start up PPP. The last command is the add 0 0 HISADDR at the > prompt. If I don't do that, I have no route. Once that is done, everything > works. So I think that may be what you need to do. The same thing happens > to me if I don't. Sounds exactly what is happening in your case. > > Good luck! > Paul >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610061556.LAA11321>