How do you associate/disassociate floating IP in an instance?
Last updated
Last updated
When talking about IPs, each instance can have a public/ floating IP address in addition to its private/fixed IP address. Public addresses are used to communicate with networks outside the cloud, such as the Internet, whereas private addresses are used to communicate amongst instances. An instance's private IP address is automatically assigned when it is launched and remains the same until the instance is specifically terminated.
The floating IP addresses you can allot to a project are specified by its project quota. After a floating IP address has been assigned to a project, you can:
Associate or connect the floating IP address to a compute instance, where a single instance can only ever receive one floating IP address.
Dissociate or delete the connection between a floating IP address and a compute instance.
Follow the below-mentioned steps for associating the Floating IP from a compute instance.
Step 1: Login to your account.
Step 2: Navigate to Services and then click on My Services.
Step 3: Click on your project.
Step 4: Navigate to Compute and then click on Instances.
Step 5: Click on the drop-down menu against the instance for which you want to associate the floating IP.
Step 6: Choose Attach Floating IP from the drop-down.
Step 7: You need to select an IP address from the pool of pre-defined available IP addresses and the port address, then click on the Submit button.
Follow the below-mentioned steps for disassociating the Floating IP from a compute instance.
Step 1: Click on the drop-down against the instance for which you want to disassociate the floating IP.
Step 2: Choose Detach Floating IP from the drop-down.
Step 3: Select the Floating IP you want to disassociate from the drop-down menu and click the Submit button.