Re: [Lxc-users] How long the dhcp lease lasts

2013-04-22 Thread Masood Mortazavi
I find it best to separate, entirely, the base host cluster management network from the container cluster network, entirely. On Mon, Apr 22, 2013 at 2:46 PM, Michael H. Warfield wrote: > On Mon, 2013-04-22 at 22:58 +0200, Robin Monjo wrote: > > Thank you for your answer. > > I want to have the h

Re: [Lxc-users] How long the dhcp lease lasts

2013-04-22 Thread Michael H. Warfield
On Mon, 2013-04-22 at 22:58 +0200, Robin Monjo wrote: > Thank you for your answer. > I want to have the hostname and ip written in the /etc/hosts file so I > can access them directly using their hostname and not their ip. For > example, I'd like to ping the hostname rather than the ip. But... You

Re: [Lxc-users] How long the dhcp lease lasts

2013-04-22 Thread Robin Monjo
Thank you for your answer. I want to have the hostname and ip written in the /etc/hosts file so I can access them directly using their hostname and not their ip. For example, I'd like to ping the hostname rather than the ip. I will document myself on dnsmasq to get a better understanding of ever

Re: [Lxc-users] How long the dhcp lease lasts

2013-04-22 Thread Michael H. Warfield
On Mon, 2013-04-22 at 21:59 +0200, Robin Monjo wrote: > Hello everyone, > > Using the default config, containers will have their IP attributed by > the dnsmasq service. I'd like to write in the '/etc/hosts' file of the > host system the hostname and the corresponding IP address of each > container

[Lxc-users] How long the dhcp lease lasts

2013-04-22 Thread Robin Monjo
Hello everyone, Using the default config, containers will have their IP attributed by the dnsmasq service. I'd like to write in the '/etc/hosts' file of the host system the hostname and the corresponding IP address of each container I start. I will then use this hostname in an iptable rules for