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 cluster instance, only mongos 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 cluster instance.
  2. In the navigation pane on the left, choose Connections. In the Basic Information area, locate the target mongos node and click Bind EIP in the Operation column.

    In the Node Information area on the Basic Information page, locate the target mongos node and choose More > Bind EIP in the Operation column.

  3. 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.
  4. In the EIP column on the mongos tab, 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 target cluster instance.
  2. In the navigation pane on the left, choose Connections. In the Basic Information area, locate the target mongos node and click Unbind EIP in the Operation column.

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

  3. In the displayed dialog box, click OK.

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