• Relational Database Service

rds
  1. Help Center
  2. Relational Database Service
  3. User Guide
  4. Managing DB Instances
  5. Network
  6. Binding and Unbinding an EIP

Binding and Unbinding an EIP

Scenarios

By default, a DB instance is not publicly accessible (not bound with an EIP) after being created. You can bind an EIP to the DB instance for public accessibility and can unbind the EIP from the DB instance as required.

To ensure that the database can be accessed, the security group used by the database must have the permission to access the database port. For example, if the database port is 8635, ensure that the security group has the permission to access port 8635.

Prerequisites

  • You have assigned an EIP on the VPC console.
  • You can bind an EIP to a primary DB instance or read replica only.
  • If a DB instance has already been bound with an EIP, you must unbind the EIP from the DB instance first before binding a new EIP to it.
NOTE:

This function is currently unavailable for some existing DB instances because the connection IP addresses were created in a way that does not support binding EIPs.

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 Service List. Under Database, click Relational Database Service to go to the RDS console.
  4. On the Instance Management page, click the target DB instance.
  5. On the EIPs page, click Bind EIP.
  6. In the displayed dialog box, all unbound EIPs are listed. Select the EIP to be bound and click OK. If no available EIPs are displayed, click View EIP and assign an EIP on the VPC console.
  7. On the Basic Information page, you can view the EIP that has been bound to the DB instance.

    To unbind the EIP from the DB 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 Service List. Under Database, click Relational Database Service to go to the RDS console.
  4. On the Instance Management page, click the DB instance that has been bound with an EIP.
  5. On the EIPs page, locate the target EIP to be unbound and click Unbind.
  6. On the Basic Information page, you can view the unbinding result.

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