forked from docs/doc-exports
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
23 lines
5.9 KiB
HTML
23 lines
5.9 KiB
HTML
<a name="dds_02_0053"></a><a name="dds_02_0053"></a>
|
|
|
|
<h1 class="topictitle1">Binding an EIP</h1>
|
|
<div id="body1522328390777"><div class="section" id="dds_02_0053__section055104935914"><h4 class="sectiontitle"><strong id="dds_02_0053__b013651851316">Scenarios</strong></h4><p id="dds_02_0053__p171361239153218">After you create a DB instance, you can bind it to an <span id="dds_02_0053__text16287022124315"></span><span id="dds_02_0053__text858162515438">EIP</span> to allow external access. If later you want to prohibit external access, you can also unbind the EIP from the DB instance.</p>
|
|
</div>
|
|
<div class="section" id="dds_02_0053__section1130510262514"><h4 class="sectiontitle">Precautions</h4><ul id="dds_02_0053__ul15712132844"><li id="dds_02_0053__li13712152748">Before accessing a database, you need to apply for an <span id="dds_02_0053__text18682103715431"></span><span id="dds_02_0053__text6682193734316">EIP</span> 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_0054.html">Setting a Security Group</a>.</li><li id="dds_02_0053__li137122023418">In the replica set instance, only primary and secondary nodes can be bound to an <span id="dds_02_0053__text12627544104315"></span><span id="dds_02_0053__text1362784464314">EIP</span>. To change the <span id="dds_02_0053__text1331312503438"></span><span id="dds_02_0053__text231315015434">EIP</span> 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_0053__section33192668203259"><a name="dds_02_0053__section33192668203259"></a><a name="section33192668203259"></a><h4 class="sectiontitle">Binding an <span id="dds_02_0053__text1380819316442"></span><span id="dds_02_0053__text180883124410">EIP</span></h4><ol id="dds_02_0053__ol38264571203259"><li id="dds_02_0053__li8836821203259"><span>On the <strong id="dds_02_0053__b84235270615219">Instance Management</strong> page, click the target replica set instance.</span></li><li id="dds_02_0053__li349825362319"><span>In the navigation pane on the left, choose <span class="uicontrol" id="dds_02_0053__uicontrol152815216255"><b>Connections</b></span>.</span></li><li id="dds_02_0053__li44693916203259"><span>In the <span class="parmname" id="dds_02_0053__parmname769647905151058"><b>Basic Information</b></span> area, locate the target node and click <strong id="dds_02_0053__b842352706151152">Bind EIP</strong> in the <strong id="dds_02_0053__b84235270615126">Operation</strong> column.</span><p><p id="dds_02_0053__p242764013574">Or in the <strong id="dds_02_0053__b52851011105020">Node Information</strong> area on the <strong id="dds_02_0053__b52851611145011">Basic Information</strong> page, locate the target node and choose <strong id="dds_02_0053__b2285111155019">More</strong> > <strong id="dds_02_0053__b1628581114501">Bind EIP</strong> in the <strong id="dds_02_0053__b5285121117509">Operation</strong> column.</p>
|
|
</p></li><li id="dds_02_0053__li63437472203259"><span>In the displayed dialog box, all available unbound EIPs are listed. Select the required <span id="dds_02_0053__text1148191411458"></span><span id="dds_02_0053__text448131444512">EIP</span> and click <strong id="dds_02_0053__b19601648167">OK</strong>. If no available EIPs are displayed, click <strong id="dds_02_0053__b11324152611169">View EIP</strong> and create an <span id="dds_02_0053__text16280163119451"></span><span id="dds_02_0053__text228093114512">EIP</span> on the VPC console.</span></li><li id="dds_02_0053__li4082557203259"><span>Locate the target node, in the <strong id="dds_02_0053__b410993681613">EIP</strong> column, view the <span id="dds_02_0053__text1677115448451"></span><span id="dds_02_0053__text777111442452">EIP</span> that is successfully bound.</span><p><p id="dds_02_0053__p23394266203259">To unbind an EIP from the DB instance, see <a href="#dds_02_0053__section186511510267">Unbinding an EIP</a>.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="dds_02_0053__section186511510267"><a name="dds_02_0053__section186511510267"></a><a name="section186511510267"></a><h4 class="sectiontitle">Unbinding an <span id="dds_02_0053__text1504749154517"></span><span id="dds_02_0053__text0504124984511">EIP</span></h4><ol id="dds_02_0053__ol31276680102616"><li id="dds_02_0053__li35235350102616"><span>On the <strong id="dds_02_0053__b309296325">Instance Management</strong> page, click the replica set instance that has been bound with an EIP.</span></li><li id="dds_02_0053__li13636174313355"><span>In the navigation pane on the left, choose <span class="uicontrol" id="dds_02_0053__uicontrol18688112772816"><b>Connections</b></span>.</span></li><li id="dds_02_0053__li5185173121149"><span>In the <span class="parmname" id="dds_02_0053__parmname1949302782"><b>Basic Information</b></span> area, locate the target node and click <strong id="dds_02_0053__b677112382">Unbind EIP</strong> in the <strong id="dds_02_0053__b639363965">Operation</strong> column.</span><p><p id="dds_02_0053__p10271133155813">Or in the <strong id="dds_02_0053__b1227193313587">Node Information</strong> area on the <strong id="dds_02_0053__b1527333165816">Basic Information</strong> page, locate the target node and choose <strong id="dds_02_0053__b5277333588">More</strong> > <strong id="dds_02_0053__b22712332587">Bind EIP</strong> in the <strong id="dds_02_0053__b142713339589">Operation</strong> column.</p>
|
|
</p></li><li id="dds_02_0053__li56439840102720"><span>In the displayed dialog box, click <strong id="dds_02_0053__b772304171814">Yes</strong>.</span><p><p id="dds_02_0053__p21771104103056">To bind an EIP to the DB instance again, see <a href="#dds_02_0053__section33192668203259">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_0050.html">Connecting to a Replica Set Instance Over Public Networks</a></div>
|
|
</div>
|
|
</div>
|
|
|