From owner-freebsd-mobile Wed Jan 19 1:32:53 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.skylink.it (ns.skylink.it [194.177.113.1]) by hub.freebsd.org (Postfix) with ESMTP id 6D0FC1525C; Wed, 19 Jan 2000 01:32:38 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from kim.ispra.webweaving.org (va-136.skylink.it [194.185.55.136]) by ns.skylink.it (8.9.1/8.8.8) with ESMTP id KAA27294; Wed, 19 Jan 2000 10:32:56 +0100 Received: from webweaving.org (burly.ispra.webweaving.org [10.0.0.21]) by kim.ispra.webweaving.org (8.8.8/8.8.5) with ESMTP id JAA08102; Wed, 19 Jan 2000 09:27:00 GMT X-Passed: MX on Ispra.WebWeaving.org Wed, 19 Jan 2000 09:27:00 GMT and masked X-No-Spam: Neither the receipients nor the senders email address(s) are to be used for Unsolicited (Commercial) Email without the explicit written consent of either party; as a per-message fee is incurred for inbound and outbound traffic to the originator. Posted-Date: Wed, 19 Jan 2000 09:27:00 GMT Message-ID: <38858365.24335D52@webweaving.org> Date: Wed, 19 Jan 2000 10:27:01 +0100 From: Dirk-Willem van Gulik Reply-To: dirkx@webweaving.org Organization: WebWeaving Consultancy X-Mailer: Mozilla 4.7 (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 To: William Woods Cc: freebsd-questions@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG Subject: Re: ppp dialup question + LAN References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org William Woods wrote: > > I have a laptop that uses PPP to connect to the net, but also, when connected > to my LAN uses my other FreeBSD box as a gateway. in rc.conf there is > an entry for defaultrouter="192.168.0.2" when I am on the LAN, what would be an > easy to switch from LAN to ppp dialup without editing rc.conf commenting out > the default router and rebooting ? A 'neat' way is to use DHCP when you are on the lan (including letting it set the route, dns and so on) and much the same for PPP. I.e. hardly _any_ network settings in rc.conf besides YP, domainname, hostname and so on. This works for me. Dw To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message