[pve-devel] [PATCH dnsmasq 0/1] purge previous ip/mac lease of dhcp reply

DERUMIER, Alexandre alexandre.derumier at groupe-cyllene.com
Fri Nov 17 07:49:27 CET 2023


-------- Message initial --------
De: "DERUMIER, Alexandre" <alexandre.derumier at groupe-cyllene.com>
À: pve-devel at lists.proxmox.com <pve-devel at lists.proxmox.com>,
aderumier at odiso.com <aderumier at odiso.com>, s.hanreich at proxmox.com
<s.hanreich at proxmox.com>
Objet: Re: [pve-devel] [PATCH dnsmasq 0/1] purge previous ip/mac lease
of dhcp reply
Date: 16/11/2023 14:47:20

> > Maybe this [1][2] could be a less intrusive solution for this
> > issue?

>>Yes, dhcp release packet should be the way, but I don't known if can
>simply forge packet why any mac ?
>>>
>>I'll test it this afternoon to see if it's work.


mmm,It's not working, the dhcp release packet never reach the bridge


I have also try to forge the packet in python with scapy, 
same bahviour.


from scapy.all import send, IP, UDP, BOOTP, DHCP, str2mac
import random

releaseMAC = '12:45:a3:ed:c8:36'
releaseIP='192.168.2.10'
serverIP='192.168.2.1'
releaseMACraw = str2mac(releaseMAC)

dhcp_release =
IP(dst=serverIP)/UDP(sport=68,dport=67)/BOOTP(chaddr=releaseMACraw,
ciaddr=releaseIP, xid=random.randint(0,
0xFFFFFFFF))/DHCP(options=[('message-type','release'), 'end'])
send(dhcp_release)






More information about the pve-devel mailing list