On 11/8/23 18:18, DERUMIER, Alexandre wrote:
> Also, currently, I'm not sure why we need to define the dhcp in
> /etc/pve/sdn/dhcp.cfg ?
>
> couldn't we simply add something like : "dhcp:1" or "dhcp:dnsmasq" on
> the zone ?
That sounds like a good idea and would simplify stuff a lot. I'll tr
>>/etc/default/dnsmasq.
>>This file specifies the configuration directory for the dnsmasq
>>instance (/etc/dnsmasq.d/). It also sets the configuration
>>file to /dev/null so the default configuration from the package has
>>no influence on the dnsmasq configuration.
>>
>>/etc/dnsmasq.d//00-default.c
>>Adding new MAC address mappings is done with a simple reload that
>>does
>>not disrupt the dnsmasq daemon in any way.
Don't have read the code yet, but note that
dhcp-hostsfile= for mac reservation (different than dynamic
leases),
can be modify without any reload of dnsmasq.
_
The plugin generates several dnsmasq configuration files from the SDN
configuration.
/etc/default/dnsmasq.
This file specifies the configuration directory for the dnsmasq
instance (/etc/dnsmasq.d/). It also sets the configuration
file to /dev/null so the default configuration from the package has