Binding and Unbinding an EIP

Scenarios

You can bind an EIP to a GaussDB(openGauss) DB instance for public access and can unbind the EIP from a GaussDB(openGauss) DB instance as required.

Important

To ensure that the database can be accessed, the security group used by the database must have the permission to access the database port. For example, if the database port is 1611, ensure that the security group has the permission to access port 1611.

Precautions

  • You can bind an EIP to a CN only.

  • If a DB instance has already been bound with an EIP, you must unbind the EIP from the DB instance first before binding a new EIP to it.

Binding an EIP

  1. Log in to the management console.

  2. Click image1 in the upper left corner and select a region and a project.

  3. Click Service List. Under Database, click GaussDB.

  4. In the navigation pane on the left, choose GaussDB(openGauss) > Instance Management.

  5. On the Instance Management page, click the target DB instance.

  6. In the Connection Information area, click Bind EIP.

  7. In the displayed dialog box, all unbound EIPs are listed. Select the EIP to be bound and click OK. If no available EIPs are displayed, click View EIP and obtain an EIP.

  8. In the Connection Information area, view the bound IP address.

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

    Note

    After the EIP is bound, you can click image2 next to the private IP address to view its details.

Unbinding an EIP

  1. Log in to the management console.

  2. Click image3 in the upper left corner and select a region and a project.

  3. Click Service List. Under Database, click GaussDB.

  4. In the navigation pane on the left, choose GaussDB(openGauss) > Instance Management.

  5. On the Instance Management page, click the DB instance that has been bound with an EIP.

  6. In the Connection Information area, click Unbind next to the IP address. In the displayed dialog box, click Yes to unbind the EIP.

  7. In the Connection Information area, view the IP address.

    To bind an EIP to the DB instance again, see Binding an EIP.