Date: Sun, 22 Oct 2000 11:24:14 GMT From: Salvo Bartolotta <bartequi@inwind.it> To: "E. J. Cerejo" <ecerejo@idt.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PPP help please Message-ID: <20001022.11241400@bartequi.ottodomain.org> References: <39F27C45.9080907@idt.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 10/22/00, 6:33:57 AM, "E. J. Cerejo" <ecerejo@idt.net> wrote regarding PPP help please: > I've installed FreeBSD 4.1.1, and now I'm fighting with myself to setup > this ppp thing, I've read the chapter in the manual and still can't get it > to work, it dials out and I get all of these as it logs on: ppP, pPP, PPP > OK and I get lost on how to get back to my regular prompt so I can use= lynx > and I've pressing Ctrl+Z and that suspends it and gets me back to the > prompt but I can't ping anybody, I can't do nslookup or ftp or anything it > just hangs there. On the bottom there's a copy of all the files that > edited, any help would be greatly appreciated. > MY ppp.log: > Oct 21 18:00:00 ecerejo newsyslog[337]: logfile turned over > Oct 21 18:12:12 ecerejo ppp[206]: Phase: Using interface: tun0 > Oct 21 18:12:12 ecerejo ppp[206]: Phase: deflink: Created in closed state > Oct 21 18:12:12 ecerejo ppp[206]: Warning: Carrier: Invalid log value ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Oct 21 18:12:12 ecerejo ppp[206]: Warning: Usage: set log [local] [+|-] > async|cbcp|ccp|chat|command|connect|debug|dns|hdlc|id0 <snip> > MY ppp.conf: > ################################################################# > # PPP Sample Configuration File > # Originally written by Toshiharu OHNO > # Simplified 5/14/1999 by wself@cdrom.com > # > # See /usr/share/examples/ppp/ for some examples > # > # $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.1 2000/08/18 08:33:02 jhb Exp= $ > ################################################################# > default: > set device /dev/cuaa1 > # set log Phase Chat LCP IPCP CCP tun command > set log Phase Chat Connect Carrier lcp ipcp ccp command ^^^^^^^ man ppp(8) [followed by "/LOGGING FACILITY" (no quotes) within the man page]. Cf the "set cd" command, and decide if it's relevant to you. > 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) > alias enable yes > #papchap: > # > # edit the next three lines and replace the items in caps with > # the values which have been assigned by your ISP. > # > idt: > set phone 9960976 > set authname ecerejo > set authkey xxxxxxxx > set openmode active From ppp(8): set openmode active|passive [delay] By default, openmode is always active with a one second delay. That is, ppp will always initiate LCP/IPCP/CCP negotiation one second after the line comes up. If you want to wait for the peer to initiate negotiations, you can use the value passive. If you want to initiate negotiations immediately or after more than one second, the appropriate delay may be specified here in seconds. > --------------------------------------x----------------------------- > MY ppp.linkup: > idt: > delete ALL > add 0 0 HISADDR Do you really need this (sticky routes aren't operational in you ppp version or I am missing something) ? Please have a look at ppp(8) and see if something else meets your=20 needs. To start your ppp automatically, you should write such a script as # -ddialing myisp #!/bin/sh ppp -ddial ONE_OF_MY_ISP_LABELS_IN_PPP.CONF You will choose the option most appropriate for your specific situation (cf ppp(8)). And you will probably put your "ppp" user in the network group. You aren't going to the 'Net as root, are you ? :-) And don't forget to set the script execute permission! Best of luck, Salvo 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?20001022.11241400>