From owner-freebsd-questions Mon Feb 14 16:20:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by builder.freebsd.org (Postfix) with ESMTP id E30DA42B9 for ; Mon, 14 Feb 2000 16:13:16 -0800 (PST) Received: from hades.hell.gr (pat35.x-treme.gr [212.120.197.227]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with SMTP id CAA06620 for ; Tue, 15 Feb 2000 02:13:31 +0200 Received: (qmail 5314 invoked by uid 1001); 14 Feb 2000 23:22:23 -0000 To: Stanley Hopcroft Cc: questions@freebsd.org Subject: Re: How can I add a PPP interface with a cost ? References: From: Giorgos Keramidas Date: 15 Feb 2000 01:22:22 +0200 In-Reply-To: Stanley Hopcroft's message of "Mon, 14 Feb 2000 13:04:11 +1100 (EST)" Message-ID: <867lg7z7wx.fsf@hades.hell.gr> Lines: 26 X-Mailer: Gnus v5.7/Emacs 20.5 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Stanley Hopcroft writes: > Dear Ladies and Gentlemen, > > I am writing to ask please would you help me configure user PPP to add > the tun0 interface (to the routing table) with a non zero cost > (alternatively update the route table so that the former default route > has its cost increased but remains usable while the route through tun0 > becomes the new default route). > > The intent is to allow dual homed machines (typically ethernet and > modem) to dial an ISP while continuing to work on their LAN. > > I would like to do this on a 3.4-RELEASE machine. I don't know if that is what you want to do, but the ppp.linkup and ppp.linkdown scripts can be used for routing table hacking, AFAIK. You can put `add default HISADDR' in ppp.conf and have the ISP become the default gateway when ppp is on. Then on ppp.linkdown you can put a similar statement to return the default route to your ethernet. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > For my public PGP key: finger keramida@diogenis.ceid.upatras.gr PGP fingerprint, phone and address in the headers of this message. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message