doc-exports/docs/dds/umn/dds_02_0015.html
Wang , Deng Ke 519944c837 DDS UMN 20221101 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2022-11-24 09:05:29 +00:00

26 lines
5.0 KiB
HTML

<a name="dds_02_0015"></a><a name="dds_02_0015"></a>
<h1 class="topictitle1">Binding and Unbinding an EIP</h1>
<div id="body1522328390777"><div class="section" id="dds_02_0015__section055104935914"><a name="dds_02_0015__section055104935914"></a><a name="section055104935914"></a><h4 class="sectiontitle"><strong id="dds_02_0015__b013651851316">Scenarios</strong></h4><p id="dds_02_0015__p6551149135917">You can access DDS through a private IP address or an EIP. The application scenario of the connection address is as follows:</p>
<ul id="dds_02_0015__ul115584945912"><li id="dds_02_0015__li14552049185915">Use a private IP address when:<p id="dds_02_0015__p12551049155916"><a name="dds_02_0015__li14552049185915"></a><a name="li14552049185915"></a>DDS provides a private IP address by default.</p>
<p id="dds_02_0015__p75510491599">Your applications are deployed on an ECS in a region where your replica set instance is located.</p>
</li></ul>
<ul id="dds_02_0015__ul1855449105913"><li id="dds_02_0015__li135514925912">Use an EIP when:<ul id="dds_02_0015__ul125516499595"><li id="dds_02_0015__li255104965916">Your applications are deployed on an ECS in a region separated from the region where your replica set instance is located.</li><li id="dds_02_0015__li65544917591">Your applications are deployed on another cloud platform.</li></ul>
</li></ul>
</div>
<div class="section" id="dds_02_0015__section1130510262514"><h4 class="sectiontitle">Precautions</h4><ul id="dds_02_0015__ul15712132844"><li id="dds_02_0015__li13712152748">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 <a href="dds_02_0013.html">Setting a Security Group</a>.</li><li id="dds_02_0015__li137122023418">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.</li></ul>
</div>
<div class="section" id="dds_02_0015__section0350133891310"><a name="dds_02_0015__section0350133891310"></a><a name="section0350133891310"></a><h4 class="sectiontitle">Binding an EIP</h4><ol id="dds_02_0015__ol38264571203259"><li id="dds_02_0015__li8836821203259"><span>On the <strong id="dds_02_0015__b84235270615219">Instance Management</strong> page, click the target replica set instance.</span></li><li id="dds_02_0015__li349825362319"><span>In the navigation pane on the left, choose <span class="uicontrol" id="dds_02_0015__uicontrol87094403516"><b>Connections</b></span>. </span></li><li id="dds_02_0015__li44693916203259"><span>In the <span class="parmname" id="dds_02_0015__parmname769647905151058"><b>Basic Information</b></span> area, locate the target node and click <strong id="dds_02_0015__b842352706151152">Bind EIP</strong> in the <strong id="dds_02_0015__b84235270615126">Operation</strong> column.</span></li><li id="dds_02_0015__li63437472203259"><span>In the displayed dialog box, all EIPs in the unbound status are listed. Select the required EIP and click <strong id="dds_02_0015__b842352706204348">OK</strong>. If no available EIPs are displayed, click <span class="uicontrol" id="dds_02_0015__uicontrol7910157203259"><b>View EIP</b></span> and create an EIP on the VPC console.</span></li><li id="dds_02_0015__li4082557203259"><span>In the <strong id="dds_02_0015__b842352706105036">EIP</strong> column, check that the EIP is successfully bound.</span><p><p id="dds_02_0015__p23394266203259">To unbind an EIP from the DB instance, see <a href="#dds_02_0015__section142610351410">Unbinding an EIP</a>.</p>
</p></li></ol>
</div>
<div class="section" id="dds_02_0015__section142610351410"><a name="dds_02_0015__section142610351410"></a><a name="section142610351410"></a><h4 class="sectiontitle">Unbinding an EIP</h4><ol id="dds_02_0015__ol31276680102616"><li id="dds_02_0015__li35235350102616"><span>On the <strong id="dds_02_0015__b316210509">Instance Management</strong> page, click the replica set instance that has been bound with an EIP.</span></li><li id="dds_02_0015__li13636174313355"><span>In the navigation pane on the left, choose <span class="uicontrol" id="dds_02_0015__uicontrol8998202073619"><b>Connections</b></span>. </span></li><li id="dds_02_0015__li5185173121149"><span>In the <span class="parmname" id="dds_02_0015__parmname179551228193610"><b>Basic Information</b></span> area, locate the target node and click <strong id="dds_02_0015__b159552028193614">Unbind EIP</strong> in the <strong id="dds_02_0015__b995742811367">Operation</strong> column.</span></li><li id="dds_02_0015__li56439840102720"><span>In the displayed dialog box, click <strong id="dds_02_0015__b84235270695933">OK</strong> to unbind the EIP.</span><p><p id="dds_02_0015__p21771104103056">To bind an EIP to the DB instance again, see <a href="#dds_02_0015__section0350133891310">Binding an EIP</a>.</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_02_0014.html">Connecting to a Replica Set Instance</a></div>
</div>
</div>