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>
24 lines
4.7 KiB
HTML
24 lines
4.7 KiB
HTML
<a name="faq_eip_0009"></a><a name="faq_eip_0009"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Access the Internet Using an EIP Bound to an Extension NIC?</h1>
|
|
<div id="body8662426"><ol id="faq_eip_0009__en-us_topic_0118498796_ol521418201717"><li id="faq_eip_0009__en-us_topic_0118498796_li1281819175">After an <span id="faq_eip_0009__en-us_topic_0118498796_text13703911715"></span><span id="faq_eip_0009__en-us_topic_0118498796_text1937016913173">EIP</span> is bound to an extension NIC, log in to the <span id="faq_eip_0009__en-us_topic_0118498796_text1883686121519">ECS</span> and use the <strong id="faq_eip_0009__en-us_topic_0118498796_b566630726194536">route</strong> command to query the routes.<p id="faq_eip_0009__en-us_topic_0118498796_p14221812174">You can run <strong id="faq_eip_0009__en-us_topic_0118498796_b505833318194734">route --help</strong> to learn more about the <strong id="faq_eip_0009__en-us_topic_0118498796_b842352706194744">route</strong> command.</p>
|
|
<div class="fignone" id="faq_eip_0009__en-us_topic_0118498796_fig59632443507"><span class="figcap"><b>Figure 1 </b>Viewing route information</span><br><span><img id="faq_eip_0009__en-us_topic_0118498796_image1963114435011" src="en-us_image_0000001785700150.png"></span></div>
|
|
</li><li id="faq_eip_0009__en-us_topic_0118498796_li56196022512">Run the <strong id="faq_eip_0009__en-us_topic_0118498796_b52209215219485">ifconfig</strong> command to view NIC information.<div class="fignone" id="faq_eip_0009__en-us_topic_0118498796_fig75581775545"><span class="figcap"><b>Figure 2 </b>Viewing NIC information</span><br><span><img id="faq_eip_0009__en-us_topic_0118498796_image1255937195420" src="en-us_image_0000001832343237.png"></span></div>
|
|
</li><li id="faq_eip_0009__en-us_topic_0118498796_li10177115810018">Enable access to the Internet through the extension NIC by default.<ol type="a" id="faq_eip_0009__en-us_topic_0118498796_ol149086433114"><li id="faq_eip_0009__en-us_topic_0118498796_li3820522123015">Run the following command to delete the default route of the primary NIC:<p id="faq_eip_0009__en-us_topic_0118498796_p101201022134311"><a name="faq_eip_0009__en-us_topic_0118498796_li3820522123015"></a><a name="en-us_topic_0118498796_li3820522123015"></a><strong id="faq_eip_0009__en-us_topic_0118498796_b14886457433">route del -net 0.0.0.0 gw 192.168.11.1 dev eth0</strong></p>
|
|
<div class="p" id="faq_eip_0009__en-us_topic_0118498796_p1116713411043">192.168.11.1 is the gateway of the subnet that the NIC works. You can view the gateway on the <strong id="faq_eip_0009__en-us_topic_0118498796_b103053714501">Summary</strong> tab page of the subnet on the management console.<div class="note" id="faq_eip_0009__en-us_topic_0118498796_note12757118133113"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="faq_eip_0009__en-us_topic_0118498796_p1875711843110">This operation will interrupt ECS communication. It is recommended that you perform the configuration by following step <a href="#faq_eip_0009__en-us_topic_0118498796_li197393270215">4</a>.</p>
|
|
</div></div>
|
|
</div>
|
|
</li><li id="faq_eip_0009__en-us_topic_0118498796_li3150154693218">Run the following command to configure the default route for the extension NIC:<p id="faq_eip_0009__en-us_topic_0118498796_p135051546183313"><a name="faq_eip_0009__en-us_topic_0118498796_li3150154693218"></a><a name="en-us_topic_0118498796_li3150154693218"></a><strong id="faq_eip_0009__en-us_topic_0118498796_b72935813312">route add default gw <strong id="faq_eip_0009__en-us_topic_0118498796_b18335223012">192.168.17.1</strong></strong></p>
|
|
</li></ol>
|
|
</li><li id="faq_eip_0009__en-us_topic_0118498796_li197393270215"><a name="faq_eip_0009__en-us_topic_0118498796_li197393270215"></a><a name="en-us_topic_0118498796_li197393270215"></a>Configure Internet access from the extension NIC based on your destination address.<p id="faq_eip_0009__en-us_topic_0118498796_p4939672615931"><a name="faq_eip_0009__en-us_topic_0118498796_li197393270215"></a><a name="en-us_topic_0118498796_li197393270215"></a>Run the following command to configure access to a specified CIDR block (for example, <em id="faq_eip_0009__en-us_topic_0118498796_i2321596515931">xx.xx</em>.0.0/16) through the extension NIC:</p>
|
|
<p id="faq_eip_0009__en-us_topic_0118498796_p5060799515106">You can configure the CIDR block as required.</p>
|
|
<p id="faq_eip_0009__en-us_topic_0118498796_p1362312207316"><strong id="faq_eip_0009__en-us_topic_0118498796_b8623192011311">route add -net xx.xx.0.0 netmask 255.255.0.0 gw 192.168.17.1</strong></p>
|
|
</li></ol>
|
|
</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>
|
|
|