[Libvir] Extra options to dnsmasq

Hi everyone! Is there any way I can pass extra options to dnsmasq when starting a virtual network? I need that in order to specify static dhcp leases. (is there another way to do that?) Thanks, Mathieu Patte Electronic Ground Support Equipment Engineer EADS Astrium 31 rue des Cosmonautes Z.I. du Palays 31402 Toulouse Cedex 4 France Phone : +33562199032 Mail : mathieu.patte@astrium.eads.net <mailto:mathieu.patte@astrium.eads.net> Ce courriel (incluant ses eventuelles pieces jointes) peut contenir des informations confidentielles et/ou protegees ou dont la diffusion est restreinte. Si vous avez recu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en avertir immediatement l'expediteur et d'effacer ce courriel de votre systeme. Astrium decline toute responsabilite en cas de corruption par virus, d'alteration ou de falsification de ce courriel lors de sa transmission par voie electronique. This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. --------------------------------------------------------------------- Astrium SAS (393 341 516 RCS Paris) - Siege social: 6 rue Laurent Pichat, 75016 Paris, France

tir, 22 04 2008 kl. 17:50 +0200, skrev PATTE, Mathieu:
Is there any way I can pass extra options to dnsmasq when starting a virtual network? I need that in order to specify static dhcp leases. (is there another way to do that?)
Actually, I wrote a patch for doing static hosts some time ago, but I haven't had the time to clean it up properly. It should apply cleanly to 0.4.0, but it shouldn't be hard to adopt to CVS head. In XML it works by specifying a stanza such as: <ip address="192.168.122.1" netmask="255.255.255.0"> <dhcp> <range start="192.168.122.4" end="192.168.122.254" /> <statichost mac="00:16:3E:XX:XX:XX" host="XXX" ip="192.168.122.2" /> <statichost host="YYY" ip="192.168.122.3" /> </dhcp> </ip> The patch is attached, please let me know if you have any questions :-) -- Mads Chr. Olesen <shiyee@shiyee.dk> shiyee.dk
participants (2)
-
Mads Chr. Olesen
-
PATTE, Mathieu