forked from docs/doc-exports
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>
26 lines
5.0 KiB
HTML
26 lines
5.0 KiB
HTML
<a name="dds_02_0006"></a><a name="dds_02_0006"></a>
|
|
|
|
<h1 class="topictitle1">Binding and Unbinding an EIP</h1>
|
|
<div id="body1522136462404"><div class="section" id="dds_02_0006__section055104935914"><a name="dds_02_0006__section055104935914"></a><a name="section055104935914"></a><h4 class="sectiontitle"><strong id="dds_02_0006__b10875147182618">Scenarios</strong></h4><p id="dds_02_0006__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_0006__ul115584945912"><li id="dds_02_0006__li14552049185915">Use a private IP address when:<p id="dds_02_0006__p12551049155916"><a name="dds_02_0006__li14552049185915"></a><a name="li14552049185915"></a>DDS provides a private IP address by default.</p>
|
|
<p id="dds_02_0006__p75510491599">Your applications are deployed on an ECS in a region where your cluster instance is located.</p>
|
|
</li></ul>
|
|
<ul id="dds_02_0006__ul1855449105913"><li id="dds_02_0006__li135514925912">Use an EIP when:<ul id="dds_02_0006__ul125516499595"><li id="dds_02_0006__li255104965916">Your applications are deployed on an ECS in a region separated from the region where your cluster instance is located.</li><li id="dds_02_0006__li65544917591">Your applications are deployed on another cloud platform.</li></ul>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dds_02_0006__section1130510262514"><h4 class="sectiontitle">Precautions</h4><ul id="dds_02_0006__ul15712132844"><li id="dds_02_0006__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_0005.html">Setting a Security Group</a>.</li><li id="dds_02_0006__li137122023418">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.</li></ul>
|
|
</div>
|
|
<div class="section" id="dds_02_0006__section0463161611514"><a name="dds_02_0006__section0463161611514"></a><a name="section0463161611514"></a><h4 class="sectiontitle">Binding an EIP</h4><ol id="dds_02_0006__ol12603704105129"><li id="dds_02_0006__li46324476105129"><span>On the <strong id="dds_02_0006__b84235270615219">Instance Management</strong> page, click the target cluster instance.</span></li><li id="dds_02_0006__li349825362319"><span>In the navigation pane on the left, choose <span class="uicontrol" id="dds_02_0006__uicontrol4786037163118"><b>Connections</b></span>. </span></li><li id="dds_02_0006__li38329011165953"><span>In the <strong id="dds_02_0006__b17715154217247">Basic Information</strong> area, locate the target mongos node and click <strong id="dds_02_0006__b1971744216246">Bind EIP</strong> in the <strong id="dds_02_0006__b15719154214242">Operation</strong> column.</span></li><li id="dds_02_0006__li14267104105129"><span>In the displayed dialog box, all EIPs in the unbound status are listed. Select the required EIP and click <strong id="dds_02_0006__b842352706204348">OK</strong>. If no available EIPs are displayed, click <span class="uicontrol" id="dds_02_0006__uicontrol64968849151523"><b>View EIP</b></span> and create an EIP on the VPC console.</span></li><li id="dds_02_0006__li17560260102159"><span>In the <strong id="dds_02_0006__b842352706105036">EIP</strong> column on the <strong id="dds_02_0006__b842352706105039">mongos</strong> tab, view the EIP that is successfully bound.</span><p><p id="dds_02_0006__p32760134103252">To unbind an EIP from the DB instance, see <a href="#dds_02_0006__section1139494151519">Unbinding an EIP</a>.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="dds_02_0006__section1139494151519"><a name="dds_02_0006__section1139494151519"></a><a name="section1139494151519"></a><h4 class="sectiontitle">Unbinding an EIP</h4><ol id="dds_02_0006__ol31276680102616"><li id="dds_02_0006__li35235350102616"><span>On the <strong id="dds_02_0006__b34027572411917">Instance Management</strong> page, click the target cluster instance.</span></li><li id="dds_02_0006__li15539153193217"><span>In the navigation pane on the left, choose <span class="uicontrol" id="dds_02_0006__uicontrol17211152912257"><b>Connections</b></span>. </span></li><li id="dds_02_0006__li417442102629"><span>In the <strong id="dds_02_0006__b1757933115255">Basic Information</strong> area, locate the target mongos node and click <strong id="dds_02_0006__b85791731142520">Unbind EIP</strong> in the <strong id="dds_02_0006__b11580183111252">Operation</strong> column.</span></li><li id="dds_02_0006__li56439840102720"><span>In the displayed dialog box, click <strong id="dds_02_0006__b9698561399">OK</strong> to unbind the EIP.</span><p><p id="dds_02_0006__p21771104103056">To bind an EIP to the DB instance again, see <a href="#dds_02_0006__section0463161611514">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_0009.html">Connecting to a Cluster Instance</a></div>
|
|
</div>
|
|
</div>
|
|
|