<div dir="ltr"><div><div><div>Hi Vasiliy,<br><br></div>I assume your TAP devices are _not_ bridged on the host?<br><br></div>If so, you can use the same approach as we use for Calico networking in OpenStack - <a href="http://docs.openstack.org/developer/networking-calico/implementation-notes.html#dhcp">http://docs.openstack.org/developer/networking-calico/implementation-notes.html#dhcp</a><br><br></div>You'll need:<br><ul><li>a dummy interface, with an address in the 85.143.220/24 CIDR</li><li>to populate the dnsmasq hosts file with the IP/MAC mappings for your VMs</li><li>to tell dnsmasq to listen on the dummy interface and all the TAPs, and treat the TAPs as aliases of the dummy interface (using --bridge-interfaces).</li></ul><p>Hope that helps - happy to provide more detail if you need.</p><p>  Neil</p><p><br></p></div><br><div class="gmail_quote"><div dir="ltr">On Fri, May 27, 2016 at 3:32 PM Vasiliy Tolstov <<a href="mailto:v.tolstov@selfip.ru">v.tolstov@selfip.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi. I have such setup:<br>
<br>
ip -4 a s tap37183<br>
148: tap37183: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb<br>
state UNKNOWN group default qlen 500<br>
    link/ether fe:54:00:00:58:9f brd ff:ff:ff:ff:ff:ff<br>
    inet <a href="http://85.143.216.1/32" rel="noreferrer" target="_blank">85.143.216.1/32</a> scope global tap37183<br>
       valid_lft forever preferred_lft forever<br>
    inet 192.168.240.110 peer <a href="http://85.143.220.84/32" rel="noreferrer" target="_blank">85.143.220.84/32</a> scope global tap37183<br>
       valid_lft forever preferred_lft forever<br>
<br>
<a href="http://85.143.216.1/32" rel="noreferrer" target="_blank">85.143.216.1/32</a> is gw address for vm<br>
<br>
192.168.240.110 peer <a href="http://85.143.220.84/32" rel="noreferrer" target="_blank">85.143.220.84/32</a> scope global tap37183<br>
this is host address with vm address added as peer  (/32)<br>
<br>
What i need to add to dnsmasq conf to serve for this vm for dhcp<br>
request with mac 25:54:00:00:58:9f  address 85.143.220.84 with netmask<br>
/24?<br>
<br>
Thanks!<br>
--<br>
Vasiliy Tolstov,<br>
e-mail: <a href="mailto:v.tolstov@yoctocloud.net" target="_blank">v.tolstov@yoctocloud.net</a><br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div>