>>If the daemon listen to 192.168.10.1, I can't see the DHCPDISCOVERY packet. >>I need to listen to 0.0.0.0.
Note that it's work fine with dnsmasq, listening only to 192.168.10.1 /usr/sbin/dnsmasq --listen-address=192.168.10.1 --user=daemon --except-interface=lo --bind-interfaces --dhcp-range=192.168.10.10,192.168.10.20,255.255.255.0,192.168.10.255,infinite --domain=odiso.net --conf-file ----- Mail original ----- De: "Alexandre DERUMIER" <[email protected]> À: "Dietmar Maurer" <[email protected]> Cc: [email protected] Envoyé: Mercredi 22 Mai 2013 10:06:38 Objet: Re: [pve-devel] implementation of a dhcp service in proxmox ? I just tried both daemon, I can't get them work. I receive the DHCPDISCOVERY from the guest, and DHCPOFFER is sent, but never reach the guest. I have sniffed with dhcpdump tool, I don't see the DHCPOFFER packet on the bridge...I don't known on which interface is sent the packet... test setup is : auto vmbr2 iface vmbr2 inet static bridge_ports none bridge_stp off bridge_fd 0 address 192.168.10.1 netmask 255.255.255.0 with a vm plugged on vmbr2. If the daemon listen to 192.168.10.1, I can't see the DHCPDISCOVERY packet. I need to listen to 0.0.0.0. ----- Mail original ----- De: "Alexandre DERUMIER" <[email protected]> À: "Dietmar Maurer" <[email protected]> Cc: [email protected] Envoyé: Mercredi 22 Mai 2013 09:23:07 Objet: Re: [pve-devel] implementation of a dhcp service in proxmox ? >>The example daemon you sent has about 1000LOC - do we need that >>or would the simple version also work? >> >>http://cpansearch.perl.org/src/DJZORT/Net-DHCP-0.693/examples/dhcpd.pl To be honest I don't known, I'll try to play with cpan sample today. I'll also try to read the dhcp rfc to see what are the differents fields in dhcp packet response. ----- Mail original ----- De: "Dietmar Maurer" <[email protected]> À: "Dietmar Maurer" <[email protected]>, "Alexandre DERUMIER" <[email protected]> Cc: [email protected] Envoyé: Mercredi 22 Mai 2013 08:43:54 Objet: RE: [pve-devel] implementation of a dhcp service in proxmox ? > -----Original Message----- > From: [email protected] [mailto:pve-devel- > [email protected]] On Behalf Of Dietmar Maurer > Sent: Mittwoch, 22. Mai 2013 08:34 > To: Alexandre DERUMIER > Cc: [email protected] > Subject: Re: [pve-devel] implementation of a dhcp service in proxmox ? > > > So dnsmasq simply allocated range, depend of the source ip which > > receive the dhcp packets. > > > > So 1 dnsmasq daemon can do the job. > > Maybe command line will be too long with a lot of ranges and ip. > > Maybe can we generate the dnsmasq config file from proxmox > > configuration files before reload the dnsmasq deamon ? > > Besides, how will we handle leases on migration. When we implement our own > dhcp server with perl we can store them on /etc/pve. > > So maybe it is worth to evaluate Net::DHCP::Packet. The example daemon you sent has about 1000LOC - do we need that or would the simple version also work? http://cpansearch.perl.org/src/DJZORT/Net-DHCP-0.693/examples/dhcpd.pl _______________________________________________ pve-devel mailing list [email protected] http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel _______________________________________________ pve-devel mailing list [email protected] http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel _______________________________________________ pve-devel mailing list [email protected] http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
