Windows操作系统
<section class="section" id="Windows_OS__section_cgt_krl_svb"><h2 class="doc-tairway">重命名主网卡和拓展网卡名称(可选)</h2>
<p class="p">重命名网卡可以有效辨别对应的网卡,该步骤为可选非必需,您可视情况决定是否操作。</p>
<p class="p"><strong class="ph b">操作步骤</strong></p>
<ol class="ol" id="Windows_OS__ol_ehn_nrl_svb">
<li class="li">分别登录ECS_A和ECS_B服务器,右键单击<span class="ph uicontrol">开始</span>图标,选择<span class="ph uicontrol">运行</span>。</li>
<li class="li">弹出<span class="ph uicontrol">运行</span>对话框,输入ncpa.cpl,单击<span class="ph uicontrol">确定</span>。<p class="p"><img class="image" id="Windows_OS__image_qkw_srl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-179c635b9782.png"></p></li>
<li class="li">弹出<span class="ph uicontrol">网络连接</span>页面,右键单击<span class="ph uicontrol">nic0</span>区域。</li>
<li class="li">4. 在弹出的对话框中单击<span class="ph uicontrol">重命名</span>,输入新命名即可。<div class="note note note_note" id="Windows_OS__note_fvr_vrl_svb"><span class="note__title">说明:</span> 主网卡为nic0,拓展网卡为nic1。</div><p class="p"><img class="image" id="Windows_OS__image_tx2_xrl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-11807ced9e1e.png"></p></li>
</ol>
</section>
<section class="section" id="Windows_OS__section_mtp_xrl_svb"><h2 class="doc-tairway">调整主网卡和拓展网卡顺序</h2>
<p class="p"><strong class="ph b">操作步骤</strong></p>
<ol class="ol" id="Windows_OS__ol_bg3_csl_svb">
<li class="li">分别登录ECS_A和ECS_B服务器,右键单击<span class="ph uicontrol">开始</span>图标,选择<span class="ph uicontrol">运行</span>。</li>
<li class="li">弹出<span class="ph uicontrol">运行</span>对话框,输入ncpa.cpl,单击<span class="ph uicontrol">确定</span>。<p class="p"><img class="image" id="Windows_OS__image_ldk_hsl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-163ebca3984a.png"></p></li>
<li class="li">弹出<span class="ph uicontrol">网络连接</span>页面,按下<span class="ph uicontrol">alt键</span>,在顶部菜单栏单击<span class="ph menucascade"><span class="ph uicontrol">高级</span><abbr> > </abbr><span class="ph uicontrol">高级设置</span></span>。<p class="p"><img class="image" id="Windows_OS__image_qql_msl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-141fcc7e9e5b.png"></p></li>
<li class="li">弹出<span class="ph uicontrol">高级设置</span>页面,通过上下箭头调整主网卡和扩展网卡的顺序,确保主网卡nic0排在扩展网卡nic1上面。<p class="p"><img class="image" id="Windows_OS__image_lhk_4sl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-14a831859be1.png"></p></li>
<li class="li">调整完成后,单击<span class="ph uicontrol">确定</span>。</li>
</ol>
</section>
<section class="section" id="Windows_OS__section_b5v_qsl_svb"><h2 class="doc-tairway">调整主网卡和拓展网卡跃点数</h2>
<p class="p"><strong class="ph b">操作步骤</strong></p>
<ol class="ol" id="Windows_OS__ol_esn_ssl_svb">
<li class="li">分别登录ECS_A和ECS_B服务器,右键单击<span class="ph uicontrol">开始</span>图标,选择<span class="ph uicontrol">运行</span>。</li>
<li class="li">弹出<span class="ph uicontrol">运行</span>对话框,输入ncpa.cpl,单击<span class="ph uicontrol">确定</span>。<p class="p"><img class="image" id="Windows_OS__image_u35_htl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-1f7a00399bc9.png"></p></li>
<li class="li">弹出<span class="ph uicontrol">网络连接</span>页面,右键单击主网卡nic0区域。<p class="p"><img class="image" id="Windows_OS__image_z32_ktl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-1be911469f7d.png"></p></li>
<li class="li">在弹出的选项中单击<span class="ph uicontrol">属性</span>,弹出<span class="ph uicontrol">nic0属性</span>页面。<p class="p"><img class="image" id="Windows_OS__image_xhx_mtl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-143d121d9ee2.png"></p></li>
<li class="li">在<strong class="ph b"><span class="ph uicontrol">此连接使用下列项目</span></strong>区域,单击<span class="ph menucascade"><span class="ph uicontrol">Internet协议版本4(TCP/IPv4)</span><abbr> > </abbr><span class="ph uicontrol">属性</span></span>。</li>
<li class="li">弹出<span class="ph uicontrol">Internet协议版本4(TCP/IPv4)属性</span>页面,单击右下角<strong class="ph b">高级</strong>。</li>
<li class="li">弹出<span class="ph uicontrol">高级TCP/IP设置</span>页面,在<span class="ph uicontrol">IP设置</span>区域,取消勾选<span class="ph uicontrol">自动跃点</span>,在<span class="ph uicontrol">接口跃点数</span>后输入跃点数字,本例中输入8。<p class="p"><img class="image" id="Windows_OS__image_n1b_qtl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-1e9c05ea9df3.png"></p></li>
<li class="li">单击<span class="ph uicontrol">确定</span>。若弹出多网关提示,直接单击<span class="ph uicontrol">是</span>,保留配置即可。<p class="p"><img class="image" id="Windows_OS__image_imy_xtl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-17521fdb9e6d.png"></p></li>
<li class="li">按照以上同样的方法,将拓展网卡nic1的跃点数设置为10。<p class="p"><img class="image" id="Windows_OS__image_tv4_ztl_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-186d23689cdd.png"></p></li>
</ol>
</section>
<section class="section" id="Windows_OS__section_by2_15l_svb"><h2 class="doc-tairway">添加静态永久路由表</h2>
<p class="p">ECS_A服务器扩展网卡nic1访问ECS_B服务器扩展网卡nic1。</p>
<p class="p"><strong class="ph b">操作步骤</strong></p>
<ol class="ol" id="Windows_OS__ol_kv3_d5l_svb">
<li class="li">登录被访问的ECS_B服务器,右键单击<span class="ph uicontrol">开始</span>图标,选择<span class="ph uicontrol">运行</span>。</li>
<li class="li">弹出<span class="ph uicontrol">运行</span>对话框,输入cmd,单击<span class="ph uicontrol">确定</span>。<p class="p"><img class="image" id="Windows_OS__image_pnz_f5l_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-1a2f64a496af.png"></p></li>
<li class="li">在cmd命令提示符中输入<strong class="ph b">ipconfig /all</strong>命令,获取ECS_B服务器扩展网卡nic1的IPv4地址和子网掩码信息。<p class="p"><img class="image" id="Windows_OS__image_mxs_h5l_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-1ac25bf89a9a.png"></p><div class="note note note_note" id="Windows_OS__note_v23_35l_svb"><span class="note__title">说明:</span> 扩展网卡一般为第二个网卡,其名称不一定是nic1,这个请以实际环境为准。</div></li>
<li class="li">可以查看到需要访问的ECS_B服务器nic1网卡的目标IP为10.17.60.10,掩码为255.255.255.128。</li>
<li class="li">同样的方法获取ECS_A服务器nic1的网关信息,可以查看到访问方ECS_A服务器的扩展网卡nic1的默认网关为10.17.56.1。<p class="p"><img class="image" id="Windows_OS__image_p2x_m5l_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-1969f4339675.png"></p></li>
<li class="li">输入如下命令添加永久路由表:<p class="p"><strong class="ph b">route add 10.17.60.0 mask 255.255.255.128 10.17.56.1
–p</strong></p><p class="p">其中:</p><ul class="ul" id="Windows_OS__ul_mnl_45l_svb">
<li class="li">10.17.60.0 和 255.255.255.128为被访问方ECS_B的扩展网卡nic1的子网。</li>
<li class="li">10.17.56.1为访问方ECS_A的nic1网卡的默认网关。</li>
<li class="li">–p参数表示永久路由,重启Windows后路由表不会消失。</li>
</ul></li>
<li class="li">可以输入route print -4命令检查ipv4路由表,也可以使用route print命令显示所有路由表信息。<p class="p"><img class="image" id="Windows_OS__image_t1w_p5l_svb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20232006152129-1c5c41299d43.png"></p></li>
</ol>
</section>
<section class="section" id="Windows_OS__section_ulk_q5l_svb"><h2 class="doc-tairway">ECS_B服务器扩展网卡nic1访问ECS_A服务器扩展网卡nic1</h2>
<p class="p">在ECS_B上添加访问ECS_A的永久静态路由表操作方法,可以参考ECS_A服务器扩展网卡nic1访问ECS_B服务器扩展网卡nic1。</p>
</section>
<section class="section" id="Windows_OS__section_ibl_r5l_svb"><h2 class="doc-tairway">删除静态永久路由表</h2>
<p class="p">如果需要删除添加的永久路由表,输入如下命令即可:</p>
<p class="p"><strong class="ph b">route delete 10.17.60.0 mask 255.255.255.128</strong></p>
<p class="p">其中:</p>
<ul class="ul" id="Windows_OS__ul_vsj_s5l_svb">
<li class="li">10.17.60.0 :表示目标网络地址。</li>
<li class="li">255.255.255.128:表示目标网络掩码。</li>
</ul>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!