Hi, 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.
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" 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. The dhcp-hostsfile entries are of the following format: mac-addr1,ip1,lease mac-addr2,ip2,lease mac-addrn,ipn,lease 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. 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. dnsmasq runs with the following options: /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 Everything works fine when I use /etc/ether or specify the mac:ip map as a --dhcp-host option. Is there anything I might be doing wrong? Thanks, Shashank -------------------------------------------------
_______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss