From owner-freebsd-questions Mon Sep 22 16:32:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA00518 for questions-outgoing; Mon, 22 Sep 1997 16:32:47 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA00510 for ; Mon, 22 Sep 1997 16:32:42 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id JAA22717; Tue, 23 Sep 1997 09:02:22 +0930 (CST) Message-ID: <19970923090222.36503@lemis.com> Date: Tue, 23 Sep 1997 09:02:22 +0930 From: Greg Lehey To: Brian Somers Cc: Keith Spencer , freebsd-questions@FreeBSD.ORG Subject: Re: What is the fbsd autoexec.bat file ? References: <199709221140.VAA21380@smmcroute.smmc.qld.edu.au> <199709221551.QAA14905@awfulhak.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709221551.QAA14905@awfulhak.demon.co.uk>; from Brian Somers on Mon, Sep 22, 1997 at 04:51:32PM +0100 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Sep 22, 1997 at 04:51:32PM +0100, Brian Somers wrote: >> Hi again all, >> If I wish to start ... >> ppp -auto ISP >> >> automagically at boot, wher do I put this line? >> Is it the rc.conf thing?? > > The best place to put it is mentioned in the handbook section 13.1.6 > on http://www.freebsd.org/handbook/handbook.html. To amplify on this: this reference says: Look for the network_interfaces variable. If you want to configure your system to dial your ISP on demand, make sure the tun0 device is added to the list, otherwise remove it. network_interfaces="lo0 tun0" ifconfig_tun0= Note, the ifconfig_tun0 variable should be empty, and a file called /etc/start_if.tun0 should be created. This file should contain the line ppp -auto mysystem This script is executed at network configuration time, starting your ppp daemon in automatic mode. If you have a LAN for which this machine is a gateway, you may also wish to use the -alias switch. Refer to the manual page for further details. More specifically, the script /etc/rc.net looks for this file, *if* you specify the last part (tun0) in the network_interfaces. The old version of rc.net, /etc/netstart, *doesn't* do this (well, not my old version, anyway). The alternative that many people have mentioned, to put the command in /etc/rc.local, will work, but it doesn't get started until much later in the boot process, and you could find yourself hanging waiting for DNS to get information across the PPP link. Greg