Hi,<br><br>I am trying to set up a virtual network (VMs run on KVM) with different VMs running on different vlans. For each network, I have precomputed the mac:ip mappings and written to a dhcp-hostsfile specific to that network. <br>
<br>For example, for "--dhcp-range=174.0.140.10,174.0.140.200", I have the following: "--dhcp-hostsfile=/var/run/_root_root_vdhcpd200.dhcp_hosts.cfg"<br><br>Similarly, for the other network, I start a different dnsmasq process that serves a different range and has a different dhcp-hostsfile that it looks up. <br>
<br>The dhcp-hostsfile entries are of the following format:<br>mac-addr1,ip1,lease<br>mac-addr2,ip2,lease<br>mac-addrn,ipn,lease<br><br>However, dnsmasq still allocates a random IP from the range overriding anything stored in the dhcp-hostsfile. The logs show that dnsmasq gets the right mac address, but allocates a random IP. <br>
I've also tried it with the end-address in the --dhcp-range set to 'static'. In that case, the VM ends up without an IP. <br><br>dnsmasq runs with the following options: <br><br>/usr/sbin/dnsmasq --conf-file=/var/tmp/dnsmasq.dummy.conf --dhcp-hostsfile=/var/run/_root_root_vdhcpd100.dhcp_hosts.cfg --pid-file=/var/run/_root_root_vdhcpd100.dnsmasq.pid --bind-interfaces --except-interface=lo --listen-address=192.168.0.76 --dhcp-option option:dns-server,192.168.0.5,192.168.0.6 --dhcp-option option:router,192.168.0.1 --dhcp-range=192.168.0.10,192.168.0.90 <br>
<br>Everything works fine when I use /etc/ether or specify the mac:ip map as a --dhcp-host option. <br><br>Is there anything I might be doing wrong? <br><br>Thanks,<br>Shashank<br><br clear="all">-------------------------------------------------<br>