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
- Make sure the load balancer is on a subnet that meets the requirements. To prepare the subnet, use the instructions Prepare a private subnet to connect a public IP address. You can view the subnets of the load balancer in the Control Panel: in the top menu, click Products → Cloud Servers → Balancers → Balancers tab → Balancers page → Balancer page → Settings block → Network field.
- In the dashboard, on the top menu, click Products and select Cloud Servers.
- Go to Balancers → Balancers tab.
- In the balancer card, click Connect Public IP.
- Select a public IP address.
- Click Connect.
-
Look for the load balancer port ID —
vip_port_id
value from the command output:openstack loadbalancer show <loadbalancer>
Specify
<loadbalancer>
— balancer ID or name. The list can be viewed using theopenstack loadbalancer list
command. -
Connect the public IP address to the load balancer port:
openstack floating ip set --port <port> <public_ip_address>
Specify:
<port>
— The port ID of the load balancer;<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 the dashboard, on the top menu, click Products and select Cloud Servers.
- Go to Balancers → Balancers tab.
- 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 using theopenstack floating ip list
command