Each instance has a private, fixed IP address that is assigned when the instance is launched. In addition, an instance can have a public or floating IP address. Private IP addresses are used for communication between instances, and public IP addresses are used for communication with networks outside the cloud, including the Internet.
/etc/nova/policy.json
file. For basic floating-IP procedures, refer to the Allocate a
floating address to an instance
section in the OpenStack End User Guide.neutron
), refer to Advanced features through API extensions.
No floating IP addresses are created by default in OpenStack Networking.As an administrator using legacy networking (nova-network
), you
can use the following bulk commands to list, create, and delete ranges
of floating IP addresses. These addresses can then be associated with
instances by end users.
To list all floating IP addresses for all projects, run:
$ openstack floating ip list
+--------------------------------------+---------------------+------------------+------+
| ID | Floating IP Address | Fixed IP Address | Port |
+--------------------------------------+---------------------+------------------+------+
| 89532684-13e1-4af3-bd79-f434c9920cc3 | 172.24.4.235 | None | None |
| c70ad74b-2f64-4e60-965e-f24fc12b3194 | 172.24.4.236 | None | None |
| ea3ebc6d-a146-47cd-aaa8-35f06e1e8c3d | 172.24.4.229 | None | None |
+--------------------------------------+---------------------+------------------+------+
To create a range of floating IP addresses, run:
$ nova floating-ip-bulk-create [--pool POOL_NAME] [--interface INTERFACE] RANGE_TO_CREATE
For example:
$ nova floating-ip-bulk-create --pool test 192.168.1.56/29
By default, floating-ip-bulk-create
uses the
public
pool and eth0
interface values.
Note
You should use a range of free IP addresses that is valid for your network. If you are not sure, at least try to avoid the DHCP address range:
To delete a range of floating IP addresses, run:
$ openstack floating ip delete RANGE_TO_DELETE
For example:
$ openstack floating ip delete 192.168.1.56/29
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.