[Dnsmasq-discuss] many tap devices, provide dhcp and ipv6 slaac

Neil Jerram neil at tigera.io
Fri May 27 15:56:53 BST 2016


Hi Vasiliy,

I assume your TAP devices are _not_ bridged on the host?

If so, you can use the same approach as we use for Calico networking in
OpenStack -
http://docs.openstack.org/developer/networking-calico/implementation-notes.html#dhcp

You'll need:

   - a dummy interface, with an address in the 85.143.220/24 CIDR
   - to populate the dnsmasq hosts file with the IP/MAC mappings for your
   VMs
   - 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).

Hope that helps - happy to provide more detail if you need.

  Neil



On Fri, May 27, 2016 at 3:32 PM Vasiliy Tolstov <v.tolstov at selfip.ru> wrote:

> Hi. I have such setup:
>
> ip -4 a s tap37183
> 148: tap37183: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb
> state UNKNOWN group default qlen 500
>     link/ether fe:54:00:00:58:9f brd ff:ff:ff:ff:ff:ff
>     inet 85.143.216.1/32 scope global tap37183
>        valid_lft forever preferred_lft forever
>     inet 192.168.240.110 peer 85.143.220.84/32 scope global tap37183
>        valid_lft forever preferred_lft forever
>
> 85.143.216.1/32 is gw address for vm
>
> 192.168.240.110 peer 85.143.220.84/32 scope global tap37183
> this is host address with vm address added as peer  (/32)
>
> What i need to add to dnsmasq conf to serve for this vm for dhcp
> request with mac 25:54:00:00:58:9f  address 85.143.220.84 with netmask
> /24?
>
> Thanks!
> --
> Vasiliy Tolstov,
> e-mail: v.tolstov at yoctocloud.net
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20160527/53007f43/attachment.html>


More information about the Dnsmasq-discuss mailing list