[one-users] Network Address Pool allocating out of range addresses ?
Gary Mazz
garymazzaferro at gmail.com
Mon Jun 7 07:50:25 PDT 2010
Hi Ted,
Thanks for the tip ;) The idea was to provision out of a pool and not
require to administer ip addresses for each vm. Since the pool of VMs is
small, it won't be a big issue.
I was looking at the code that generated the mask. It makes sense now
that I see it. :) For future reference, the IP address should be bounds
checked across the constraints. In our configuration, we wanted the
servers to be in the lower addresses in the mask and the upper addresses
for the workload nodes.
cheers,
gary
tedbs wrote:
> This may be a issue with the way IPv4 addresses are allocated using a
> base address and a subnet mask. x.x.x.122 would be in the range
> x.x.x.120 mask 255.255.255.128. That would explain why you are getting
> x.x.x.121.
>
> I suggest that for just 5 addresses you use a 'FIXED' network type and
> list the 5 addresses you want to use.
>
> Ted Bodfish
>
> -----Original Message-----
> From: Gary Mazz [mailto:garymazzaferro at gmail.com]
> Sent: June-06-10 1:40 PM
> To: users
> Subject: [one-users] Network Address Pool allocating out of range
> addresses ?
>
> Hi,
>
> I have a ranged network pool starting at ip address 10.1.254.122 with a
> range of 5. I was expecting the allocated ranges to be between
> 10.1.254.122 and 10.1.254.126. I am getting an allocation starting one
> below my baseline. Is this a bug ? How can I prevent this from
> happening ?
>
> [OneAdmin at occi-server ~]$ onevnet show 0
> VIRTUAL NETWORK 0
> INFORMATION
> ID: : 0
> UID: : 0
>
> VIRTUAL NETWORK
> TEMPLATE
> BRIDGE=xenbr0
> NAME=Demo Network
> NETWORK_ADDRESS=10.1.254.122
> NETWORK_SIZE=5
> TYPE=RANGED
>
> LEASES
> INFORMATION
>
> LEASE=[ IP=10.1.254.121, MAC=00:03:0a:01:fe:79, USED=1, VID=26 ]
> LEASE=[ IP=10.1.254.125, MAC=00:03:0a:01:fe:7d, USED=1, VID=30 ]
>
> cheers,
> gary
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
More information about the Users
mailing list