Gestion des IPs flottantes
Lister les IPs flottantes
% openstack floating ip list
+--------------------------------------+---------------------+------------------+----------------------------------+
| ID | Floating IP Address | Fixed IP Address | Project |
+--------------------------------------+---------------------+------------------+----------------------------------+
| 11f6b2ce-c1be-42d3-8369-2bc661a711de | 134.158.246.72 | 172.17.5.40 | 16e452c84af048ab86673788a4087794 |
| 154d63c6-0c88-45e6-9c83-a2a33000326f | 134.158.246.88 | None | 16eb92c84af048ab86673788a4087794 |
[...]
Demander une IP flottante supplémentaire
% openstack floating ip create floating
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| created_at | 2018-02-20T11:17:53Z |
| floating_ip_address | 134.158.246.30 |
| floating_network_id | 8358e0b1-cc39-490a-a86e-a141094b5c95 |
| id | 23d79378-970c-4c11-8690-1a6d1da2de9f |
| name | 134.158.246.30 |
| project_id | 0223bc1968bc4e46932c5d87012aaf14 |
| updated_at | 2018-02-20T11:17:53Z |
+---------------------+--------------------------------------+
Associer une IP flottante à une instance
% openstack server add floating ip monserveur 134.158.246.25
Désassocier une IP flottante d’une instance
% openstack server remove floating ip monserveur 134.158.246.25
Retirer une IP flottante du projet
% openstack floating ip delete 134.158.246.25
Aller plus loin
% openstack help floating ip
Command "floating" matches:
floating ip create
floating ip delete
floating ip list
floating ip pool list
floating ip set
floating ip show
floating ip unset