DHCPd Will Not Listen on the Correct Interface
Mikhail Goriachev
mikhailg at webanoide.org
Sun Jul 23 04:28:01 UTC 2006
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 at webanoide.org
Web: http://www.webanoide.org
PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
More information about the freebsd-questions
mailing list