All doc and the libvirt software itself is very insistent that dhcp4
will be supported on one and only one IPv4 subnetwork. Why is true?
Certainly dnsmasq supports multiple dhcp-range definitions and the
actual parameters passed to dnsmasq would be more or less the same! I
can understand some restriction if there were systems libvirt suports
which does not support the multi-dhcp per interface but not the blanket
restriction.
This, this is OK:
------------------------------------------------------
<ip address='172.16.6.1' prefix='16'>
<dhcp>
<range start='172.16.6.128' end='172.16.6.254' />
<range start='172.16.7.128' end='172.16.7.254' />
</dhcp>
</ip>
------------------------------------------------------
but this is not:
------------------------------------------------------
<ip address='172.16.6.1' prefix='16'>
<dhcp>
<range start='172.16.6.128' end='172.16.6.254' />
<range start='172.16.7.128' end='172.16.7.254' />
</dhcp>
</ip>
<ip address='172.16.7.1' prefix='16'>
<dhcp>
<range start='172.16.7.128' end='172.16.7.254' />
</dhcp>
</ip>
------------------------------------------------------
In both cases, the parameters passed to dnsmasq are:
----------------------------------------------------
dhcp-range=172.16.6.128,172.16.6.254
dhcp-range=172.16.7.128,172.16.7.254
----------------------------------------------------
and, for dhcp, dnsmasq does not care about the specific addresses since
it does its own filtering by listening on 0.0.0.0:67/68
Comments?
Gene