From owner-freebsd-questions@FreeBSD.ORG Fri May 28 07:44:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6FF116A4CE for ; Fri, 28 May 2004 07:44:05 -0700 (PDT) Received: from lawrence.edu (mailhub2.lawrence.edu [143.44.65.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69B0E43D2D for ; Fri, 28 May 2004 07:44:05 -0700 (PDT) (envelope-from Robert.H.Lowe@lawrence.edu) Received: from [143.44.97.16] (HELO lawrence.edu) by lawrence.edu (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5205328 for freebsd-questions@freebsd.org; Fri, 28 May 2004 09:43:36 -0500 Message-ID: <40B75018.50203@lawrence.edu> Date: Fri, 28 May 2004 09:43:36 -0500 From: Robert Lowe Organization: Lawrence University User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Starting a second loopback interface and services at startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2004 14:44:05 -0000 Hi! New to FreeBSD and running 5.2.1-RELEASE on an Alpha. I do predominantly SysV/ATT boxes, so I feel a bit out of it... Question #1: I need to create a second loopback interface, which I can do just fine at the command line: # ifconfig lo1 create # ifconfig lo1 inet a.b.c.d netmask x.x.x.x How do I automate this at startup? I stumbled across something in /etc/network.subr that suggests I ought to create /etc/start_if.lo1 which would then be sourced. I assume I can add a ifconfig_lo1 variable to /etc/rc.conf. I tried these, but with no luck. Can anyone point the way? Question #2: I'm trying to start Quagga services on this box (zebra and ospfd). I added scripts to /usr/local/etc/rc.d/ for these two, but no luck. They work fine from the command line, e.g. # /usr/local/etc/rc.d/zebra.sh start # /usr/local/etc/rc.d/ospfd.sh start Both have the .sh extension, which seems to be required. How should I troubleshoot this? I don't find anything in dmesg.today suggesting that there was even an attempt to run the scripts. Also, can one use the rcorder keywords to provide startup ordering for scripts in /usr/local/etc/rc.d ??? TIA, Robert