Connect a public IP address to the load balancer
Connect a public IP address to the load balancer
Connect a public IP address to the load balancer
A static public IP address can be connected when creating a balancer or to an already created balancer.
Control panel
OpenStack CLI
- Ensure that the load balancer is on a subnet that meets the requirements. Use the following instructions to prepare the subnet Prepare a private subnet to connect a public IP address. The balancer sub-networks can be viewed in control panels under Cloud platform → Balancers → tab Balancers → balancer page → field Network.
- In control panels go to Cloud platform → Balancers.
- Open the tab Balancers.
- In the balancer card, click Connect public IP.
- Select a public IP address.
- Click Connect.
-
Look at the load balancer port ID — value
vip_port_id
from the output of the command:openstack loadbalancer show <loadbalancer>
Specify
<loadbalancer>
— ID or name of the balancer. The list can be viewed using the commandopenstack loadbalancer list
-
Connect the public IP address to the load balancer port:
openstack floating ip set --port <port> <public_ip_address>
Specify:
<port>
— Load balancer port ID;<public_ip_address>
— ID or public IP address, can be viewed with the commandopenstack floating ip list
Disconnect the public IP address from the load balancer
Control panel
OpenStack CLI
- In control panels go to Cloud platform → Balancers.
- Open the tab Balancers.
- In the balancer card of the public IP address, click .
- Select Disable public IP address.
- Click Save.
-
Disconnect the public IP address from the load balancer port:
openstack floating ip unset --port <public_ip_address>
Specify
<public_ip_address>
— ID or public IP address, can be viewed with the commandopenstack floating ip list