I have created an overlay Level 2 network using VLAN tags with Open vSwitch
. I want a Level 3 one so I need to give each VM a consistent IP address.
I'd like every host on this VLAN to get an IP address from a DHCP server, so I can plug in and out every VM without having to manually set static IP addresses in each one of them.
I though about attach a DHCP-VM on this VLAN : this VM would contain a DHCP server implementation (Ubuntu
default one is ok) and as the default DHCP is out of this VLAN, every VM attached would get the IP address from this VM's DHCP.
But I am introducing a whole VM, in other words another machine, just for a DHCP server, this solution seems just too much. Can you suggest me any other solution?