Ask Your Question
1

How do I create a floating IP pool

asked 2014-02-04 06:49:18 -0500

Krist gravatar image

The command

nova floating-ip-pool-list

comes up empty.

What do i need to do so that I have a public floating IP pool that I can assign adresses from?

I have googled "create floating IP pool" but all the manual mentions is how to assigne a floating IP, asuming a pool alreads exists. I am looking for what needs to be done in order for such a pool to exist.

Can someone point me in the right direction here?

edit retag flag offensive close merge delete

Comments

Look at the details as provided by Diego.

dheeru gravatar imagedheeru ( 2014-02-04 07:54:39 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
3

answered 2014-02-04 07:32:29 -0500

Diego Lima gravatar image

updated 2014-02-04 07:34:10 -0500

Hello!

You can create an external network (and add a subnet with the IP pool) using these 2 commands (assuming you're using neutron due to your post tags):

# neutron net-create ext-net -- --router:external=True SPECIAL_OPTIONS
# neutron subnet-create ext-net --allocation-pool start=FLOATING_IP_START,end=FLOATING_IP_END --gateway=EXTERNAL_INTERFACE_GATEWAY --enable_dhcp=False EXTERNAL_INTERFACE_CIDR

If you're using nova-network you can add the pool like this:

# nova-manage floating create --pool=nova --ip_range=68.99.26.170/31

You can read more about this on these 2 links:

http://docs.openstack.org/havana/install-guide/install/apt/content/install-neutron.configure-networks.html http://docs.openstack.org/grizzly/openstack-compute/admin/content//associating-public-ip.html

edit flag offensive delete link more

Comments

thank you. I'm now running in to another problem however, but I'll open a new question for that.

Krist gravatar imageKrist ( 2014-02-05 03:58:39 -0500 )edit
0

answered 2017-10-17 06:56:41 -0500

wildloop gravatar image

updated 2017-10-17 06:58:18 -0500

Commands for OpenStack Pike

https://docs.openstack.org/python-openstackclient/latest/cli/decoder.html (https://docs.openstack.org/python-ope...)

os_extnet_project='admin'
os_extnet_name='public1'

os_subnet_name='pub_subnet1'
os_subnet_range='192.168.10.0/24'
os_subnet_ap='start=192.168.10.100,end=192.168.10.200'
os_subnet_gw='192.168.10.1'

os_router_project='myproject'
os_router_name='router1'

# http://<os_addr>/dashboard/project/api_access/openrc/ -> /root/admin-openrc.sh
source /root/admin-openrc.sh 

openstack network create $os_extnet_name --external --project $os_extnet_project
openstack subnet create $os_subnet_name --network $os_extnet_name --subnet-range $os_subnet_range --no-dhcp --allocation-pool $os_subnet_ap --gateway $os_subnet_gw
openstack router create $os_router_name --project $os_router_project
openstack router set $os_router_name --external-gateway $os_extnet_name 
openstack floating ip create $os_extnet_name
edit flag offensive delete link more

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-02-04 06:49:18 -0500

Seen: 13,115 times

Last updated: Oct 17 '17