|
1 | 1 | ---
|
2 | 2 | title: Attaching a Floating IP to a Public Cloud instance (EN)
|
3 | 3 | excerpt: Find out how a Floating IP address functions and how to configure it
|
4 |
| -updated: 2024-03-26 |
| 4 | +updated: 2025-07-17 |
5 | 5 | ---
|
6 | 6 |
|
| 7 | +<style> |
| 8 | +details>summary { |
| 9 | + color:rgb(33, 153, 232) !important; |
| 10 | + cursor: pointer; |
| 11 | +} |
| 12 | +details>summary::before { |
| 13 | + content:'\25B6'; |
| 14 | + padding-right:1ch; |
| 15 | +} |
| 16 | +details[open]>summary::before { |
| 17 | + content:'\25BC'; |
| 18 | +} |
| 19 | +</style> |
| 20 | + |
7 | 21 | ## Objective
|
8 | 22 |
|
9 | 23 | Floating IPs are public IP addresses for [Public Cloud](https://www.ovhcloud.com/de/public-cloud/), used to expose a private instance or a private network service to the public network. You can read more about it on our dedicated [concepts page](/pages/public_cloud/public_cloud_network_services/concepts-02-additional-ip-vs-floating-ip).
|
@@ -92,7 +106,7 @@ Next, we will use this Floating IP to connect to the instance (VM) from the outs
|
92 | 106 | >>
|
93 | 107 | >> Please note that the private network must be linked to a gateway. For more information, consult this guide: [Creating a private network with Gateway](/pages/public_cloud/public_cloud_network_services/getting-started-02-create-private-network-gateway).
|
94 | 108 | >>
|
95 |
| ->> In the public cloud section, click on `Öffentliche IPs`{.action} in the left-hand menu under **Network**. |
| 109 | +>> In the public cloud section, click on `Public IPs`{.action} in the left-hand menu under **Network**. |
96 | 110 | >>
|
97 | 111 | >> Click on `Floating IPs`{.action}, then on `Add a new IP`{.action}.
|
98 | 112 | >>
|
@@ -131,7 +145,7 @@ This feature is currently only available via the [OpenStack API](#detachip).
|
131 | 145 |
|
132 | 146 | #### Deleting a Floating IP
|
133 | 147 |
|
134 |
| -In the public cloud section, click on `Öffentliche IPs`{.action} in the left-hand menu under **Network**. |
| 148 | +In the public cloud section, click on `Public IPs`{.action} in the left-hand menu under **Network**. |
135 | 149 |
|
136 | 150 | In the `Floating IP`{.action} tab, click on the `...`{.action} next to the corresponding IP and select `Delete`{.action}.
|
137 | 151 |
|
@@ -352,7 +366,7 @@ $ openstack floating ip set --dns-domain <DOMAIN_NAME> <IP_ADDRESS_ID>
|
352 | 366 |
|
353 | 367 | #### Detaching a Floating IP <a name="detachip"></a>
|
354 | 368 |
|
355 |
| -You can detach a Floating ip from your VM at anytime. |
| 369 | +You can detach a Floating IP from your VM at anytime. |
356 | 370 |
|
357 | 371 | ```bash
|
358 | 372 | $ openstack server remove floating ip vm4fip 169.254.10.25
|
@@ -385,6 +399,66 @@ $ openstack floating ip list
|
385 | 399 |
|
386 | 400 | ///
|
387 | 401 |
|
| 402 | +#### Via the Horizon interface |
| 403 | +
|
| 404 | +/// details | Unfold this section |
| 405 | +
|
| 406 | +The following steps describe how to attach a Floating IP to an existing instance. |
| 407 | +
|
| 408 | +> [!primary] |
| 409 | +> Before you proceed, make sure your instance is linked to a private network **only** and that the private network is linked to a Gateway. |
| 410 | +> |
| 411 | +
|
| 412 | +> [!tabs] |
| 413 | +>> |
| 414 | +>> Log into the Horizon interface, and ensure that you are in the correct region. You can verify this on the top left corner. |
| 415 | +>> |
| 416 | +>> {.thumbnail} |
| 417 | +>> |
| 418 | +>> In the left-hand menu, click on `Network`{.action} then on `Floating IPs`{.action}. |
| 419 | +>> |
| 420 | +>> {.thumbnail} |
| 421 | +>> |
| 422 | +>> Click on `Associate`{.action} next to the corresponding instance. |
| 423 | +>> |
| 424 | +>> {.thumbnail} |
| 425 | +>> |
| 426 | +>> A pop-up window will appear. Click on the drop-down arrow underneath `Port to be assiociated` and select the "port" or "instance" to attach the Floating IP to. |
| 427 | +>> |
| 428 | +>> {.thumbnail} |
| 429 | +>> |
| 430 | +>> Next, click on `Associate`{.action}. |
| 431 | +>> |
| 432 | +>> Once done, the Floating IP will be associated to the instance. |
| 433 | +>> |
| 434 | +>> {.thumbnail} |
| 435 | +>> |
| 436 | +>> |
| 437 | +
|
| 438 | +#### Detaching a Floating IP <a name="disassociateip"></a> |
| 439 | +
|
| 440 | +You can detach a Floating IP from your instance at anytime. |
| 441 | +
|
| 442 | +Once you are connected to the Horizon interface, click on `Network`{.action}, then on `Floating IPs`{.action}. |
| 443 | +
|
| 444 | +Click on `Disassociate`{.action} next to the corresponding IP. |
| 445 | +
|
| 446 | +{.thumbnail} |
| 447 | +
|
| 448 | +A pop-up window will appear prompting you to confirm the selection. Click on `Disassociate`{.action}. |
| 449 | +
|
| 450 | +{.thumbnail} |
| 451 | +
|
| 452 | +Once done, the Floating IP will be detached from the instance and returned to the pool of Floating IPs. |
| 453 | +
|
| 454 | +#### Deleting a Floating IP |
| 455 | +
|
| 456 | +To delete a Floating IP, click on the drop-down arrow next to the corresponding instance, then click on `Release Floating IP`{.action}. |
| 457 | +
|
| 458 | +{.thumbnail} |
| 459 | +
|
| 460 | +/// |
| 461 | +
|
388 | 462 | #### Via the OVHcloud API
|
389 | 463 |
|
390 | 464 | /// details | Unfold this section
|
@@ -456,7 +530,7 @@ With the OVHcloud API, you can only attach a Floating IP to an existing instance
|
456 | 530 |
|
457 | 531 | #### Detaching a Floating IP
|
458 | 532 |
|
459 |
| -This feature is currently only available via the [OpenStack API](#detachip). |
| 533 | +This feature is available via the [OpenStack API](#detachip) and the [Horizon interface](#disassociateip). |
460 | 534 |
|
461 | 535 | #### Deleting a Floating IP
|
462 | 536 |
|
|
0 commit comments