From owner-freebsd-questions Thu Jul 25 20:06:49 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA22161 for questions-outgoing; Thu, 25 Jul 1996 20:06:49 -0700 (PDT) Received: from jupiter.centrin.net.id ([202.146.255.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id UAA22150 for ; Thu, 25 Jul 1996 20:06:43 -0700 (PDT) Received: from [202.146.255.210] by jupiter.centrin.net.id; (5.65v3.2/1.1.8.2/11Jul96-0523PM) id AA12418; Fri, 26 Jul 1996 10:07:03 GMT Message-Id: <31F8375A.41C67EA6@centrin.net.id> Date: Fri, 26 Jul 1996 10:11:22 +0700 From: Iwan Leonardus Organization: skd X-Mailer: Mozilla 2.02 (X11; I; FreeBSD 2.1.0-RELEASE i386) Mime-Version: 1.0 To: dlr Cc: questions@freebsd.org Subject: Re: user-ppp problem References: <199607250205.WAA01211@asylum.asylum.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Sorry, but I am running ppp program (iijppp not pppd) and I tried to do ps ax|grep ppp|grep -v grep and no such process, but still I can not reconnect... This is happened only some provider, there is a provider that I rarely have this thing happened. I thing there is a different how they configure ppp, I don't know what it is. I hope you can tell me... Iwan Leonardus dlr wrote: > > > > > My user ppp software (ppp) can only connect to internet once > > > > At the second dial, after it enter Packet mode, there is an error message: > > > > rtinit:wrong ifa (0xf0712e80) was (0xf0709980) > > /kernel:rtinit wrong ifa (... > > > > or sometime: > > > > SIO.. file exists > > > > If the error come, i can not reach outside, I have to re boot the system. > > > > I wander what is going on here, Is there any way I can connect internet again without > > rebooting? > > > > Please help... > > When the connection fails do a ps -uax | grep pppd and look > for the ppp process, then do a kill -9 PID# of pppd. Or look > in /var/run and see if the pid # of the pppd process is there > and try killing it before starting the connection sequence again. > > pppd doesn't like to die when the connection fails. I've got a > script that will do this that i run continuously from a cron > process to keep my ppp connection going: > > #!/bin/sh > PATH=/etc:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin > LOGFILE=/var/log/ppp.log > export PATH LOGFILE > > if [ `ping -c 5 PPP_PROVIDER | grep "packet loss" | awk '{ > print $4 }'` -eq 0 ] ;then > kill `cat /var/run/ppp0.pid` > sleep 15 > /etc/ppplogin > datestamp=`date "+%b %e %H:%M:%S"` > host=`hostname` > echo "$datestamp $host $0[$$]: pppd restarted" >> $LOGFILE > fi > exit