Date: Mon, 22 Sep 1997 00:29:18 +0100 From: Brian Somers <brian@awfulhak.org> To: David Goddard <goddard@acm.org> Cc: questions@FreeBSD.ORG, Greg Lehey <grog@lemis.com>, Brian Somers <brian@awfulhak.org> Subject: Re: ppp -auto problems and boot-time error messages Message-ID: <199709212329.AAA03154@awfulhak.demon.co.uk> In-Reply-To: Your message of "Sun, 21 Sep 1997 22:28:35." <3.0.1.16.19970921222835.238f44ce@sg1.cc.ic.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> At 17:34 20/09/97 +0100, Brian Somers wrote: > > >By "more details", I mean your config files and a log of what > >happened. Set your logging with > > > > set log chat phase connect lcp ipcp ccp command tun > ^^^ YM 'debug'? Ah ha :-) You're using a pretty old version of ppp. Ppp has undergone a fairly large face-lift of late. There are a couple of command adjustments, one of which is the "set debug" option - it's now "set log". The latest version of ppp is available from http://www.freebsd.org/~brian, it will understand the above "set log" statement. > OK, here are some more details:- > > Here's one a section of ppp.log. Please note the log setting in > ppp.conf below. Any explanations as to why it is logging only a > subset of this gratefully received (yes, I did restart ppp (by > rebooting) after editing the file). I've varied log levels before > with no problem, but now it seems to be ignoring the set debug > section of the ppp.conf file and only giving me Link debug info. The new version has a pile more logging "classes". > This log section is for a dialup caused by a telnet command. Telnet timed > out, but the link came up OK and was usable. > > === start ppp.log === > [...] > 09-21 21:40:38 [44] Dial attempt 1 [.....] > 09-21 21:41:09 [44] myaddr = 155.198.8.2 hisaddr = 155.198.8.241 > 09-21 21:41:09 [44] OsLinkup: 155.198.8.241 > [At this point, after the initial process has given up waiting, I close > the ppp connection] I find this really wierd. The telnet should have worked (but you already know that ;-) > 09-21 21:42:17 [44] LCP: LayerDown > 09-21 21:42:17 [44] OsLinkdown: 155.198.8.241 > 09-21 21:42:17 [44] LCP: SendTerminateReq. > 09-21 21:42:17 [44] LCP: state change Opend --> Closing > 09-21 21:42:17 [44] LCP: Received Terminate Ack (3) state = Closing (4) > 09-21 21:42:17 [44] LCP: state change Closing --> Closed > 09-21 21:42:17 [44] LCP: LayerFinish > > === end ppp.log === > > On the subject of log oddities, could anyone explain the following > behaviour of ppp:? [.....] > ### end script ### > > > Now ppp.conf: > > === start of ppp.conf section === > > # Default setup. Always executed when PPP is invoked. > # > default: > set device /dev/cuaa1 > set speed 57600 > set debug chat phase connect lcp ipcp ccp command tun > # set debug phase carrier chat connect link > # set debug carrier link phase > set debug link ^^^^^^^^^^^^^^ Oops - you've just overridden the previous "set debug". > disable lqr ^^^^^^^^^^^ This is now the default - it's usually best not to have it. > deny lqr > set redial 10 4 > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 OK-AT-OK > \\dATDT\\T TIMEOUT 40 CONNECT" > [...] > pmdemand: > set phone 01715949988 > set login "TIMEOUT 5 return \r sername:-\\r-sername: LUSERNAME word: > PASSWORD port > ppp" > set timeout 120 > set ifaddr 155.198.8.0/8 155.198.8.0/8 255.255.255.0 > delete 0 0 ^^^^^^^^^^ I don't think this works in your version (it does in the latest version). > # add 0 0 155.198.8.0 # Commented out 20 Sep - this stopped boot msg ^^^^^^^^^^^^^^^^^^^ This is correct. You should remove the default route in sysconfig instead. > problem > # add 0 0 HISADDR # Commented out some time ago ^^^^^^^^^^^^^^^ Ppp is now smart enough to understand this in ppp.conf - it used to just silently fail. > set openmode active ^^^^^^^^^^^^^^^^^^^ This is now the default. > [...] > > === end of ppp.conf section === > > Now a bit of ppp.linkup: > > === start of ppp.linkup section === > > [...] > MYADDR: > delete 0 0 ^^^^^^^^^^ I guess it must work - otherwise you'd never have been able to connect to the world. > add 0 0 HISADDR > > [...] > pmdemand: > delete 0 0 > add 0 0 HISADDR > # ! sh -c "/etc/ppp/ppp.etherup.pmdemand &" > > === end of ppp.linkup section === > > Finally, a bit of sysconfig: > > === start of sysconfig section === > [...] > ######################### Start Of Netconfig Section ####################### > [...] > network_interfaces="tun0 lo0" > ifconfig_tun0= > ifconfig_lo0="inet 127.0.0.1" > [...] > static_routes="" > > # Set to the host you'd like set as your default router, or NO for none. > # This is the same as adding a ``default'' entry to static_routes. > defaultrouter="155.198.8.0" ^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is better specified in ppp.conf & ppp.linkup as said above. > # This is the routing daemon you want to use. Possible options are > # currently NO (for none), `routed' and `gated'. Also see `routerflags' > # for startup flags. > router="NO" ^^^^^^^^^^^ Good :-) This hurts lots of people. > === end of sysconfig section === > > > Finally, I *do* have a file /etc/start_if.tun0, containing the following > line: > ppp -auto pmdemand Ok. > > Once again, thanks in advance to anyone who takes the time out to help me > solve what it probably a trivial problem but one that *I* can't work out. > > Dave Well, your best bet is to download the latest archive from http://www.freebsd.org/~brian. A lot of the "fighting" that people used to have to do is now overcome. Also, the latest handbook (on www.freebsd.org) has a detailed section and the above archive has a hugely improved man page. Also, as of today, the FAQ has a section (under networking) on ppp. When you download the archive and "make install", the make file shows you a README that describes the changes that may affect your current config. -- Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org> <http://www.Awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709212329.AAA03154>