Updated on 2024-09-25 GMT+08:00

Binding and Unbinding an EIP

After you create a Cluster 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.
  • In the cluster instance, only dds mongos 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 cluster instance name.
  5. In the navigation pane on the left, choose Connections. Click the Public Connection tab. In the Basic Information area, locate the dds mongos node and click Bind EIP in the Operation column.

    Figure 1 Binding an EIP

    Alternatively, in the Node Information area on the Basic Information page, locate the dds mongos node and choose More > 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 on the dds mongos tab, 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 cluster instance name.
  5. In the navigation pane on the left, choose Connections. Click the Public Connection tab. In the Basic Information area, locate the dds mongos node and click Unbind EIP in the Operation column.

    Figure 4 Unbinding an EIP

    Alternatively, in the Node Information area on the Basic Information page, locate the dds mongos node and choose More > Unbind EIP in the Operation column.

    Figure 5 Unbinding an EIP

  6. In the displayed dialog box, click Yes.

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