From owner-freebsd-questions Thu Nov 14 11:21:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5E9237B404 for ; Thu, 14 Nov 2002 11:21:17 -0800 (PST) Received: from mx1.magmacom.com (mx1.magmacom.com [206.191.0.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2432143E7B for ; Thu, 14 Nov 2002 11:21:17 -0800 (PST) (envelope-from liquid@liquidonline.ca) Received: from mail6.magma.ca (mail6 [206.191.0.248]) by mx1.magmacom.com (Magma's Mail Server) with ESMTP id gAEJLFIk024339; Thu, 14 Nov 2002 14:21:15 -0500 (EST) Received: from windows (montreal-hs-64-26-155-234.s-ip.magma.ca [64.26.155.234]) by mail6.magma.ca (Magma's Mail Server) with ESMTP id gAEJLFRZ013610; Thu, 14 Nov 2002 14:21:15 -0500 (EST) From: "Liquid" To: "'Timothy L. Robertson'" , "'FreeBSD Questions'" Subject: RE: Your experiences using PPPoE Date: Thu, 14 Nov 2002 14:21:16 -0500 Message-ID: <000701c28c13$0101fd10$6400a8c0@windows> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" 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