> > > So far, *this all works!*
>
> mmm, and you reassign the same ip address to the new mac ?
>
>>If that is the first free IP in the range, the vNic gets the same IP.
>>Otherwise it will get a new IP.
Can you share your dnsmasq config file ? Maybe do you have extra option
make it working for
"DERUMIER, Alexandre" writes:
>>>So far, *this all works!*
>
> mmm, and you reassign the same ip address to the new mac ?
>
If that is the first free IP in the range, the vNic gets the same IP.
Otherwise it will get a new IP.
___
pve-devel mailing li
formationkvm3 dnsmasq-dhcp[796025]: DHCPDISCOVER(vnetpve)
192.168.2.10 12:45:10:22:fb:fd no address available
Message initial
De: Stefan Lendl
À: "DERUMIER, Alexandre"
Cc: pve-devel@lists.proxmox.com
Objet: Re: [pve-devel] [PATCH pve-network] dnsmasq: configure static
>>I experimented with several approaches with dnsmasq leases.
>>I cannot reproduce your example because it works in my examples.
>>My procedure:
>>dnsmasq config:
dhcp-range=set:DHCPNAT-10.1.0.0-16,10.1.0.0,static,255.255.0.0,infinite
>>VM 108 net1: MAC: bc:24:11:ad:0e:2e
>>
>>qm set 108 --dele
"DERUMIER, Alexandre" writes:
>
> I can reproduce easily 100%:
>
>
> - create a nic with mac:xx:xx:xx:xY ip: 192.168.0.10
> - start vm. (the ether file is filed + reload)
> - the guest do a dhcp request, the dnsmasq respond a store the lease
> in /var/lib/misc/zone.lease
>
> - delete the nic
>
>>
>>I have a similar solution for the dhcp-range.
>>I played around with adding and removing IPs from IPAM and It looks
>>like
>>dnsmasq is offering the correct IP, as stored in IPAM and ethers
>>file.
>>
>>I tried with a regular reboot to get a new IP.
>>
>>What I saw when testing with the previo
vel] [PATCH pve-network] dnsmasq: configure static range
for each subnet
Date: 15/11/2023 16:13:50
we don't want dynamic lease, simply define each subnet as a static
range.
dhcp-range defined on a subnet is only used by ipam plugin.
This will also allow to use dhcp subnet without need to define
we don't want dynamic lease, simply define each subnet as a static range.
dhcp-range defined on a subnet is only used by ipam plugin.
This will also allow to use dhcp subnet without need to define a range.
Can be usefull for external ipam like phpipam, where you can't define ranges.
Signed-off-b