Re: [Openstack] [Quantum] questions about private, external network

2012-12-05 Thread Dan Wendlandt
the IP allocation pool can be a subset of the overal subnet range, if for
example, you want to limit the set of IP addresses that Quantum will hand
out to a sub-range of the total IPs in the subnet.  This can be useful if a
quantum network is shared with hosts outside of openstack (e.g., with
physical hosts provisioned outside of openstack).

dan

On Wed, Nov 28, 2012 at 5:09 PM, Ahmed Al-Mehdi ahmedalme...@gmail.comwrote:

 Thank you very much for the explanation.  However, I am still a bit
 confused.  In the command quantum subnet-create ... for external network,
 I am already providing start/end allocation pool IP addr.  What is the need
 for the 192.168.50.100/24 option?  In this case, is this option
 redundant  OR  not needed (as in not used by Quantum)  OR not correctly
 specified?

 You mentioned 192.168.50.100/30, how did you get /30?  Is that an
 example?  Or is that based on the start/end IP allocation pool?

 Thank you,
 Ahmed.



 On Wed, Nov 28, 2012 at 4:44 PM, gong yong sheng 
 gong...@linux.vnet.ibm.com wrote:

  On 11/29/2012 07:56 AM, Ahmed Al-Mehdi wrote:

 Hello,

  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.


  # quantum net-create --tenant-id $put_id_of_service_tenant ext_net
 --router:external=True

  # 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_net192.168.50.100/24 --enable_dhcp=False  (step b)


 -  192.168.50.100/24:  Is 192.168.50.100 assigned (reserved) for any
 purpose?  What is this cidr represent?

 It should be a wrong cidr.
 I think if you are using 192.168.50.100/30, the 192.168.59.101 will be
 reserved.



 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp




-- 
~~~
Dan Wendlandt
Nicira, Inc: www.nicira.com
twitter: danwendlandt
~~~
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Quantum] questions about private, external network

2012-11-28 Thread gong yong sheng

On 11/29/2012 07:56 AM, Ahmed Al-Mehdi wrote:

Hello,

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.



I used the following commands to create a private network and a router 
to which it is attached:


# 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
# quantum subnet-create --tenant-id $put_id_of_project_one 
net_proj_one 10.10.10.0/24 http://10.10.10.0/24 (step a)


# quantum router-create --tenant-id $put_id_of_project_one router_proj_one
# quantum router-interface-add $put_router_proj_one_id_here 
$put_subnet_id_here


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?


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,

you can create a subnet without gateway ip reserved.


I then used the following steps to create an external network:

# quantum net-create --tenant-id $put_id_of_service_tenant ext_net 
--router:external=True
# 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_net192.168.50.100/24 
http://192.168.50.100/24 --enable_dhcp=False  (step b)


Q: I am trying to understand the different options passed to  quantum 
subnet-create for an external network:


-  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?
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.


- 192.168.50.1 http://192.168.50.1/:  Is this the outside gateway IP 
addr (provided by our IT)?

It should be.


- 192.168.50.100/24 http://192.168.50.100/24:  Is 192.168.50.100 
assigned (reserved) for any purpose?  What is this cidr represent?

It should be a wrong cidr.
I think if you are using 192.168.50.100/30, the 192.168.59.101 will be 
reserved.


-  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?



If the network is just for floatingips, there is no need to run dhcp 
server for the ips on this network.
only ips allocated to VMs' port needed to be in dhcp server if you want 
to use dhcp.

Thank you,
Ahmed.


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Quantum] questions about private, external network

2012-11-28 Thread Ahmed Al-Mehdi
Thank you very much for the explanation.  However, I am still a bit
confused.  In the command quantum subnet-create ... for external network,
I am already providing start/end allocation pool IP addr.  What is the need
for the 192.168.50.100/24 option?  In this case, is this option redundant
 OR  not needed (as in not used by Quantum)  OR not correctly specified?

You mentioned 192.168.50.100/30, how did you get /30?  Is that an
example?  Or is that based on the start/end IP allocation pool?

Thank you,
Ahmed.



On Wed, Nov 28, 2012 at 4:44 PM, gong yong sheng gong...@linux.vnet.ibm.com
 wrote:

  On 11/29/2012 07:56 AM, Ahmed Al-Mehdi wrote:

 Hello,

  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.


  # quantum net-create --tenant-id $put_id_of_service_tenant ext_net
 --router:external=True

  # 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_net192.168.50.100/24 --enable_dhcp=False  (step b)


 -  192.168.50.100/24:  Is 192.168.50.100 assigned (reserved) for any
 purpose?  What is this cidr represent?

 It should be a wrong cidr.
 I think if you are using 192.168.50.100/30, the 192.168.59.101 will be
 reserved.


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp