forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
111 lines
17 KiB
HTML
111 lines
17 KiB
HTML
<a name="eip_0002"></a><a name="eip_0002"></a>
|
|
|
|
<h1 class="topictitle1">Assigning an EIP and Binding It to an ECS</h1>
|
|
<div id="body8662426"><div class="section" id="eip_0002__en-us_topic_0118498850_s974a02c09b8e44f59dcc9335de2d030a"><h4 class="sectiontitle">Scenarios</h4><p id="eip_0002__en-us_topic_0118498850_a1394e0b781f0449d815e75ccce5d2f55">You can assign an EIP and bind it to an ECS so that the ECS can access the Internet.</p>
|
|
<div class="note" id="eip_0002__en-us_topic_0118498850_note3192174920480"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><div class="p" id="eip_0002__en-us_topic_0118498850_p39817577485">EIPs for dedicated load balancers:<ul id="eip_0002__en-us_topic_0118498850_ul18141507494"><li id="eip_0002__en-us_topic_0118498850_li978215914229">In the <strong id="eip_0002__en-us_topic_0118498850_b433018309241">eu-de</strong> region, if you choose to assign an EIP when you create a dedicated load balancer on the management console or using APIs, EIPs for dedicated load balancers (<strong id="eip_0002__en-us_topic_0118498850_b9275191210222">5_gray</strong>) will be assigned.</li><li id="eip_0002__en-us_topic_0118498850_li1194114411236">Do not bind EIPs of this type to non-dedicated load balancers.</li><li id="eip_0002__en-us_topic_0118498850_li1468695512506">Do not add EIPs of the dedicated load balancer type and other types to the same shared bandwidth. Otherwise, the bandwidth limit policy will not take effect.</li></ul>
|
|
</div>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="eip_0002__en-us_topic_0118498850_section16739352111811"><h4 class="sectiontitle">Assigning an EIP</h4><ol id="eip_0002__en-us_topic_0118498850_o2ffb7129e93e4f1fa7cc91f350d39f8a"><li id="eip_0002__en-us_topic_0118498850_l67f1c4bb070b4f3d9b83021e83da345b">Log in to the management console.</li><li id="eip_0002__en-us_topic_0118498850_li840318282158">Click <span><img id="eip_0002__en-us_topic_0118498850_en-us_topic_0118498823_image338921514480" src="en-us_image_0141273034.png"></span> in the upper left corner and select the desired region and project.</li><li id="eip_0002__en-us_topic_0118498850_li548302634415">On the console homepage, under <strong id="eip_0002__en-us_topic_0118498850_b177485115371"><span id="eip_0002__en-us_topic_0118498850_text1016213466484">Network</span><span id="eip_0002__en-us_topic_0118498850_text187271647114816"></span></strong>, click <strong id="eip_0002__en-us_topic_0118498850_b75122554375">Elastic IP</strong>.</li><li id="eip_0002__en-us_topic_0118498850_l75b6b96623fc429fa79b6ba85e8a1b6d">On the displayed page, click <strong id="eip_0002__en-us_topic_0118498850_b94926278357">Assign EIP</strong>.</li><li id="eip_0002__en-us_topic_0118498850_lbf068509382247478729e03fa4ae0880">Set the parameters as prompted.<div class="fignone" id="eip_0002__en-us_topic_0118498850_fig109168413519"><span class="figcap"><b>Figure 1 </b>Assign EIP</span><br><span><img id="eip_0002__en-us_topic_0118498850_image4883919145515" src="en-us_image_0000001117669274.png"></span></div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="eip_0002__en-us_topic_0118498850_tb8e92f5357304d0297e9c203270c546e" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter descriptions</caption><thead align="left"><tr id="eip_0002__en-us_topic_0118498850_r66aedde49c144d8a84278fc61dadffdd"><th align="left" class="cellrowborder" valign="top" width="31.65%" id="mcps1.3.2.2.5.2.2.4.1.1"><p id="eip_0002__en-us_topic_0118498850_aafd79e8ecf074d0da2b802ca103815d1">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.29%" id="mcps1.3.2.2.5.2.2.4.1.2"><p id="eip_0002__en-us_topic_0118498850_a30252599cf9146418f791259ec182081">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.06%" id="mcps1.3.2.2.5.2.2.4.1.3"><p id="eip_0002__en-us_topic_0118498850_a02cb30a37b3a49abb2a82c12344214df">Example Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="eip_0002__en-us_topic_0118498850_row69311030161113"><td class="cellrowborder" valign="top" width="31.65%" headers="mcps1.3.2.2.5.2.2.4.1.1 "><p id="eip_0002__en-us_topic_0118498850_p1211443310119">Region</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.29%" headers="mcps1.3.2.2.5.2.2.4.1.2 "><p id="eip_0002__en-us_topic_0118498850_p411903317112">Regions are geographic areas that are physically isolated from each other. The networks inside different regions are not connected to each other, so resources cannot be shared across different regions. For lower network latency and faster access to your resources, select the region nearest you.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.2.2.5.2.2.4.1.3 "><p id="eip_0002__en-us_topic_0118498850_p7738111114910">eu-de</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="eip_0002__en-us_topic_0118498850_row1755815445016"><td class="cellrowborder" valign="top" width="31.65%" headers="mcps1.3.2.2.5.2.2.4.1.1 "><p id="eip_0002__en-us_topic_0118498850_p0829195012711">EIP Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.29%" headers="mcps1.3.2.2.5.2.2.4.1.2 "><ul id="eip_0002__en-us_topic_0118498850_ul48291050376"><li id="eip_0002__en-us_topic_0118498850_li2829250973"><strong id="eip_0002__en-us_topic_0118498850_b19994659161419">Dynamic BGP</strong>: Dynamic BGP provides automatic failover and chooses the optimal path when a network connection fails.</li><li id="eip_0002__en-us_topic_0118498850_li565183215109"><strong id="eip_0002__en-us_topic_0118498850_b10944114901910">Mail BGP</strong>: EIPs with port 25, 465, or 587 enabled are used.</li></ul>
|
|
<p id="eip_0002__en-us_topic_0118498850_p13668174021018">The selected EIP type cannot be changed after the EIP is assigned.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.2.2.5.2.2.4.1.3 "><p id="eip_0002__en-us_topic_0118498850_p18829105015715">Dynamic BGP</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="eip_0002__en-us_topic_0118498850_row220919163166"><td class="cellrowborder" valign="top" width="31.65%" headers="mcps1.3.2.2.5.2.2.4.1.1 "><p id="eip_0002__en-us_topic_0118498850_p741017230161">Bandwidth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.29%" headers="mcps1.3.2.2.5.2.2.4.1.2 "><p id="eip_0002__en-us_topic_0118498850_p44131723121613">The bandwidth size in Mbit/s.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.2.2.5.2.2.4.1.3 "><p id="eip_0002__en-us_topic_0118498850_p15417172316166">100</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="eip_0002__en-us_topic_0118498850_row1798051216168"><td class="cellrowborder" valign="top" width="31.65%" headers="mcps1.3.2.2.5.2.2.4.1.1 "><p id="eip_0002__en-us_topic_0118498850_p44256235163">Bandwidth Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.29%" headers="mcps1.3.2.2.5.2.2.4.1.2 "><p id="eip_0002__en-us_topic_0118498850_p134282234164">The name of the bandwidth.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.2.2.5.2.2.4.1.3 "><p id="eip_0002__en-us_topic_0118498850_p2430182381611">bandwidth</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="eip_0002__en-us_topic_0118498850_row72697164367"><td class="cellrowborder" valign="top" width="31.65%" headers="mcps1.3.2.2.5.2.2.4.1.1 "><p id="eip_0002__en-us_topic_0118498850_p32701616183611">Tag</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.29%" headers="mcps1.3.2.2.5.2.2.4.1.2 "><p id="eip_0002__en-us_topic_0118498850_p9270111616363">The EIP tags. Each tag contains a key and value pair.</p>
|
|
<p id="eip_0002__en-us_topic_0118498850_p011163020377">The tag key and value must meet the requirements listed in <a href="#eip_0002__en-us_topic_0118498850_table36606052153313">Table 2</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.2.2.5.2.2.4.1.3 "><ul id="eip_0002__en-us_topic_0118498850_ul1423104520372"><li id="eip_0002__en-us_topic_0118498850_li5238454373">Key: Ipv4_key1</li><li id="eip_0002__en-us_topic_0118498850_li14239456372">Value: 192.168.12.10</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="eip_0002__en-us_topic_0118498850_rf9c18d6cf2554db48da9ab7a351d00a7"><td class="cellrowborder" valign="top" width="31.65%" headers="mcps1.3.2.2.5.2.2.4.1.1 "><p id="eip_0002__en-us_topic_0118498850_ad3ab73d5ac10468fa5c52ab44adb0196">Quantity</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.29%" headers="mcps1.3.2.2.5.2.2.4.1.2 "><p id="eip_0002__en-us_topic_0118498850_en-us_topic_0029397266_p816336174522">The number of EIPs you want to purchase.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.2.2.5.2.2.4.1.3 "><p id="eip_0002__en-us_topic_0118498850_ab9a9778fda6e45d7b5710ab0d310f64c">1</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="eip_0002__en-us_topic_0118498850_table36606052153313"></a><a name="en-us_topic_0118498850_table36606052153313"></a><table cellpadding="4" cellspacing="0" summary="" id="eip_0002__en-us_topic_0118498850_table36606052153313" frame="border" border="1" rules="all"><caption><b>Table 2 </b>EIP tag requirements</caption><thead align="left"><tr id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_rd57708e01e6443a9805ca72f554fae7f"><th align="left" class="cellrowborder" valign="top" width="18.54%" id="mcps1.3.2.2.5.3.2.4.1.1"><p id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_abc7708d69440476086850b219c70efa8"><strong id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_b842352706165123">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.39%" id="mcps1.3.2.2.5.3.2.4.1.2"><p id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_a0df2f83c3277432ab05b525e4ffb1c2c"><strong id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_b842352706174218">Requirement</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.07%" id="mcps1.3.2.2.5.3.2.4.1.3"><p id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_a902e732241f94e96b0b1b718cf7ed639"><strong id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_b842352706174227">Example Value</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_r95612b479088487b99e620f90b71f798"><td class="cellrowborder" valign="top" width="18.54%" headers="mcps1.3.2.2.5.3.2.4.1.1 "><p id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_a7694a48138124d1daf3804556a27bfd6">Key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.39%" headers="mcps1.3.2.2.5.3.2.4.1.2 "><ul id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_uac40e19ce4ac49d0913d48b334564c45"><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_l09e5379e37734886b85606e1a1512982">Cannot be left blank.</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_lf627e2e989ad4bf8a759780682976c4a">Must be unique for each EIP.</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_l740724b56b3948fdb336c21388d6e283">Can contain a maximum of 36 characters.</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_lb10c975c495c4de1bc52fc96d084697c">Can contain only the following character types:<ul id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_uccb317c6616b4445aa84b125e5aa017f"><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_la4975a0b714d486381ef36c8599a4dae">Uppercase letters</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_l05872030add74e7ab50152845826fa0a">Lowercase letters</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_le70c062519174a9cae474c99c0f4f976">Digits</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_li77869551443">Special characters, including hyphens (-) and underscores (_)</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.07%" headers="mcps1.3.2.2.5.3.2.4.1.3 "><p id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_a1a10de6d67c04555a3508a8cdc3500e7">Ipv4_key1</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_r32a79d8bde844fda8a6254383317e58f"><td class="cellrowborder" valign="top" width="18.54%" headers="mcps1.3.2.2.5.3.2.4.1.1 "><p id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_a1ebd1dda592448d49631c7f099519113">Value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.39%" headers="mcps1.3.2.2.5.3.2.4.1.2 "><ul id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_uaf17b1ea9b9a4e58b95cafefa2898283"><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_l88703260ac20431f961a641ebe7dbe00">Can contain a maximum of 43 characters.</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_lf4772afe9a8143b086ea935ee84656f3">Can contain only the following character types:<ul id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_ub74c759faad544c3b4428accc9c42b80"><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_lf275cde186b24b9a9e3d4d52784a16ba">Uppercase letters</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_l3a58e993d925444bb0eba6c38feeedfb">Lowercase letters</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_l8679b69b2cd9428caecf8e14cafe5d4f">Digits</li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_li13827436174517">Special characters, including hyphens (-) and underscores (_)</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.07%" headers="mcps1.3.2.2.5.3.2.4.1.3 "><p id="eip_0002__en-us_topic_0118498850_en-us_topic_0118499005_a21a035aeb72143f5ab0fd45a08248d08">192.168.12.10</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="eip_0002__en-us_topic_0118498850_lb65b64868bc74422b53e9887bc309f7f">Click <strong id="eip_0002__en-us_topic_0118498850_b886094312279">Create Now</strong>.</li><li id="eip_0002__en-us_topic_0118498850_lf9563a8184a1418886dc02b9576e324a">Click <strong id="eip_0002__en-us_topic_0118498850_en-us_topic_0027736829_b84235270611121">Submit</strong>.</li></ol>
|
|
</div>
|
|
<div class="section" id="eip_0002__en-us_topic_0118498850_section6234163111911"><h4 class="sectiontitle">Binding an EIP</h4><ol id="eip_0002__en-us_topic_0118498850_ofa96eb31d22c4844a0da754ea5a69b57"><li id="eip_0002__en-us_topic_0118498850_le135ade432bc4ca58b5d036b63767142">On the <strong id="eip_0002__en-us_topic_0118498850_b6984114818250">EIPs</strong> page, locate the row that contains the target EIP, and click <strong id="eip_0002__en-us_topic_0118498850_b9669155232513">Bind</strong>.</li><li id="eip_0002__en-us_topic_0118498850_l7f72d79fa9324e4bbfe075e315ff4b9e">Select the instance to which you want to bind the EIP.<div class="fignone" id="eip_0002__en-us_topic_0118498850_fig42552497182029"><span class="figcap"><b>Figure 2 </b>Bind EIP</span><br><span><img id="eip_0002__en-us_topic_0118498850_image7888224121020" src="en-us_image_0000001166028070.png"></span></div>
|
|
</li><li id="eip_0002__en-us_topic_0118498850_lac057e5ebe8f4c259caf292c1dfbf7af">Click <strong id="eip_0002__en-us_topic_0118498850_b1560314454156">OK</strong>.</li></ol>
|
|
<p id="eip_0002__en-us_topic_0118498850_p5956796995142">An IPv6 client on the Internet can access the ECS that has an EIP bound in a VPC. For details about the implementation and constraints, see <a href="faq_connect_0002.html#faq_connect_0002">How Does an IPv6 Client on the Internet Access the ECS That Has an EIP Bound in a VPC?</a></p>
|
|
</div>
|
|
<div class="section" id="eip_0002__en-us_topic_0118498850_section296825512228"><h4 class="sectiontitle">Follow-Up Procedure</h4><p id="eip_0002__en-us_topic_0118498850_p080045316423">After an ECS with an EIP bound is created, the system generates a domain name in the format of <strong id="eip_0002__en-us_topic_0118498850_b702562279">ecs-</strong><em id="eip_0002__en-us_topic_0118498850_i20311286262">xx-xx-xx-xx</em><strong id="eip_0002__en-us_topic_0118498850_b76535010286">.compute.</strong><em id="eip_0002__en-us_topic_0118498850_i168181118112612">xxx</em><strong id="eip_0002__en-us_topic_0118498850_b02369274284">.com</strong> for the EIP by default. <em id="eip_0002__en-us_topic_0118498850_i78241035269">xx-xx-xx-xx</em> indicates the EIP, and xxx indicates the domain name of the cloud service provider. You can use the domain name to access the ECS.</p>
|
|
<div class="p" id="eip_0002__en-us_topic_0118498850_en-us_topic_0144542112_p14678134073614">You can use any of the following commands to obtain the domain name of an EIP:<ul id="eip_0002__en-us_topic_0118498850_en-us_topic_0144542112_ul26832040183617"><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0144542112_li1368654020367">ping -a<em id="eip_0002__en-us_topic_0118498850_en-us_topic_0144542112_i969419408367"> <span id="eip_0002__en-us_topic_0118498850_text1888884617429">EIP</span><span id="eip_0002__en-us_topic_0118498850_text1888815462422"></span></em></li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0144542112_li1269784073613">nslookup [-qt=ptr] <em id="eip_0002__en-us_topic_0118498850_i8948182114310"><span id="eip_0002__en-us_topic_0118498850_text176199502420">EIP</span></em><em id="eip_0002__en-us_topic_0118498850_i29498284311"><span id="eip_0002__en-us_topic_0118498850_text6619050144219"></span></em></li><li id="eip_0002__en-us_topic_0118498850_en-us_topic_0144542112_li18711174063611">dig -x <em id="eip_0002__en-us_topic_0118498850_i20411155874214"><span id="eip_0002__en-us_topic_0118498850_text211613547423">EIP</span></em><em id="eip_0002__en-us_topic_0118498850_i54131058144215"><span id="eip_0002__en-us_topic_0118498850_text181161554184210"></span></em></li></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="eip_0001.html">EIP</a></div>
|
|
</div>
|
|
</div>
|
|
|