restrict floating IP range with a bigger netmask

Asked by li,chen

Hi,

I'm working under Folsom.

I want to create a group of floating IP with 192.168.12.0/24.
This means when I run command "nova floating-ip-create", I hope the IP I get is 192.168.12.xx

But, I also want the netmask for these floating IP is 192.168.0.0/16.
This means I want the instance that is using the floating IP can ping to 192.168.11.xx

Any one know how to do this ?

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
Weiwen Chen
Solved:
Last query:
Last reply:
Revision history for this message
Best Weiwen Chen (wei-wen-chen) said :
#1

When creating external subnet with /16, you can specify
--allocation-pool start=192.168.12.0,end=192.168.12.254

Revision history for this message
yong sheng gong (gongysh) said :
#2

The answer of Weiwen Chen (wei-wen-chen) makes sense.

and https://review.openstack.org/#/c/23327/ will help us too.

Revision history for this message
li,chen (chen-li) said :
#3

Thanks Weiwen Chen, that solved my question.