[Dnsmasq-discuss] Having dnsmasq coexist with other dhcp server

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu Oct 19 16:59:00 UTC 2023


>Sent: Thursday, October 19, 2023 at 4:06 PM
>From: "Matus UHLAR - fantomas" <uhlar at fantomas.sk>
>> >On Wed Oct 18 09:00:24 UTC 2023, Matus UHLAR wrote:
>> >> I don't see any explicit option to disable dhcp server, but using
>> >> --no-dhcp-interface= option or --dhcp-alternate-port could hep you.
>>
>> On 19.10.23 14:02, Luigi Baldoni via Dnsmasq-discuss wrote:
>> >I do not wish to disable the dhcp server, indeed I want to use it.
>>
>> why do you run kea dhcp server then?

On 19.10.23 16:57, Luigi Baldoni via Dnsmasq-discuss wrote:
>It's different traffic that I wish to handle separately and it's easier for me this way.

to run two different DHCP servers on two different interfaces?

>> >Applying --no-dhcp-interface for lo and other interfaces did not help.
>> >Would the dhcp server still work if listening on a different interface?
>>
>> yes, that's possible.
>> option bind-interfaces should fix the problem.
>
>That solved the problem with ISC dhcp server, but not with kea.

perhaps kea also needs option to bind to single interface, so neither of 
them will bind to wildcard and they won't try the same interface.

>> >> how is it being started? could the startup procedures be protecting the config by rewriting it to a known state during startup?
>>
>> >On Wed Oct 18 09:56:49 UTC 2023, wkitty42 wrote:
>> >Tried init, systemctl (two different debian installations) and invoking the daemon straight from console: no change.
>>
>> I don't think this will help.
>
>Which one?

either. Debian installation does not regenerate config at startup AFAIK

>> the problem is that both dnsmasq and kea dhcp server are trying to listen on
>> port 69.
>
>On different interfaces. And it's hard for me to understand why both, or dnsmasq
>at any rate, attempt to listen on interfaces that are explicitly excluded in the
>configuration.

bind-interfaces dnsmasq option should tell it not to bind to wildcard and 
no-dhcp-interfaces should tell it not to bind to port 69 on specific 
interfaces. Just find similar option for kea.

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
BSE = Mad Cow Desease ... BSA = Mad Software Producents Desease



More information about the Dnsmasq-discuss mailing list