From owner-freebsd-questions Wed Jul 24 20:03:21 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA09538 for questions-outgoing; Wed, 24 Jul 1996 20:03:21 -0700 (PDT) Received: from asylum.asylum.org (asylum.asylum.org [205.217.4.17]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id UAA09525 for ; Wed, 24 Jul 1996 20:03:15 -0700 (PDT) Received: (from dlr@localhost) by asylum.asylum.org (8.6.10/8.6.9) id WAA01211; Wed, 24 Jul 1996 22:05:54 -0400 From: dlr Message-Id: <199607250205.WAA01211@asylum.asylum.org> Subject: Re: user-ppp problem To: iwan@centrin.net.id (Iwan Leonardus) Date: Wed, 24 Jul 1996 22:05:54 -0400 (EDT) Cc: questions@FreeBSD.ORG In-Reply-To: <31F61E0A.41C67EA6@centrin.net.id> from "Iwan Leonardus" at Jul 24, 96 07:58:50 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > 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