<p dir="ltr">Hello François,</p>
<p dir="ltr">In the subnet <a href="http://172.28.112.0/23">172.28.112.0/23</a></p>
<p dir="ltr">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.</p>
<p dir="ltr">172.28.112.255 and 172.28.113.0 are within the usable range.</p>
<p dir="ltr">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.</p>
<p dir="ltr">There are 512 IPs in a /23, of those 510 are usable. By excluding .112.255 and .113.0 your usable pool is 508.</p>
<p dir="ltr">This is the chart I refer to when I have CIDR questions: <a href="http://bradthemad.org/tech/notes/cidr_subnets.php">http://bradthemad.org/tech/notes/cidr_subnets.php</a></p>
<p dir="ltr">Hope that helps.</p>
<p dir="ltr">Best Regards,<br>
Jon A</p>
<div class="gmail_quote">On Aug 3, 2013 2:32 PM, "François Thiebolt" <<a href="mailto:Francois.Thiebolt@irit.fr">Francois.Thiebolt@irit.fr</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Simon,<br>
<br>
Thanks for the tip:<br>
<br>
onevnet hold production 172.28.112.255<br>
onevnet hold production 172.28.113.0<br>
<br>
oneadmin@cloudmip[onevnet] onevnet show 0<br>
VIRTUAL NETWORK 0 INFORMATION<br>
ID : 0<br>
NAME : production<br>
USER : admin<br>
GROUP : oneadmin<br>
CLUSTER : -<br>
TYPE : RANGED<br>
BRIDGE : br0<br>
VLAN : No<br>
USED LEASES : 2<br>
<br>
PERMISSIONS<br>
OWNER : um-<br>
GROUP : u--<br>
OTHER : u--<br>
<br>
VIRTUAL NETWORK TEMPLATE<br>
BRIDGE="br0"<br>
IP_END="172.28.113.240"<br>
IP_START="172.28.112.101"<br>
NAME="production"<br>
NETWORK_ADDRESS="<a href="http://172.28.112.0/23" target="_blank">172.28.112.0/23</a>"<br>
TYPE="RANGED"<br>
<br>
RANGE<br>
IP_START : 172.28.112.101<br>
IP_END : 172.28.113.240<br>
<br>
LEASES ON HOLD<br>
LEASE=[ MAC="02:00:ac:1c:70:ff", IP="172.28.112.255", IP6_LINK="fe80::400:acff:fe1c:70ff", USED="1", VID="-1" ]<br>
LEASE=[ MAC="02:00:ac:1c:71:00", IP="172.28.113.0", IP6_LINK="fe80::400:acff:fe1c:7100", USED="1", VID="-1" ]<br>
<br>
VIRTUAL MACHINES<br>
<br>
ID USER GROUP NAME STAT UCPU UMEM HOST TIME<br>
<br>
<br>
this solved my issue :)<br>
(to OpenNebula team: anyway, allocating IP addesses of either the network or the broadcast address is definitively not a good idea.)<br>
<br>
Thanks<br>
François<br>
<br>
On Saturday, August 3, 2013 15:28 CEST, Simon Boulet <<a href="mailto:simon@nostalgeek.com">simon@nostalgeek.com</a>> wrote:<br>
<br>
> Hi François<br>
><br>
> .112.255 and .113.0 are perfectly valid IP addresses if you define a<br>
> .112.0/23 network.<br>
><br>
> If you don't want these addresses to be used you can mark them as RESERVED<br>
> in OpenNebula.<br>
><br>
> Simon<br>
> On Aug 3, 2013 9:22 AM, "François Thiebolt" <<a href="mailto:Francois.Thiebolt@irit.fr">Francois.Thiebolt@irit.fr</a>><br>
> wrote:<br>
><br>
> > Hello,<br>
> ><br>
> > I've done the following setup for my production network :<br>
> ><br>
> > NAME = "production"<br>
> > TYPE = RANGED<br>
> ><br>
> > BRIDGE = "br0"<br>
> ><br>
> > NETWORK_ADDRESS = <a href="http://172.28.112.0/23" target="_blank">172.28.112.0/23</a><br>
> > IP_START = 172.28.112.101<br>
> > IP_END = 172.28.113.240<br>
> ><br>
> ><br>
> > Hence, when I start to allocate VMs, they got the right IP starting from<br>
> > 172.28.112.101 ... but when it's time to switch to the 172.28.113.xxx<br>
> > network, one of the VM get allocated the IP 172.28.112.255 (?!) and next<br>
> > one gets 172.28.113.0 ?!?!<br>
> ><br>
> > May it be related to the NETWORK_SIZE=254 variable in oned.conf ? (indeed,<br>
> > what is it usefull for ?)<br>
> ><br>
> > oneadmin@cloudmip[~] onevnet show 0<br>
> > VIRTUAL NETWORK 0 INFORMATION<br>
> > ID : 0<br>
> > NAME : production<br>
> > USER : admin<br>
> > GROUP : oneadmin<br>
> > CLUSTER : -<br>
> > TYPE : RANGED<br>
> > BRIDGE : br0<br>
> > VLAN : No<br>
> > USED LEASES : 160<br>
> ><br>
> > PERMISSIONS<br>
> > OWNER : um-<br>
> > GROUP : u--<br>
> > OTHER : u--<br>
> ><br>
> > VIRTUAL NETWORK TEMPLATE<br>
> > NETWORK_ADDRESS="<a href="http://172.28.112.0/23" target="_blank">172.28.112.0/23</a>"<br>
> > NETWORK_MASK="255.255.254.0"<br>
> ><br>
> > RANGE<br>
> > IP_START : 172.28.112.101<br>
> > IP_END : 172.28.113.240<br>
> ><br>
> > USED LEASES<br>
> > LEASE=[ MAC="02:00:ac:1c:70:65", IP="172.28.112.101",<br>
> > IP6_LINK="fe80::400:acff:fe1c:7065", USED="1", VID="200" ]<br>
> > LEASE=[ MAC="02:00:ac:1c:70:66", IP="172.28.112.102",<br>
> > IP6_LINK="fe80::400:acff:fe1c:7066", USED="1", VID="201" ]<br>
> > LEASE=[ MAC="02:00:ac:1c:70:67", IP="172.28.112.103",<br>
> > IP6_LINK="fe80::400:acff:fe1c:7067", USED="1", VID="202" ]<br>
> > LEASE=[ MAC="02:00:ac:1c:70:68", IP="172.28.112.104",<br>
> > IP6_LINK="fe80::400:acff:fe1c:7068", USED="1", VID="203" ]<br>
> > LEASE=[ MAC="02:00:ac:1c:70:69", IP="172.28.112.105",<br>
> > IP6_LINK="fe80::400:acff:fe1c:7069", USED="1", VID="204" ]<br>
> > LEASE=[ MAC="02:00:ac:1c:70:6a", IP="172.28.112.106",<br>
> > IP6_LINK="fe80::400:acff:fe1c:706a", USED="1", VID="205" ]<br>
> > .............<br>
> > .............<br>
> > .............<br>
> > LEASE=[ MAC="02:00:ac:1c:70:fe", IP="172.28.112.254",<br>
> > IP6_LINK="fe80::400:acff:fe1c:70fe", USED="1", VID="353" ]<br>
> > LEASE=[ MAC="02:00:ac:1c:70:ff", IP="172.28.112.255",<br>
> > IP6_LINK="fe80::400:acff:fe1c:70ff", USED="1", VID="354" ] <------- ?!?!?!<br>
> > LEASE=[ MAC="02:00:ac:1c:71:00", IP="172.28.113.0",<br>
> > IP6_LINK="fe80::400:acff:fe1c:7100", USED="1", VID="355" ] <------ ?!?!?!<br>
> > LEASE=[ MAC="02:00:ac:1c:71:01", IP="172.28.113.1",<br>
> > IP6_LINK="fe80::400:acff:fe1c:7101", USED="1", VID="356" ]<br>
> > LEASE=[ MAC="02:00:ac:1c:71:02", IP="172.28.113.2",<br>
> > IP6_LINK="fe80::400:acff:fe1c:7102", USED="1", VID="357" ]<br>
> ><br>
> > Thanks<br>
> > François<br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> > <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
> ><br>
<br>
<br>
<br>
--<br>
François Thiebolt <a href="tel:%2B33%205%2061%2055%2088%2067" value="+33561558867">+33 5 61 55 88 67</a> / <a href="tel:%2B33%206%2031%2067%2070%2089" value="+33631677089">+33 6 31 67 70 89</a><br>
Docteur-Ingénieur / Systèmes de fichiers distribués<br>
Laboratoire IRIT / Université Paul Sabatier<br>
| Your computer seems overloaded ?<br>
| - Check that nobody's asked for tea !<br>
| "The Hitchhiker's Guide to the Galaxy" D.Adams<br>
<a href="mailto:thiebolt@irit.fr">thiebolt@irit.fr</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div>