Updated on 2024-05-21 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

  • You need to configure security group rules and enable specific IP addresses and ports to access your DB instance. Before accessing the DB instance, add an IP address or an IP address range that will access the DB instance to the inbound rule. For details, see Configuring Security Group Rules.
  • You can buy an EIP on the console and bind it to a DB instance. One EIP can be bound to only one DB instance. For pricing details, see Price Calculator.

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 Databases > 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.

    Figure 1 Selecting an EIP

  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.
  4. If you have enabled operation protection, click Start Verification in the displayed dialog box. On the displayed page, click Send Code, enter the obtained verification code, and click Verify to close the page.

    For details about how to enable operation protection, see Identity and Access Management User Guide.