Date: Thu, 14 Nov 2002 14:21:16 -0500 From: "Liquid" <liquid@liquidonline.ca> To: "'Timothy L. Robertson'" <timothyr@timothyr.com>, "'FreeBSD Questions'" <freebsd-questions@freebsd.org> Subject: RE: Your experiences using PPPoE Message-ID: <000701c28c13$0101fd10$6400a8c0@windows> In-Reply-To: <B9F93171.1BAA2%timothyr@timothyr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ah, something like this should work. I've tried so many different things but in the end, the problem remains that the system itself does not know that tun0 no longer works and I have to manually restart ppp. This essentially does it. The other guy who replied also had good ideas, but all those are on the assumption that FreeBSD notices the link is down... I'm guessing it's the only reason it hasn't worked for me. I've tried using "set reconnect x x" in ppp.conf - if that doesn't work there's a serious problem as its sole purpose is to redial/reconnect (whatever) as soon as the link is down - which it has failed to do, given the link is never "down" according to ifconfig anyway. Thanks a lot Tim, Sandro > -----Original Message----- > From: Timothy L. Robertson [mailto:timothyr@timothyr.com] > Sent: November 14, 2002 1:55 PM > To: Liquid; FreeBSD Questions > Subject: Re: Your experiences using PPPoE >=20 > Sandro, >=20 > Attached are a set of shell scripts I use to ping a number of sites > occasionally, and restart the PPPoE connection if they all fail. > (This is > on Mindspring DSL over Covad.) This has run for months unattended on > a low > volume machine, keeping my connection up whenever Mindspring has its > act > together. >=20 > There's probably a more elegant way to do this, but the idea is that > ppp.linkup.sh calls nettest.sh, which calls pingsites.sh. Pingsites > tries > to reach a number of high reliability sites, and only fails if all the > sites > are down. If pingsites fails, it calls reconnect.sh, which kills the > old > ppp and nettest processes, and tries to get new ones running. I think > it > should all just work if you put it in /etc/ppp, but no guarantees. > Also, at > any time you can reset your ppp connection by typing > /etc/ppp/reconnect.sh & > as root. >=20 > -Tim >=20 > On 11/14/02 9:20 AM, "Liquid" <liquid@liquidonline.ca> wrote: >=20 > > I'm just looking to see how others connect their FreeBSD machine to > the > > internet around here if they have a PPPoE connection. I thought > mine > > was ok, as I never would be offline with one ISP (up to 5 weeks), > but > > now I've changed ISP and my machine is no longer able to realize > that > > the ppp link is down and needs to be renegotiated. I'm especially > > interested in knowing what 3rd party programs people use. For the > > networking guru's: I know for a fact my former ISP did not go 5 > weeks > > straight without dropping my connection, they sent mail regarding > > downtime for repairs twice in that period. Is there something about > one > > isp vs another one that can keep my machine from noticing when the > > connection is lost? > > > > Here is my ppp.conf: > > > > FIREWALL# ee /etc/ppp/ppp.conf > > > > default: > > ident user-ppp VERSION (built COMPILATIONDATE) > > set device PPPoe:rl0 > > set mru 1492 > > set mtu 1492 > > set timeout 0 > > set log Phase Chat Connect LCP IPCP CCP tun command > > set ifaddr 1.1.1.1/0 1.1.1.2/0 255.255.255.0 0.0.0.0 > > set cd 5 > > set crtscts on > > enable dns > > > > pppoe: > > # set mode dedicated > > set authname ******@magma.ca > > set authkey ***** > > set dial > > set login > > > > in my rc.conf, I've set it to connect on startup, in dedicated mode, > and > > tried ddial today as well, running the process as root. I also have > a > > ppp.linkup: > > > > MYADDR: > > Add 0 0 HISADDR > > > > If anyone sees room for improvement, or knows where I can inform > myself > > on creating a neat hangup script that can kill the ppp process and > fire > > up a new one, by all means let me know > > > > Thanks, > > > > Sandro M. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000701c28c13$0101fd10$6400a8c0>