Binding and Unbinding an EIP
Scenarios
You can bind an EIP to a DB instance for public accessibility, and you can unbind the EIP from the DB instance later if needed.
![](https://support.huaweicloud.com/intl/en-us/usermanual-rds/public_sys-resources/notice_3.0-en-us.png)
To ensure that the DB instance is accessible, the security group associated with the instance must allow access over the database port. For example, if the database port is 8635, ensure that the security group allows access over the 8635 port.
Precautions
- You need to configure security groups and enable specific IP addresses and ports to access the target DB instance. Before accessing the DB instance, add an individual IP address or an IP address range that will access the DB instance to the inbound rule. For details, see Configuring Security Group Rules.
- You can buy an EIP on the network console and bind it to a DB instance. One EIP can be bound to only one DB instance. For pricing details, see Elastic IP pricing details.
Prerequisites
- You can bind an EIP to a primary DB instance or a 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.
Binding an EIP
- Log in to the management console.
- Click
in the upper left corner and select a region and a project.
- Click
in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, click the target DB instance.
- In the navigation pane on the left, choose Connectivity & Security. In the Connection Information area, click Bind next to the EIP field.
Alternatively, in the Connection Topology area, click Public Connection and then Bind in the connection topology.
- In the displayed dialog box, all unbound EIPs are listed. Select the EIP to be bound and click Yes.
- On the Connectivity & Security page, view the EIP that has been bound to the DB instance.
You can also view the progress and result of binding an EIP to a DB instance on the Task Center page.
To unbind the EIP from the DB instance, see Unbinding an EIP.
Unbinding an EIP
- Log in to the management console.
- Click
in the upper left corner and select a region and a project.
- Click
in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, click the DB instance that has an EIP bound.
- In the navigation pane on the left, choose Connectivity & Security. In the Connection Information area, click Unbind next to the EIP field. In the displayed dialog box, click Yes.
Alternatively, in the Connection Topology area, click Public Connection and then Unbind in the connection topology. In the displayed dialog box, click Yes.
- If you have enabled operation protection, click Send Code in the displayed Identity Verification dialog box and enter the obtained verification code. Then, click OK.
Two-factor authentication improves the security of your account and cloud product. For details about how to enable operation protection, see Identity and Access Management User Guide.
- On the Connectivity & Security page, view the results.
You can also view the progress and result of unbinding an EIP from a DB instance on the Task Center page.
To bind an EIP to the DB instance again, see Binding an EIP.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot