Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 1996 22:05:54 -0400 (EDT)
From:      dlr <dlr@asylum.org>
To:        iwan@centrin.net.id (Iwan Leonardus)
Cc:        questions@FreeBSD.ORG
Subject:   Re: user-ppp problem
Message-ID:  <199607250205.WAA01211@asylum.asylum.org>
In-Reply-To: <31F61E0A.41C67EA6@centrin.net.id> from "Iwan Leonardus" at Jul 24, 96 07:58:50 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607250205.WAA01211>