[one-users] annoying IP allocation

Jon three18ti at gmail.com
Sat Aug 3 21:39:49 PDT 2013


Hello François,

In the subnet 172.28.112.0/23

Your network address is 172.28.112.0 and your broadcast address is
172.28.113.255; your usable range is 172.28.112.1-172.28.113.254.

172.28.112.255 and 172.28.113.0 are within the usable range.

I think your confusion is you IP range crosses a /24 boundary, however,
these ip's ARE usable. By excluding them you ate just reducing your usable
pool by 2.

There are 512 IPs in a /23, of those 510 are usable. By excluding .112.255
and .113.0 your usable pool is 508.

This is the chart I refer to when I have CIDR questions:
http://bradthemad.org/tech/notes/cidr_subnets.php

Hope that helps.

Best Regards,
Jon A
On Aug 3, 2013 2:32 PM, "François Thiebolt" <Francois.Thiebolt at irit.fr>
wrote:

> Hi Simon,
>
> Thanks for the tip:
>
> onevnet hold production 172.28.112.255
> onevnet hold production 172.28.113.0
>
> oneadmin at cloudmip[onevnet] onevnet show 0
> VIRTUAL NETWORK 0 INFORMATION
> ID             : 0
> NAME           : production
> USER           : admin
> GROUP          : oneadmin
> CLUSTER        : -
> TYPE           : RANGED
> BRIDGE         : br0
> VLAN           : No
> USED LEASES    : 2
>
> PERMISSIONS
> OWNER          : um-
> GROUP          : u--
> OTHER          : u--
>
> VIRTUAL NETWORK TEMPLATE
> BRIDGE="br0"
> IP_END="172.28.113.240"
> IP_START="172.28.112.101"
> NAME="production"
> NETWORK_ADDRESS="172.28.112.0/23"
> TYPE="RANGED"
>
> RANGE
> IP_START       : 172.28.112.101
> IP_END         : 172.28.113.240
>
> LEASES ON HOLD
> LEASE=[ MAC="02:00:ac:1c:70:ff", IP="172.28.112.255",
> IP6_LINK="fe80::400:acff:fe1c:70ff", USED="1", VID="-1" ]
> LEASE=[ MAC="02:00:ac:1c:71:00", IP="172.28.113.0",
> IP6_LINK="fe80::400:acff:fe1c:7100", USED="1", VID="-1" ]
>
> VIRTUAL MACHINES
>
>     ID USER     GROUP    NAME            STAT UCPU    UMEM HOST
>   TIME
>
>
> this solved my issue :)
> (to OpenNebula team: anyway, allocating IP addesses of either the network
> or the broadcast address is definitively not a good idea.)
>
> Thanks
> François
>
> On Saturday, August 3, 2013 15:28 CEST, Simon Boulet <simon at nostalgeek.com>
> wrote:
>
> > Hi François
> >
> > .112.255 and .113.0 are perfectly valid IP addresses if you define a
> > .112.0/23 network.
> >
> > If you don't want these addresses to be used you can mark them as
> RESERVED
> > in OpenNebula.
> >
> > Simon
> > On Aug 3, 2013 9:22 AM, "François Thiebolt" <Francois.Thiebolt at irit.fr>
> > wrote:
> >
> > > Hello,
> > >
> > > I've done the following setup for my production network :
> > >
> > > NAME = "production"
> > > TYPE = RANGED
> > >
> > > BRIDGE = "br0"
> > >
> > > NETWORK_ADDRESS = 172.28.112.0/23
> > > IP_START        = 172.28.112.101
> > > IP_END          = 172.28.113.240
> > >
> > >
> > > Hence, when I start to allocate VMs, they got the right IP starting
> from
> > > 172.28.112.101 ... but when it's time to switch to the 172.28.113.xxx
> > > network, one of the VM get allocated the IP 172.28.112.255 (?!) and
> next
> > > one gets 172.28.113.0 ?!?!
> > >
> > > May it be related to the NETWORK_SIZE=254 variable in oned.conf ?
> (indeed,
> > > what is it usefull for ?)
> > >
> > > oneadmin at cloudmip[~] onevnet show 0
> > > VIRTUAL NETWORK 0 INFORMATION
> > > ID             : 0
> > > NAME           : production
> > > USER           : admin
> > > GROUP          : oneadmin
> > > CLUSTER        : -
> > > TYPE           : RANGED
> > > BRIDGE         : br0
> > > VLAN           : No
> > > USED LEASES    : 160
> > >
> > > PERMISSIONS
> > > OWNER          : um-
> > > GROUP          : u--
> > > OTHER          : u--
> > >
> > > VIRTUAL NETWORK TEMPLATE
> > > NETWORK_ADDRESS="172.28.112.0/23"
> > > NETWORK_MASK="255.255.254.0"
> > >
> > > RANGE
> > > IP_START       : 172.28.112.101
> > > IP_END         : 172.28.113.240
> > >
> > > USED LEASES
> > > LEASE=[ MAC="02:00:ac:1c:70:65", IP="172.28.112.101",
> > > IP6_LINK="fe80::400:acff:fe1c:7065", USED="1", VID="200" ]
> > > LEASE=[ MAC="02:00:ac:1c:70:66", IP="172.28.112.102",
> > > IP6_LINK="fe80::400:acff:fe1c:7066", USED="1", VID="201" ]
> > > LEASE=[ MAC="02:00:ac:1c:70:67", IP="172.28.112.103",
> > > IP6_LINK="fe80::400:acff:fe1c:7067", USED="1", VID="202" ]
> > > LEASE=[ MAC="02:00:ac:1c:70:68", IP="172.28.112.104",
> > > IP6_LINK="fe80::400:acff:fe1c:7068", USED="1", VID="203" ]
> > > LEASE=[ MAC="02:00:ac:1c:70:69", IP="172.28.112.105",
> > > IP6_LINK="fe80::400:acff:fe1c:7069", USED="1", VID="204" ]
> > > LEASE=[ MAC="02:00:ac:1c:70:6a", IP="172.28.112.106",
> > > IP6_LINK="fe80::400:acff:fe1c:706a", USED="1", VID="205" ]
> > > .............
> > > .............
> > > .............
> > > LEASE=[ MAC="02:00:ac:1c:70:fe", IP="172.28.112.254",
> > > IP6_LINK="fe80::400:acff:fe1c:70fe", USED="1", VID="353" ]
> > > LEASE=[ MAC="02:00:ac:1c:70:ff", IP="172.28.112.255",
> > > IP6_LINK="fe80::400:acff:fe1c:70ff", USED="1", VID="354" ] <-------
> ?!?!?!
> > > LEASE=[ MAC="02:00:ac:1c:71:00", IP="172.28.113.0",
> > > IP6_LINK="fe80::400:acff:fe1c:7100", USED="1", VID="355" ] <------
> ?!?!?!
> > > LEASE=[ MAC="02:00:ac:1c:71:01", IP="172.28.113.1",
> > > IP6_LINK="fe80::400:acff:fe1c:7101", USED="1", VID="356" ]
> > > LEASE=[ MAC="02:00:ac:1c:71:02", IP="172.28.113.2",
> > > IP6_LINK="fe80::400:acff:fe1c:7102", USED="1", VID="357" ]
> > >
> > > Thanks
> > > François
> > > _______________________________________________
> > > Users mailing list
> > > Users at lists.opennebula.org
> > > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> > >
>
>
>
> --
> François Thiebolt   +33 5 61 55 88 67 / +33 6 31 67 70 89
> Docteur-Ingénieur / Systèmes de fichiers distribués
> Laboratoire IRIT / Université Paul Sabatier
>   |    Your computer seems overloaded ?
>   |    - Check that nobody's asked for tea !
>   |    "The Hitchhiker's Guide to the Galaxy" D.Adams
> thiebolt at irit.fr
> _______________________________________________
> 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/20130803/6984a529/attachment-0001.htm>


More information about the Users mailing list