Skip to main content

Public IP address

Last update:

Public IP address

A public IP address is a static public IP address that is assigned to a node to configure access to the node on a private network from the Internet. External traffic goes through a public IP address and is handled by the cloud router, which acts as a 1:1 NAT. The address is a floating IP because it can automatically switch when the role changes from replica to master and back again. It will not change or be removed from the panel.

The private subnet on which to assign a public IP address must meet requirements-before adding a public IP address, prepare the subnet.

A public IP address can be added:

The number of public IP addresses in the cluster can be less than the number of nodes in the group, but cannot exceed it. You will be able to disable public IP address if necessary.

Requirements for private subnet

  • The subnet should have a cloud router with a connection to an external network;
  • The IP address of the cloud router should be the default gateway on the subnet.

If the subnet does not meet the requirements, prepare it to connect a public IP address.

Prepare a private subnet to connect the public IP address

  1. Create a cloud router with an external network connection.
  2. Connect private network to cloud router.

1. Create a cloud router with connection to an external network

A cloud router allows you to route traffic between private networks.

You can use the router to configure access to the Internet from a private network or to access a device on a private subnet from the Internet using a public IP address.

  1. In Control Panel, go to Cloud PlatformNetwork.
  2. Open the Routers tab → click Create Router.
  3. Select pool of the router.
  4. Enter a name.
  5. Check the box Connect router to external network — an external IP address will be assigned to the router.
  6. Press Create.

2. Connect a private network to a cloud router

  1. Open the router card → click Add Subnet.
  2. Select a private subnet.
  3. Specify the IP address of the router. The cloud router IP address value that is specified by default is the default gateway on the subnet. If you are connecting a global router network, specify a router IP address other than the global router IP address, the IP addresses of the cloud servers on the network, and the .253 and .254 service addresses.
  4. Click Add Subnet.

Connect a public IP address

  1. Ensure that the cluster is on a private subnet that meets requirements.
  2. In Control Panel, go to Cloud PlatformDatabases.
  3. Open the Database Cluster page → Settings tab.
  4. In the Addresses and Node Statuses block, open the Public IP Addresses tab.
  5. In the line with the desired node, click .
  6. Select New Public IP Address.
  7. Click .

Disable public IP address

  1. In Control Panel, go to Cloud PlatformDatabases.
  2. Open the Database Cluster page → Settings tab.
  3. In the Addresses and Node Statuses block, open the Public IP Addresses tab.
  4. In the line with the desired node, click .
  5. Select No public IP address.
  6. Click .