From owner-freebsd-questions@FreeBSD.ORG Sun Jul 16 22:32:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 035EA16A4DA for ; Sun, 16 Jul 2006 22:32:55 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86A2043D46 for ; Sun, 16 Jul 2006 22:32:54 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: by wr-out-0506.google.com with SMTP id 69so425536wra for ; Sun, 16 Jul 2006 15:32:53 -0700 (PDT) Received: by 10.54.78.19 with SMTP id a19mr1532612wrb; Sun, 16 Jul 2006 15:32:53 -0700 (PDT) Received: from ?192.168.0.3? ( [216.45.217.148]) by mx.gmail.com with ESMTP id g7sm596424wra.2006.07.16.15.32.53; Sun, 16 Jul 2006 15:32:53 -0700 (PDT) Date: Sun, 16 Jul 2006 18:33:10 -0400 From: Gerard Seibert To: freebsd-questions@freebsd.org Organization: Seibercom In-Reply-To: <20060715152425.H8662@tripel.monochrome.org> References: <20060715152425.H8662@tripel.monochrome.org> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20060716182959.0144.GERARD@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.25 [en] Subject: Re: Start dhcpd on boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2006 22:32:55 -0000 Chris Hill wrote: > I installed net/isc-dhcp3-server from ports, butI can't seem to persuade > it to start when the machine boots. After boot I can do a > # /usr/local/etc/rc.d/isc-dhcpd.sh start > ..and the daemon runs and works, but I would like for it to start > automatically on boot, with no manual intervention. Any thoughts on how > to do this? > > Google didn't find anything useful, nor did a search of the -questions > archive. On a hunch, I renamed /usr/local/etc/rc.d/isc-dhcpd.sh to > /usr/local/etc/rc.d/dhcpd.sh, but still no love, so I put it back. > > In /etc/rc.conf I have > dhcpd_enable="YES" # Run the DHCP daemon... > dhcpd_ifaces="rl1" # ...on this interface... > dhcpd_flags="-q" # ...in quiet mode. > > # grep dhc /var/log/messages > shows only the usual rash of intrusion attempts from 0wn3d Windows > machines, e.g. > May 19 22:28:00 mail sshd[22367]: error: PAM: authentication error for > root from 24-231-195-180.dhcp.bycy.mi.charter.com > > Other pertinent info: > # uname -a > FreeBSD mail.monochrome.org 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: > Sat Jul 15 20:50:20 EDT 2006 > chris@mail.monochrome.org:/usr/obj/usr/src/sys/GENERIC i386 > > # pkg_info | grep isc-dhcp3-server > isc-dhcp3-server-3.0.3 The ISC Dynamic Host Configuration Protocol server > ..a little out of date, I know, but that has no bearing on the issue at > hand. > Is this what you are looking for: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pxe/server-config.html //excerpt// 2 Server Configuration 1. Install DHCP: Install net/isc-dhcp3-server you can use this config file dhcpd.conf, stick it in /usr/local/etc/. 2. Enable tftp: 1. Make a directory /usr/tftpboot 2. Add this line to your /etc/inetd.conf: tftp dgram udp wait nobody /usr/libexec/tftpd tftpd /usr/tftpboot 3. Enable NFS: 1. Add this to /etc/rc.conf: nfs_server_enable="YES" 2. Add this to /etc/exports: /usr -alldirs -ro 4. Reboot to enable the new services or start them manually. -- Gerard Seibert gerard@seibercom.net Murphy's First Law: Nothing is as easy as it looks.