[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[fedora-virt] how to edit dhcp configuration



Hello

I want to set fixed IP for host (from MAC address) in dhcp. How can I do
it through libvirt configuration? 

There is not possibility set it in virt-manager. I can edit manually
ldapnet.xml (ldapnet is name of my network) but: 

1. question:
Where is right place to edit it:
/etc/libvirt/qemu/networks/ldapnet.xml
or
/var/lib/libvirt/network/ldapnet.xml
(after reboot one file replaces other but which direction but I didn't
find which direction)

2. question:
How can I propagate this changes?

Neither 
/etc/init.d/libvirtd reload
/etc/init.d/libvirtd restart
changes dnsmasq settings. It is done only during reboot, why?

3. I've found this workaround: 
* kill dnsmasq process for this settings
* start dnsmasq with new settings, ex.
   .... --dhcp-host 52:54:00:22:a7:76,ldap-m1.ldapnet.tmapy.cz,192.168.241.101
Is it way how to do it through libvirt utility?

Pavel 
-- 
Pavel Lisy <pavel lisy gmail com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]