Updated on 2023-10-18 GMT+08:00

Binding and Unbinding an EIP

Scenarios

By default, a GaussDB(for MySQL) instance is not publicly accessible (not bound with an EIP) after being created. You can bind an EIP to the instance for public accessibility and can unbind the EIP from the instance if needed.

  • To ensure that the database can be accessed, the security group used by the database must allow access to the database port. For example, if the database port is 3306, ensure that the security group allows access to the port 3306.
  • You can purchase a new EIP if all available EIPs may have been bound to other applications.

Prerequisites

If an instance already has an EIP bound, that EIP needs to be unbound before a new one can be configured.

Precautions

  • Public accessibility reduces the security of instances. Exercise caution when deciding to connect to your instance through a public network. To achieve a higher transmission rate and security level, you are advised to migrate your applications to an ECS that is in the same region as your instance.

Binding an EIP

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page, choose Database > GaussDB(for MySQL).
  4. On the Instances page, click the instance name to go to the Basic Information page.
  5. In the Network Information area, click Bind in the Public IP Address (EIP) field.
  6. In the displayed dialog box, select an EIP and click OK.

    If no EIPs are available, click View EIP to create an EIP on the network console. After the EIP is created, go back to the Basic Information page and bind the newly created EIP to the instance.

    You need to configure security group rules and enable specific IP addresses and ports to access the instance.

  7. In the Public IP Address (EIP) field of the Network Information area, view the EIP that was bound.

    To unbind the EIP from the instance, see Unbinding an EIP.

Unbinding an EIP

  1. On the Instances page, click the instance that you want to unbind the EIP from. The Basic Information page is displayed.
  2. In the Network Information area, click Unbind in the Public IP Address (EIP) field.
  3. In the displayed dialog box, click Yes. To bind an EIP to the instance again, see Binding an EIP.