Hi,

The ranged network definition in OpenNebula 3.0 can be a bit confusing,
because the NETWORK_ADDRESS is not the first IP, but rather the base
address to use for the range.

In your case, for 96 addresses the base address is 10.206.223.0, giving you
the range 10.206.223.1 to 10.206.223.96. You can see a similar question
here [1].


This has been improved in OpenNebula 3.2, see [2] for the complete syntax.
For example, you can set the first IP of the range:

NETWORK_ADDRESS = 10.206.223.0/24
IP_START        = 10.206.223.96

Regards.

[1]
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-April/005021.html
[2]
http://opennebula.org/documentation:rel3.2:vnet_template#ranged_virtual_networks




--
 Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | [email protected] |
@OpenNebula<http://twitter.com/opennebula><[email protected]>


On Mon, Jan 9, 2012 at 2:12 PM, Chris Picton <[email protected]> wrote:

> Hi
>
> I have the following vnet:
>
> oneadmin@one-mgr ~ $ onevnet show 16
> VIRTUAL NETWORK 16
> INFORMATION
> ID             : 16
> USER           : oneadmin
> GROUP          : oneadmin
> PUBLIC         : No
> USED LEASES    : 1
>
> VIRTUAL NETWORK
> TEMPLATE
> BRIDGE=vbr0
> NAME="VLAN 3223 Dynamic"
> NETWORK_ADDRESS=10.206.223.96
> NETWORK_SIZE=96
> NET_DNS="10.202.3.110,10.202.3.111"
> NET_GW=10.206.223.1
> NET_NM=255.255.255.0
> NET_NW=10.206.223.0
> TYPE=RANGED
> VLAN_ID=3223
>
> LEASES
> INFORMATION
> LEASE=[ IP=10.206.223.1, MAC=02:00:0a:ce:df:01, USED=1, VID=166 ]
>
> As you can see, a lease was assigned outside of the specified range:
>
> NETWORK_ADDRESS=10.206.223.96
> NETWORK_SIZE=96
>
> I understand NETWORK_SIZE to be the number of addresses I want to
> allocate. Is this correct, or should it me a prefix-style mask (/26 for
> example)?
>
> Thanks
> Chris
>
>
> _______________________________________________
> 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

Reply via email to