Updated on 2022-08-17 GMT+08:00

Binding an EIP

Scenarios

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

Precautions

  • Before accessing a database, you need to 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 section Setting a Security Group.
  • In the replica set instance, only primary and secondary nodes can be bound to an EIP. To change the EIP that has been bound to a node, you need to unbind it from the node first.

Binding an EIP

  1. On the Instance Management page, click the target replica set instance.
  2. In the navigation pane on the left, choose Connections.
  3. In the Basic Information area, locate the target node and click Bind EIP in the Operation column.
  4. 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.
  5. Locate the target node, in the EIP column, view the EIP that is successfully bound.

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

Unbinding an EIP

  1. On the Instance Management page, click the replica set instance that has been bound with an EIP.
  2. In the navigation pane on the left, choose Connections.
  3. In the Basic Information area, locate the target node and click Unbind EIP in the Operation column.
  4. In the displayed dialog box, click OK.

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