Ask Your Question
0

How do I modify the IP pool?

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

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
1

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

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 8.8.8.100 -> 8.8.8.200 and I wanted it to be 8.8.8.100 -> 8.8.9.255

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='8.8.9.255' where id = 'e813be7a-b87d-4b74-b702-9b349199c2c7';
insertinsert into ipavailabilityranges (allocation_pool_id,first_ip,last_ip)
values ('e813be7a-b87d-4b74-b702-9b349199c2c7','8.8.8.101','8.8.9.255');

On our stack this did the trick...

edit flag offensive delete link more

Comments

nice! thanks

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

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

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

Comments

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 330 times

Last updated: Jul 04 '14