Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 1997 09:02:22 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Brian Somers <brian@awfulhak.org>
Cc:        Keith Spencer <bsd@smmc.qld.edu.au>, freebsd-questions@FreeBSD.ORG
Subject:   Re: What is the fbsd autoexec.bat file ?
Message-ID:  <19970923090222.36503@lemis.com>
In-Reply-To: <199709221551.QAA14905@awfulhak.demon.co.uk>; from Brian Somers on Mon, Sep 22, 1997 at 04:51:32PM %2B0100
References:  <199709221140.VAA21380@smmcroute.smmc.qld.edu.au> <199709221551.QAA14905@awfulhak.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970923090222.36503>