[lxc-users] DHCP or static ip address?
Sjoerd
sjoerd at sjomar.eu
Sat Mar 4 20:18:22 UTC 2017
On 04-03-17 12:07, Yuri Kanivetsky wrote:
> Which way is better? Can it be any simpler? Is there any better way?
>
> Can you explain how to make use of dhcp? Without using lxd if possible.
>
> Meanwhile, I'm going to look into making CentOS work.
>
>
I just installed dnsmasq on the (ubuntu 16.04) host and use it as dhcp
(and dns) server.
Define a dhcp range in /etc/dnsmasq.conf :
dhcp-range=10.0.0.100,10.0.0.200,24h
And a fixed ip like:
dhcp-host=<hostname>,10.0.0.11,24h
where hostname is by default the container name
Cheer,
Sjoerd
More information about the lxc-users
mailing list