Updated on 2022-09-20 GMT+08:00

Binding and Unbinding an EIP

After you create an instance, you can bind an EIP to it to allow external access. If later you want to prohibit external access, you can also unbind the EIP from the DB instance.

Precautions

  • Deleting a bound EIP does not mean that the EIP is unbound.
  • Before accessing a database, apply for an EIP on the VPC console. Then, add an inbound rule to allow the IP addresses or IP address ranges of ECSs. For details, see Configuring Security Group Rules.
  • In the replica set instance, only primary and secondary nodes can have an EIP bound. To change the EIP that has been bound to a node, you need to unbind it from the node first.

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 and choose Databases > Document Database Service.
  4. On the Instances page, click the replica set instance name.
  5. In the navigation pane on the left, choose Connections. Click the Public Connection tab. In the Basic Information area, locate the node you want to bind an EIP to and click Bind EIP in the Operation column.

    You can also locate the node in the Node Information area on the Basic Information page and click Bind EIP in the Operation column.

  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 create an EIP on the VPC console.

    Figure 1 Selecting an EIP

  7. Locate the target node. In the EIP column, you can view the EIP that was bound.

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

Unbinding 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 and choose Databases > Document Database Service.
  4. On the Instances page, click the replica set instance that has been bound with an EIP.
  5. In the navigation pane on the left, choose Connections. Click the Public Connection tab. In the Basic Information area, locate the node and click Unbind EIP in the Operation column.

    Figure 2 Unbinding an EIP

    You can also locate the node in the Node Information area on the Basic Information page and click Unbind EIP in the Operation column.

  6. In the displayed dialog box, click Yes.

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