Updated on 2024-09-13 GMT+08:00
Binding and Unbinding an EIP for a GaussDB Instance

Binding and Unbinding an EIP for a GaussDB Instance

Scenarios

You can bind an EIP to a instance for public access and can unbind the EIP from an instance as required.

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 1611, ensure that the security group allows access to the port 1611.

Precautions

  • If a DB instance has already been bound with an EIP, you must unbind the EIP from the instance first before binding a new EIP to it.
  • An EIP can be bound to only one node IP address of a DB instance.

Binding an EIP

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > GaussDB.
  4. On the Instances page, click the name of the target instance to go to the Basic Information page.
  5. In the Node List area, click Bind the EIP in the Operation column.

    For a distributed instance, switch to CN in the filter area first and then bind an EIP.
    Figure 1 Binding an EIP (distributed instance)

    Figure 2 Binding an EIP (primary/standby instance)

  6. In the displayed dialog box, all available unbound EIPs are listed. Select the required EIP and click OK.

    If no available EIPs are displayed, click View EIP and obtain an EIP.

    Figure 3 Binding an EIP

  7. In the Node List area, check the operation result in the EIP column.

    Figure 4 Checking the binding result

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

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

Unbinding an EIP

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > GaussDB.
  4. On the Instances page, click the instance that has been bound with an EIP.
  5. In the Node List area, click Unbind the EIP in the Operation column.

    • For a distributed instance, switch to CN in the filter area first and then click Unbind the EIP in the Operation column.
    • For a primary/standby instance, choose More > Unbind the EIP in the Operation column.
    Figure 5 Unbinding an EIP (distributed instance)

    Figure 6 Unbinding an EIP (primary/standby instance)

  6. In the displayed dialog box, click OK to unbind the EIP.
  7. If you have enabled operation protection, click Send Code in the displayed Identity Verification dialog box and enter the obtained verification code. Then, click OK.

    Two-factor authentication improves the security of your account. For details about how to view and enable high-risk operation protection, see Identity and Access Management User Guide.

  8. In the Node List area, check the operation result in the EIP column.

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