From owner-freebsd-questions@FreeBSD.ORG Tue Feb 20 19:30:47 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF5C516A498 for ; Tue, 20 Feb 2007 19:30:47 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id 8E29A13C428 for ; Tue, 20 Feb 2007 19:30:47 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 27633 invoked from network); 20 Feb 2007 19:30:46 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 Feb 2007 19:30:46 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 5E2B228426; Tue, 20 Feb 2007 14:30:45 -0500 (EST) To: MoonblueZ References: <1bdd14300702190528i2ddbae3lb8070b1a4c7b574e@mail.gmail.com> From: Lowell Gilbert Date: Tue, 20 Feb 2007 14:30:45 -0500 In-Reply-To: <1bdd14300702190528i2ddbae3lb8070b1a4c7b574e@mail.gmail.com> (moonbluez@gmail.com's message of "Mon\, 19 Feb 2007 20\:28\:04 +0700") Message-ID: <44zm78y6ca.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org, freebsd-pf@freebsd.org Subject: Re: xDSL n Dial up connection ??? help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2007 19:30:47 -0000 MoonblueZ writes: > ---------- ----------- > | ISP 1 | | ISP 2 | > ---------- ----------- > | | > (DHCP) | | (DHCP) > | | > ----- ----- > Dial up --> | | | | <-- xDSL > ----- ----- > \ / > ---------------- > | router | > ---------------- > | > | > -------------------- > > I have some problem here, about how to setting freebsd router which have two > link like topology above. i want the router have automatically detected if > xDSL link has down n swicth the link to dial up automatically. even so was > the reverse if link xDSL has up n dial up is disconnect automatically.. Aside from detecting the status of the DSL link, ppp(8) can handle everything you need. However, figuring out when the link goes down can be tricky; among other things, the techniques available depend on how you interface to the DSL line. You may need some kind of heartbeat -- in the worst case, you might need to set one up yourself using a ping of some upstream router. Good luck. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/