[one-users] Virtual networks by static leases.
Carlos Martín Sánchez
cmartin at opennebula.org
Tue Mar 29 04:12:16 PDT 2011
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/> | cmartin at opennebula.org
On 28 March 2011 16:13, benpro <benpro82 at gmail.com> 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
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110329/feda813a/attachment-0003.htm>
More information about the Users
mailing list