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 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 a Security Group.
  • To change the EIP that has been bound to a node, 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 single node 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.

    Figure 1 Binding an EIP

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

    Figure 2 Binding an EIP

  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 3 Selecting an EIP

  7. 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 single node 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 and click Unbind EIP in the Operation column.

    Figure 4 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.