Ask Your Question

How do I modify the IP pool?

asked 2014-07-02 08:02:40 -0600

Krist gravatar image

We are using havana, on rhel, with neutron/openvswitch.

I have defined an external network, with an IP pool. This pool is also used for floating IPs. I have currently defined an allocation pool with 100 adresses.

Question: How do I modify that. How do I enlarge this range?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-07-04 10:20:26 -0600

Krist gravatar image

I have found out that you can't do this using the command line. However you can do this by manipulating the database.

What I did was log on using a mysql client to the ova_neutron database and then:

  • Modified the record in ipallocationpools for my subnet, with the new range.
  • Added records to ipavailabilityranges for the ranges extensions.

For example, suppose that the old range was -> and I wanted it to be ->

First find out what the id for the allocation pool is:

select * from ipallocationpool;

suppose you find out that your pool has id e813be7a-b87d-4b74-b702-9b349199c2c7

update ipallocationpools set last_ip='' where id = 'e813be7a-b87d-4b74-b702-9b349199c2c7';
insertinsert into ipavailabilityranges (allocation_pool_id,first_ip,last_ip)
values ('e813be7a-b87d-4b74-b702-9b349199c2c7','','');

On our stack this did the trick...

edit flag offensive delete link more


nice! thanks

mosorio gravatar imagemosorio ( 2014-09-16 12:30:31 -0600 )edit

answered 2014-07-02 10:05:10 -0600

amankr_jain gravatar image

yes u can do that if you are using dashboard go to your external network and to that and if there is no option, then go to neutron service by login using keystone file and increase your external network from there using neutron command or you may also do this by changing neutron database.

edit flag offensive delete link more


Could you point to neutron CLI to update --alocation_pool ?

dbaxps gravatar imagedbaxps ( 2014-07-02 10:11:52 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-07-02 08:02:40 -0600

Seen: 651 times

Last updated: Jul 04 '14