From owner-freebsd-questions@FreeBSD.ORG Sat Jul 22 09:05:43 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 7153616A4E1 for ; Sat, 22 Jul 2006 09:05:43 +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 4E44A43D45 for ; Sat, 22 Jul 2006 09:05:42 +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 k6M96b1p026779; Sat, 22 Jul 2006 05:06:40 -0400 (CLT) (envelope-from mikhailg@webanoide.org) Message-ID: <44C1EA4F.5000800@webanoide.org> Date: Sat, 22 Jul 2006 19:05:19 +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> In-Reply-To: <200607220005.54412.glists@comcast.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-98.7 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: Sat, 22 Jul 2006 09:05:43 -0000 Serban Giuroiu wrote: > Hello, everybody. > > I have a fresh install of FreeBSD 6.1-RELEASE on a machine with several NICs, > and I need to run different DHCP servers for different subnets on different > NICs. I installed isc-dhcp3-server-3.0.4_2 from ports with the default > options enabled (of importance: DHCP_PARANOIA and DHCP_JAIL). > > These are the interfaces I need to run DHCPd on: > > fxp0: flags=8843 mtu 1500 [...] > rl0: flags=8843 mtu 1500 What happens if you add them into /etc/rc.conf?: dhcpd_ifaces="fxp0 rl0" > According to the man page, dhcpd takes as a last argument the interface it > should bind to. I run one dhcpd for the interface rl0 like so: > > /usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf.rl0.10.0.0.0 -lf /var/db/dhcpd.leases.rl0.10.0.0.0 -pf /var/run/dhcpd.pid.rl0.10.0.0.0 -user > dhcpd -group dhcpd rl0 I prefer using: (necessary variables are declared in /etc/rc.conf) # /usr/local/etc/rc.d/isc-dhcpd.sh start > After searching through Google, forums, and mailing lists, I have not > encountered a post describing a similar situation. Does anybody know what the > problem might be? I hope this helps. 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