From owner-freebsd-questions@freebsd.org Mon Aug 15 14:30:43 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06BC6BBBF83 for ; Mon, 15 Aug 2016 14:30:43 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.70.90]) by mx1.freebsd.org (Postfix) with ESMTP id DAEE01B0D for ; Mon, 15 Aug 2016 14:30:42 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id BC8CFCB8CB3; Mon, 15 Aug 2016 09:30:35 -0500 (CDT) Received: from 128.135.52.6 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Mon, 15 Aug 2016 09:30:35 -0500 (CDT) Message-ID: <18337.128.135.52.6.1471271435.squirrel@cosmo.uchicago.edu> In-Reply-To: <57B1BE47.1080008@gmail.com> References: <57B1AE4B.3050407@gmail.com> <57B1BE47.1080008@gmail.com> Date: Mon, 15 Aug 2016 09:30:35 -0500 (CDT) Subject: Re: dhcpd and interface name From: "Valeri Galtsev" To: "Ernie Luzar" Cc: "Alnis Morics" , freebsd-questions@freebsd.org Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 14:30:43 -0000 On Mon, August 15, 2016 8:06 am, Ernie Luzar wrote: > Alnis Morics wrote: >> >> >> On 08/15/2016 02:58 PM, Ernie Luzar wrote: >>> When starting dhcpd at boot time the rc.conf contains dhcpd_iface"rl0" >>> but when restarting using /usr/local/etc/rc.d/isc-dhcpd restart all >>> interfaces on the host get included. >>> >>> Is there a dhcpd.conf statement for defining the interface to use? >>> >> Did you quote it exactly how you have it it rc.conf? The syntax should >> be: >> >> dhcpd_enable="YES" >> dhcpd_ifaces="rl0" >> >> -Alnis >> > Let me restate to make more clear. > > When starting dhcpd at boot time the rc.conf contains dhcpd_iface="rl0" > and dhcp is limited to the rl0 interface as desired. > > But when restarting using "/usr/local/etc/rc.d/isc-dhcpd restart" > command, all interfaces on the host get included, not just rl0. The following is not a solution, just an observation. If all of your "other" interfaces are outside the IP ranges configured in DHCP server configuration, then upon restart DHCP server will still ignore them and will not respond to any DHCP requests coming to these interfaces. This is as far as I remember how ISC DHCP server works (am I outdated?). So, I've got the following questions: do any of your other interfaces fall inside one of your DHCP ranges? Please, show all range dynamic-bootp x.x.x.x y.y.y.y; lines from your /usr/local/etc/dhcpd.conf file; and give list of all IP addresses your network interfaces have. Do you indeed observe on the interface outside your "range dynamic-bootp " responses from your ISC DHCP server to DHCP requests? If yes, this will be fair grounds for bug report IMHO. Valeri > > This is because the statements in rc.conf are not being reread when > using this restart command systax. > > So I am thinking there must be some way to code the interface name in > the dhcpd.conf itself. I read the man pages and could not find anything > along this line. > > So I am asking here, is there a dhcpd.conf statement for defining the > interface to use? If so, what is it? ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++