Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2006 14:27:29 +1000
From:      Mikhail Goriachev <mikhailg@webanoide.org>
To:        gyzmobro@yahoo.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: DHCPd Will Not Listen on the Correct Interface
Message-ID:  <44C2FAB1.8080308@webanoide.org>
In-Reply-To: <200607221123.11978.glists@comcast.net>
References:  <200607220005.54412.glists@comcast.net>	<44C1F34A.8080203@locolomo.org> <200607221123.11978.glists@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44C2FAB1.8080308>