Floating IP , External network relationship

asked 2014-02-12 03:30:01 -0500

akilesh1597 gravatar image

I am a network guy and the concepts of floatingip and external network looks puzzling to me.

The floating ip is allocated from the allocation pool of the subnet created in the external network. What happens if the external network has two subnets.

A similar conflict of logic arises when lauching instances. You can specify which network the instance is launched in but not which subnet if the network has more than one.

Why does openstack neutron allow this to happen. Why have a separate entity called network? and If we do have why allow creation of multiple subnets in them?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2014-02-12 04:18:32 -0500

gongysh gravatar image

IMHO, network is the abstract of the whole network space in physical realitity. In general one tenant needs only one neutron network. With one network, tenant can create subnets just like traditional ways as normal.

regarding floatingip's subnets, it depends on ip allocation algorithm in neutron. currently, we will choose a IP randomly from all subnets in the external network.

for launching instance, you can specify the IP address, which equals to select subnet.

hope this helps.

edit flag offensive delete link more

answered 2014-02-12 05:19:00 -0500

akilesh1597 gravatar image

I recognize the significance but there are still some issues.

for launching instance, specifying the IP address, can not be equal to select subnet because you can not tell openstack that you want a dhcp allocated address from a subnet. further it would be much easier to select a subnet.

Also does the logic guarantee that the random subnet chosen to create floatingip is the one connected to the tenant subnet by a router.

edit flag offensive delete link more

answered 2014-02-13 02:36:50 -0500

gongysh gravatar image

many guys are confused by dhcp role in neutron. In neutron, the dhcp server (dnsmasq) is a guided one, I.E. neutron will wirte the IP and mac pair into dnsmasq's configure file, and then dnsmasq can just allocate the IP according to the requester's mac. So the instance's IP is totally controlled by neutron, instead of dnsmasq.

I think floatingip must be along with the router's gateway port's IP at the same subnet. i.e. the system should not select subnet ramdonly for floatingip. I have to check wether it is a bug.

edit flag offensive delete link more

answered 2014-02-13 02:46:24 -0500

akilesh1597 gravatar image

I believe you do not understand the problem. I understand that dhcp address is controlled by neutron. I was talking about giving users the ability to choose subnets rather than use a random subnet from the user's network.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-02-12 03:30:01 -0500

Seen: 372 times

Last updated: Feb 13 '14