forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
64 lines
7.8 KiB
HTML
64 lines
7.8 KiB
HTML
<a name="faq_eip_0022"></a><a name="faq_eip_0022"></a>
|
|
|
|
<h1 class="topictitle1">Can Multiple EIPs Be Bound to an ECS?</h1>
|
|
<div id="body8662426"><div class="section" id="faq_eip_0022__en-us_topic_0018073216_section1851945163017"><h4 class="sectiontitle">Scenarios</h4><p id="faq_eip_0022__en-us_topic_0018073216_p6303405720918">Multiple EIPs can be bound to an ECS, but this operation is not recommended.</p>
|
|
<p id="faq_eip_0022__en-us_topic_0018073216_p19349519165733">If an ECS has multiple NICs attached and you want to bind multiple EIPs to this ECS, you need to configure policy-based routes for these NICs so that these extension NICs can communicate with external works. For details, see <a href="#faq_eip_0022__en-us_topic_0018073216_section32091531162222">Configuration Example</a>.</p>
|
|
</div>
|
|
<div class="section" id="faq_eip_0022__en-us_topic_0018073216_section32091531162222"><a name="faq_eip_0022__en-us_topic_0018073216_section32091531162222"></a><a name="en-us_topic_0018073216_section32091531162222"></a><h4 class="sectiontitle">Configuration Example</h4><p id="faq_eip_0022__en-us_topic_0018073216_p54619536163151"><a href="#faq_eip_0022__en-us_topic_0018073216_table10449199163243">Table 1</a> lists <span id="faq_eip_0022__en-us_topic_0018073216_text661413114314">ECS</span> configurations.</p>
|
|
|
|
<div class="tablenoborder"><a name="faq_eip_0022__en-us_topic_0018073216_table10449199163243"></a><a name="en-us_topic_0018073216_table10449199163243"></a><table cellpadding="4" cellspacing="0" summary="" id="faq_eip_0022__en-us_topic_0018073216_table10449199163243" frame="border" border="1" rules="all"><caption><b>Table 1 </b>ECS configurations</caption><thead align="left"><tr id="faq_eip_0022__en-us_topic_0018073216_row8662904163243"><th align="left" class="cellrowborder" valign="top" width="25.19%" id="mcps1.3.2.3.2.3.1.1"><p id="faq_eip_0022__en-us_topic_0018073216_p7023835163243">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="74.81%" id="mcps1.3.2.3.2.3.1.2"><p id="faq_eip_0022__en-us_topic_0018073216_p32059771163243">Configuration</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="faq_eip_0022__en-us_topic_0018073216_row20102485163243"><td class="cellrowborder" valign="top" width="25.19%" headers="mcps1.3.2.3.2.3.1.1 "><p id="faq_eip_0022__en-us_topic_0018073216_p17688570163243">Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.81%" headers="mcps1.3.2.3.2.3.1.2 "><p id="faq_eip_0022__en-us_topic_0018073216_p23488080163243">ecs_test</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="faq_eip_0022__en-us_topic_0018073216_row10066133163243"><td class="cellrowborder" valign="top" width="25.19%" headers="mcps1.3.2.3.2.3.1.1 "><p id="faq_eip_0022__en-us_topic_0018073216_p10050422163243">Image</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.81%" headers="mcps1.3.2.3.2.3.1.2 "><p id="faq_eip_0022__en-us_topic_0018073216_p8777885163243">CentOS 6.5 64bit</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="faq_eip_0022__en-us_topic_0018073216_row11892101163243"><td class="cellrowborder" valign="top" width="25.19%" headers="mcps1.3.2.3.2.3.1.1 "><p id="faq_eip_0022__en-us_topic_0018073216_p23736109163243"><span id="faq_eip_0022__en-us_topic_0018073216_text2378115753619">EIP</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.81%" headers="mcps1.3.2.3.2.3.1.2 "><p id="faq_eip_0022__en-us_topic_0018073216_p43576653163243">2</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="faq_eip_0022__en-us_topic_0018073216_row56645562163243"><td class="cellrowborder" valign="top" width="25.19%" headers="mcps1.3.2.3.2.3.1.1 "><p id="faq_eip_0022__en-us_topic_0018073216_p24887810163243">Primary NIC</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.81%" headers="mcps1.3.2.3.2.3.1.2 "><p id="faq_eip_0022__en-us_topic_0018073216_p2646743163243">eth0</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="faq_eip_0022__en-us_topic_0018073216_row23304392163323"><td class="cellrowborder" valign="top" width="25.19%" headers="mcps1.3.2.3.2.3.1.1 "><p id="faq_eip_0022__en-us_topic_0018073216_p8412943163323">Secondary NIC</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.81%" headers="mcps1.3.2.3.2.3.1.2 "><p id="faq_eip_0022__en-us_topic_0018073216_p10359815163323">eth1</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="faq_eip_0022__en-us_topic_0018073216_p29420320164233"><strong id="faq_eip_0022__en-us_topic_0018073216_b84235270601519">Example 1:</strong></p>
|
|
<div class="p" id="faq_eip_0022__en-us_topic_0018073216_p41171733162920">If you intend to access public network 11.11.11.0/24 through standby NIC <strong id="faq_eip_0022__en-us_topic_0018073216_b8423527060169">eth1</strong>, perform the following operations to configure a route:<ol id="faq_eip_0022__en-us_topic_0018073216_ol18362660164218"><li id="faq_eip_0022__en-us_topic_0018073216_li42417408164218">Log in to the <span id="faq_eip_0022__en-us_topic_0018073216_text893111478179">ECS</span>.</li><li id="faq_eip_0022__en-us_topic_0018073216_li35072844164223">Run the following command to configure a route:<p id="faq_eip_0022__en-us_topic_0018073216_p3211026816433"><a name="faq_eip_0022__en-us_topic_0018073216_li35072844164223"></a><a name="en-us_topic_0018073216_li35072844164223"></a><strong id="faq_eip_0022__en-us_topic_0018073216_b622605418417">ip route add 11.11.11.0/24 dev eth1 via 192.168.2.1</strong></p>
|
|
<p id="faq_eip_0022__en-us_topic_0018073216_p7288110164437">In the preceding command, <strong id="faq_eip_0022__en-us_topic_0018073216_b84235270601739">192.168.2.1</strong> is the gateway IP address of standby NIC <strong id="faq_eip_0022__en-us_topic_0018073216_b84235270601913">eth1</strong>.</p>
|
|
</li></ol>
|
|
</div>
|
|
<p id="faq_eip_0022__en-us_topic_0018073216_p30721816164524"><strong id="faq_eip_0022__en-us_topic_0018073216_b84235270601921">Example 2:</strong></p>
|
|
<p id="faq_eip_0022__en-us_topic_0018073216_p55315599164548">Based on example 1, if you intend to enable routing for default public network traffic through standby NIC <strong id="faq_eip_0022__en-us_topic_0018073216_b7037019810216">eth1</strong>, perform the following operations to configure a route:</p>
|
|
<ol id="faq_eip_0022__en-us_topic_0018073216_ol16816170164734"><li id="faq_eip_0022__en-us_topic_0018073216_li56130240164734">Log in to the <span id="faq_eip_0022__en-us_topic_0018073216_text66355316182">ECS</span>.</li><li id="faq_eip_0022__en-us_topic_0018073216_li51081423164738">Run the following command to delete the default route:<p id="faq_eip_0022__en-us_topic_0018073216_p49989555164813"><a name="faq_eip_0022__en-us_topic_0018073216_li51081423164738"></a><a name="en-us_topic_0018073216_li51081423164738"></a><strong id="faq_eip_0022__en-us_topic_0018073216_b62521877164816">ip route delete default</strong></p>
|
|
<div class="notice" id="faq_eip_0022__en-us_topic_0018073216_note1762381210332"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="faq_eip_0022__en-us_topic_0018073216_p96231412163313">Exercise caution when deleting the default route because this operation will interrupt the network and result in SSH login failures.</p>
|
|
</div></div>
|
|
</li><li id="faq_eip_0022__en-us_topic_0018073216_li16873338164820">Run the following command to configure a new default route:<p id="faq_eip_0022__en-us_topic_0018073216_p2759619316498"><a name="faq_eip_0022__en-us_topic_0018073216_li16873338164820"></a><a name="en-us_topic_0018073216_li16873338164820"></a><strong id="faq_eip_0022__en-us_topic_0018073216_b7933526124213">ip route add 0.0.0.0/0 dev eth1 via 192.168.2.1</strong></p>
|
|
<p id="faq_eip_0022__en-us_topic_0018073216_p52517685164934">In the preceding command, <strong id="faq_eip_0022__en-us_topic_0018073216_b1278713493">192.168.2.1</strong> is the gateway IP address of standby NIC <strong id="faq_eip_0022__en-us_topic_0018073216_b1027215995">eth1</strong>.</p>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="faq_eip.html">EIP Binding and Unbinding</a></div>
|
|
</div>
|
|
</div>
|
|
|