<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 11/29/2012 07:56 AM, Ahmed Al-Mehdi
wrote:<br>
</div>
<blockquote
cite="mid:CAKNWCPY5Hefip44NKh_z=M7P+w4W5mm18aiqBk6TX6Db0u05Sw@mail.gmail.com"
type="cite">
<div style="font-family:arial,sans-serif;font-size:13px">Hello,</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">I have a
few questions related to private and external network in
Quantum. I am running into some odd behavior with networking
related to my VM instance that I am trying to resolve.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">I used
the following commands to create a private network and a router
to which it is attached:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<div># quantum net-create --tenant-id $put_id_of_project_one
net_proj_one --provider:network_type vlan
--provider:physical_network physnet1
--provider:segmentation_id 1024</div>
<div># quantum subnet-create --tenant-id $put_id_of_project_one
net_proj_one <a moz-do-not-send="true"
href="http://10.10.10.0/24" target="_blank">10.10.10.0/24</a> (step
a)</div>
<div><br>
</div>
<div># quantum router-create --tenant-id $put_id_of_project_one
router_proj_one</div>
<div># quantum router-interface-add $put_router_proj_one_id_here
$put_subnet_id_here</div>
<div><br>
</div>
<div>Q: Upon executing "step a", does Quantum reserve the first
IP address from the subnet's cidr range as a gateway_ip addr?
If so, why? Does that happen even if the subnet is not
attached to a router?</div>
<div><br>
</div>
</div>
</blockquote>
Yes. the first IP address is reserved as default gateway ip. If no
quantum router needed, you can set a true physical router on it. If
you don't want a gateway at all,<br>
you can create a subnet without gateway ip reserved.<br>
<blockquote
cite="mid:CAKNWCPY5Hefip44NKh_z=M7P+w4W5mm18aiqBk6TX6Db0u05Sw@mail.gmail.com"
type="cite">
<div style="font-family:arial,sans-serif;font-size:13px">
<div><br>
</div>
<div>I then used the following steps to create an external
network:</div>
<div> <br>
</div>
<div># quantum net-create --tenant-id $put_id_of_service_tenant
ext_net --router:external=True</div>
<div>
# quantum subnet-create --tenant-id $put_id_of_service_tenant
--allocation-pool start=192.168.50.102,end=192.168.50.126
--gateway 192.168.50.1 ext_net<a moz-do-not-send="true"
href="http://192.168.50.100/24" target="_blank">192.168.50.100/24</a> --enable_dhcp=False
(step b)</div>
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">Q: I am
trying to understand the different options passed to " quantum
subnet-create" for an external network:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">-
start=192.168.50.102,end=192.168.50.126 : Is this the list of
floating-IPs that are accessible from outside world? And these
would be mapped to a private IP addr?<br>
</div>
</blockquote>
allocation pool is a range for inner IPAM. In fact you can assign an
IP beyond this range to a Port as long as it is under the cidr of a
given subnet.<br>
<blockquote
cite="mid:CAKNWCPY5Hefip44NKh_z=M7P+w4W5mm18aiqBk6TX6Db0u05Sw@mail.gmail.com"
type="cite">
<div style="font-family:arial,sans-serif;font-size:13px">
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">- <a
moz-do-not-send="true" href="http://192.168.50.1/"
target="_blank">192.168.50.1</a>: Is this the outside gateway
IP addr (provided by our IT)?<br>
</div>
</blockquote>
It should be.<br>
<blockquote
cite="mid:CAKNWCPY5Hefip44NKh_z=M7P+w4W5mm18aiqBk6TX6Db0u05Sw@mail.gmail.com"
type="cite">
<div style="font-family:arial,sans-serif;font-size:13px">
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">- <a
moz-do-not-send="true" href="http://192.168.50.100/24"
target="_blank">192.168.50.100/24</a>: Is 192.168.50.100
assigned (reserved) for any purpose? What is this cidr
represent?<br>
</div>
</blockquote>
It should be a wrong cidr. <br>
I think if you are using 192.168.50.100/30, the 192.168.59.101 will
be reserved.<br>
<blockquote
cite="mid:CAKNWCPY5Hefip44NKh_z=M7P+w4W5mm18aiqBk6TX6Db0u05Sw@mail.gmail.com"
type="cite">
<div style="font-family:arial,sans-serif;font-size:13px">
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">-
enable_dhcp=False : What is the effect of setting this to true?
I mean how does Quantum dole out a floating IP mapping to which
private IP, randomly?<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
</blockquote>
If the network is just for floatingips, there is no need to run dhcp
server for the ips on this network.<br>
only ips allocated to VMs' port needed to be in dhcp server if you
want to use dhcp.<br>
<blockquote
cite="mid:CAKNWCPY5Hefip44NKh_z=M7P+w4W5mm18aiqBk6TX6Db0u05Sw@mail.gmail.com"
type="cite">
<div style="font-family:arial,sans-serif;font-size:13px">Thank
you,</div>
<div style="font-family:arial,sans-serif;font-size:13px">
Ahmed.</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
Post to : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
More help : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a>
</pre>
</blockquote>
<br>
</body>
</html>