Freeing IP from FLAT network setup

asked 2015-11-03 12:16:17 -0600

satish.lx gravatar image

We have JUNO openstack running with --allinone setup and everything is good. i have did following to setup flat network directly integrate my VM with existing network.

openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs bridge_mappings extnet:br-ex openstack-config --set /etc/neutron/plugin.ini ml2 type_drivers vxlan,flat,vlan

Restart neutron* services

neutron net-create external_network --provider:network_type flat --provider:physical_network extnet --router:external --shared

neutron subnet-create --name public_subnet --enable_dhcp=False --allocation-pool=start=,end= \ --gateway= external_network

Everything working fine. But once it create VM it reserve IP address and next VM will pick next IP so on and on...

How do i free old ip which i used before. I have only 10 IPs currently. Please advice how i can free ips which i used in past?

I am not using following methods.

floating IP etc.. DHCP IP etc..

My network is just Flat network.

edit retag flag offensive close merge delete


nobody has this issue? interesting..

satish.lx gravatar imagesatish.lx ( 2015-11-03 19:32:49 -0600 )edit

Expert need help...

satish.lx gravatar imagesatish.lx ( 2015-11-04 07:18:31 -0600 )edit

When you delete a VM it will free up its IP.

For example:

  • Create VM 1 (Gets IP 1)
  • Create VM 2 (Gets IP 2)
  • Delete VM 1 (Reclaims IP 1)
  • Create VM 3 (Gets IP 3, but still IP 1 is available)
  • Create VMs 4 to 10, they get IPs 4 to 10
  • Create VM 11, it will get IP 1
Assaf Muller gravatar imageAssaf Muller ( 2016-01-11 20:50:58 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-29 07:06:34 -0600

ihar-hrachyshka gravatar image

How do you know that old IP addresses are not freed? Is it just because the next instance picks a new address instead of an old one? It's as designed, because we want to avoid instances reusing the same address on and on.

You should still be able to run 10 instances with their IP addresses allocated with no issue.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-11-03 12:16:17 -0600

Seen: 223 times

Last updated: Mar 29 '16