Hi, The behaviour you are describing is not the intended one, OpenNebula should never generate a random IP. It will either get one of the free Leases from the requested VNet, or return an error.
Could you copy the VM templates you are using? At least the NIC attributes. Regards, Carlos. -- Carlos Martín, MSc Project Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org <http://www.opennebula.org/> | [email protected] On 28 March 2011 16:13, benpro <[email protected]> wrote: > Hi there, > > To manage our virtual network, we use a DHCP with static leases > specified in our network template, like : > > >NAME = "Réseau local 192.168.0.0/24 ( à partir de 100)" > >TYPE = FIXED > >BRIDGE = LAN > >PUBLIC = NO > >LEASES = [IP=192.168.0.110, MAC=50:20:20:20:20:20] > >LEASES = [IP=192.168.0.111, MAC=50:20:20:20:20:21] > And then in our DHCP's configuration file we have the same values. > (Using a homemade script to inject the configuration) > > When VMs reach the end of the leases, new MAC address is generated > automatically by ONE. Is there a way to restart at the top of the > leases, if the IP address is not used anymore ? > > For exemple, I have the leases of 2 MAC and IP: > >LEASES = [IP=192.168.0.110, MAC=50:20:20:20:20:20] > >LEASES = [IP=192.168.0.111, MAC=50:20:20:20:20:21] > I launch two VMs, they will obtain address IP by DHCP. > I stop one VM, and I start another one, it will not obtain address IP > by DHCP, because ONE will generate random address MAC, I'd like ONE to > restart obtaining address MAC by reading the top of the leases in my > network template, here: > >LEASES = [IP=192.168.0.110, MAC=50:20:20:20:20:20] > > Sorry maybe its not quite clear. > > In advance, thanks. > --- > Benoît.S > alias Benpro > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
