From owner-freebsd-questions@FreeBSD.ORG Sun Jul 23 04:28:01 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 CBC6716A4DD for ; Sun, 23 Jul 2006 04:28:01 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from overlord.navalradio.cl (overlord.navalradio.cl [201.236.67.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EF0643D46 for ; Sun, 23 Jul 2006 04:28:00 +0000 (GMT) (envelope-from mikhailg@webanoide.org) Received: from [10.0.0.7] (ppp111-84.lns1.hba1.internode.on.net [150.101.111.84]) (authenticated bits=0) by overlord.navalradio.cl (8.13.6/8.13.6) with ESMTP id k6N4Rk1H004083; Sun, 23 Jul 2006 00:27:49 -0400 (CLT) (envelope-from mikhailg@webanoide.org) Message-ID: <44C2FAB1.8080308@webanoide.org> Date: Sun, 23 Jul 2006 14:27:29 +1000 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060516) MIME-Version: 1.0 To: gyzmobro@yahoo.com References: <200607220005.54412.glists@comcast.net> <44C1F34A.8080203@locolomo.org> <200607221123.11978.glists@comcast.net> In-Reply-To: <200607221123.11978.glists@comcast.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-98.6 required=5.0 tests=AWL,RCVD_IN_SORBS_DUL, USER_IN_WHITELIST autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on overlord.navalradio.cl Cc: freebsd-questions@freebsd.org Subject: Re: DHCPd Will Not Listen on the Correct Interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jul 2006 04:28:01 -0000 Serban Giuroiu wrote: > On Saturday 22 July 2006 02:43, Erik Nørgaard wrote: >> Do you have a particular reason to run two daemons separately? >> >> In your dhcpd.conf you can specify multiple subnets and just start the >> daemon, dhcpd will send a reply matching the subnet of the interface a >> request was received on. It won't send replys on subnets it have no >> configuration for. > > I didn't think of that! I condensed my configuration into one file, and DHCPd > is now happily serving both subnets. It's still listening on all interfaces, > but a little PF magic will ensure that isn't a problem. > Instead of PF, you can control serving interfaces from /etc/rc.conf: dhcpd_ifaces="fxp0 rl0" Cheers, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: mikhailg@webanoide.org Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B