Date: Fri, 26 Jul 1996 10:11:22 +0700 From: Iwan Leonardus <iwan@centrin.net.id> To: dlr <dlr@asylum.org> Cc: questions@freebsd.org Subject: Re: user-ppp problem Message-ID: <31F8375A.41C67EA6@centrin.net.id> References: <199607250205.WAA01211@asylum.asylum.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31F8375A.41C67EA6>
