Files
doc-exports/docs/bms/umn/en-us_topic_0112790034.html
Zaoxu, Li 1655d41c64 bms_umn_0208
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
2024-09-20 14:27:56 +00:00

80 lines
14 KiB
HTML

<a name="EN-US_TOPIC_0112790034"></a><a name="EN-US_TOPIC_0112790034"></a>
<h1 class="topictitle1">Configuring a NIC (Windows Server)</h1>
<div id="body1526540384632"><p id="EN-US_TOPIC_0112790034__p67668472126"></p>
<p id="EN-US_TOPIC_0112790034__p17487147154913">This section uses Windows Server 2012 R2 Standard as an example to describe how to configure a NIC added to or deleted from a BMS.</p>
<div class="note" id="EN-US_TOPIC_0112790034__note2011134142518"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0112790034__ul1582918451124"><li id="EN-US_TOPIC_0112790034__li850742517137">The configuration methods of other Windows Server OSs are similar to that of Windows Server 2012 R2 Standard.</li><li id="EN-US_TOPIC_0112790034__li1183527117">If the network is still disconnected after the NIC is added and the BMS is restarted, add the NIC again.</li></ul>
</div></div>
<div class="section" id="EN-US_TOPIC_0112790034__section208961921154819"><h4 class="sectiontitle">Add a NIC</h4><ol id="EN-US_TOPIC_0112790034__ol158154734812"><li id="EN-US_TOPIC_0112790034__li1558174719483"><a name="EN-US_TOPIC_0112790034__li1558174719483"></a><a name="li1558174719483"></a>Obtain information about the NIC to be added.
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0112790034__table1669415379510" frame="border" border="1" rules="all"><caption><b>Table 1 </b>NIC information</caption><thead align="left"><tr id="EN-US_TOPIC_0112790034__row1669543725112"><th align="left" class="cellrowborder" valign="top" width="18.181818181818183%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="EN-US_TOPIC_0112790034__p369643735111">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="63.63636363636363%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="EN-US_TOPIC_0112790034__p18696537135118">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.181818181818183%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="EN-US_TOPIC_0112790034__p1969613379517">Example Value</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0112790034__row15696143715112"><td class="cellrowborder" valign="top" width="18.181818181818183%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="EN-US_TOPIC_0112790034__p4696193725113">VLAN and MAC address</p>
</td>
<td class="cellrowborder" valign="top" width="63.63636363636363%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="EN-US_TOPIC_0112790034__p2696143775114">Specifies the VLAN information and MAC address of the NIC. To obtain them, perform the following operations:</p>
<ol type="a" id="EN-US_TOPIC_0112790034__ol14133135462114"><li id="EN-US_TOPIC_0112790034__li821764712216">In the BMS list, click the name of the target BMS.</li><li id="EN-US_TOPIC_0112790034__li58541779231"><a name="EN-US_TOPIC_0112790034__li58541779231"></a><a name="li58541779231"></a>Click the <strong id="EN-US_TOPIC_0112790034__b294214565513">NICs</strong> tab, locate the row that contains the NIC to be added, and click <span><img id="EN-US_TOPIC_0112790034__image733261764518" src="en-us_image_0112918070.png"></span> to expand details.</li><li id="EN-US_TOPIC_0112790034__li1080494243">Obtain the values of <strong id="EN-US_TOPIC_0112790034__b2644134593017">VLAN</strong> and <strong id="EN-US_TOPIC_0112790034__b164524573019">MAC Address</strong>.</li></ol>
</td>
<td class="cellrowborder" valign="top" width="18.181818181818183%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="EN-US_TOPIC_0112790034__p1569683715512">2812</p>
<p id="EN-US_TOPIC_0112790034__p2086519914612">fa:16:3e:15:38:07</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0112790034__row1269673714515"><td class="cellrowborder" valign="top" width="18.181818181818183%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="EN-US_TOPIC_0112790034__p13696183735110">Gateway</p>
</td>
<td class="cellrowborder" valign="top" width="63.63636363636363%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="EN-US_TOPIC_0112790034__p4696103719515">Specifies the gateway address of the NIC. To obtain them, perform the following operations:</p>
<ol type="a" id="EN-US_TOPIC_0112790034__ol1433103653118"><li id="EN-US_TOPIC_0112790034__li32431027104614"><a name="EN-US_TOPIC_0112790034__li32431027104614"></a><a name="li32431027104614"></a>On the NIC details page in <a href="#EN-US_TOPIC_0112790034__li58541779231">2</a>, obtain the subnet information.</li><li id="EN-US_TOPIC_0112790034__li324492710467">On the BMS details page, click the link following <strong id="EN-US_TOPIC_0112790034__b67035693019">VPC</strong> to switch to the VPC list.</li><li id="EN-US_TOPIC_0112790034__li945051514914">Click the name of the VPC to which the BMS belongs to go to the VPC details page.</li><li id="EN-US_TOPIC_0112790034__li2077982211506">Click the <strong id="EN-US_TOPIC_0112790034__b124466203115">Subnets</strong> tab and obtain the gateway address of the subnet in <a href="#EN-US_TOPIC_0112790034__li32431027104614">1</a>.</li></ol>
</td>
<td class="cellrowborder" valign="top" width="18.181818181818183%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="EN-US_TOPIC_0112790034__p9696173714518">192.168.1.1</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="EN-US_TOPIC_0112790034__li1631313117514">Log in to a Windows BMS.</li><li id="EN-US_TOPIC_0112790034__li05281426185416">On the Windows PowerShell CLI of the BMS, run the following command to check whether the NIC information contains <strong id="EN-US_TOPIC_0112790034__b1669933013216">Team1</strong> (port group name of the VPC):<p id="EN-US_TOPIC_0112790034__p7816240114915"><strong id="EN-US_TOPIC_0112790034__b20132542144913">Get-NetAdapter</strong></p>
<ul id="EN-US_TOPIC_0112790034__ul265154504115"><li id="EN-US_TOPIC_0112790034__li1665184511417">If yes, go to step <a href="#EN-US_TOPIC_0112790034__li27700107517">4</a>.</li><li id="EN-US_TOPIC_0112790034__li145362536416">If no, contact the customer service.</li></ul>
<p id="EN-US_TOPIC_0112790034__p133717945519">Information similar to the following is displayed.</p>
<p id="EN-US_TOPIC_0112790034__p913413202449"><span><img id="EN-US_TOPIC_0112790034__image21321720194419" src="en-us_image_0113093166.png" title="Click to enlarge" class="imgResize"></span></p>
<div class="note" id="EN-US_TOPIC_0112790034__note1470210160523"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0112790034__p970220168521"><strong id="EN-US_TOPIC_0112790034__b182828123333">eth0</strong> and <strong id="EN-US_TOPIC_0112790034__b151256163334">eth1</strong> are the network devices that carry the VPC.</p>
</div></div>
</li><li id="EN-US_TOPIC_0112790034__li27700107517"><a name="EN-US_TOPIC_0112790034__li27700107517"></a><a name="li27700107517"></a>Run the following commands to add the NIC:<p id="EN-US_TOPIC_0112790034__p91537179560"><a name="EN-US_TOPIC_0112790034__li27700107517"></a><a name="li27700107517"></a><strong id="EN-US_TOPIC_0112790034__b4283105113">Add-NetLbfoTeamNIC</strong> <strong id="EN-US_TOPIC_0112790034__b16955511191116">-Team</strong> <strong id="EN-US_TOPIC_0112790034__b956281410116">"Team1"</strong> <strong id="EN-US_TOPIC_0112790034__b165621143111">-VlanID</strong> <em id="EN-US_TOPIC_0112790034__i61803175218">vlan_id</em> <strong id="EN-US_TOPIC_0112790034__b339913196111">-Name</strong> <strong id="EN-US_TOPIC_0112790034__b16399121914110">"Team1-vlan-</strong><em id="EN-US_TOPIC_0112790034__i8228820204514">vlan_id</em><strong id="EN-US_TOPIC_0112790034__b127162331112">"</strong> <strong id="EN-US_TOPIC_0112790034__b108182331117">-Confirm:$false</strong></p>
<p id="EN-US_TOPIC_0112790034__p95281268539"><strong id="EN-US_TOPIC_0112790034__b554132841116">Set-NetAdapter</strong> <strong id="EN-US_TOPIC_0112790034__b175492811113">-Name</strong> <strong id="EN-US_TOPIC_0112790034__b15156426171114">"Team1-vlan-</strong><em id="EN-US_TOPIC_0112790034__i046191684517">vlan_id</em><strong id="EN-US_TOPIC_0112790034__b1513963471119">"</strong> <strong id="EN-US_TOPIC_0112790034__b16214133614114">-MacAddress</strong> <strong id="EN-US_TOPIC_0112790034__b102058387115">"mac_addr"</strong> <strong id="EN-US_TOPIC_0112790034__b920614387117">-Confirm:$false</strong></p>
<p id="EN-US_TOPIC_0112790034__p13631011155419">In the preceding command, <strong id="EN-US_TOPIC_0112790034__b8864937163516">Team1</strong> is the port group name of the VPC, <strong id="EN-US_TOPIC_0112790034__b133541553113519">vlan_id</strong> is the VLAN information obtained in step <a href="#EN-US_TOPIC_0112790034__li1558174719483">1</a> (such as <strong id="EN-US_TOPIC_0112790034__b3851112013614">2812</strong>), and <strong id="EN-US_TOPIC_0112790034__b15398192915369">mac_addr</strong> is the MAC address obtained in step <a href="#EN-US_TOPIC_0112790034__li1558174719483">1</a> (such as <strong id="EN-US_TOPIC_0112790034__b1083717574367">fa:16:3e:15:38:07</strong>).</p>
<p id="EN-US_TOPIC_0112790034__p11701356164812"><span><img id="EN-US_TOPIC_0112790034__image1570117567483" src="en-us_image_0113093405.png" title="Click to enlarge" class="imgResize"></span></p>
</li><li id="EN-US_TOPIC_0112790034__li10736182925914">Run the following command to check the status of the NIC device:<p id="EN-US_TOPIC_0112790034__p6677378496"><a name="EN-US_TOPIC_0112790034__li10736182925914"></a><a name="li10736182925914"></a><strong id="EN-US_TOPIC_0112790034__b100124244910">Get-</strong><strong id="EN-US_TOPIC_0112790034__b524416357496">NetAdapter</strong></p>
<p id="EN-US_TOPIC_0112790034__p1852783834916">Information similar to the following is displayed.</p>
<p id="EN-US_TOPIC_0112790034__p196817101010"><span><img id="EN-US_TOPIC_0112790034__image19411741019" src="en-us_image_0113096480.png" title="Click to enlarge" class="imgResize"></span></p>
</li><li id="EN-US_TOPIC_0112790034__li1348513131075">Ping the gateway from the new network device to check whether the network connectivity is normal.<p id="EN-US_TOPIC_0112790034__p209691154181112"><a name="EN-US_TOPIC_0112790034__li1348513131075"></a><a name="li1348513131075"></a>The IPv4 address of the added network device <strong id="EN-US_TOPIC_0112790034__b2053195020379">Team1-vlan-2812</strong> is that shown in the red box in the following figure.</p>
<p id="EN-US_TOPIC_0112790034__p12308736192114"><span><img id="EN-US_TOPIC_0112790034__image11308183612213" src="en-us_image_0113099288.png" title="Click to enlarge" class="imgResize"></span></p>
<p id="EN-US_TOPIC_0112790034__p1877621415710">Use the gateway address obtained from step <a href="#EN-US_TOPIC_0112790034__li1558174719483">1</a>.</p>
<p id="EN-US_TOPIC_0112790034__p3535155017215">Information similar to the following is displayed.</p>
<p id="EN-US_TOPIC_0112790034__p12982201920227"><span><img id="EN-US_TOPIC_0112790034__image14982161972219" src="en-us_image_0113099330.png" title="Click to enlarge" class="imgResize"></span></p>
</li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0112790034__section5744173334810"><h4 class="sectiontitle">Delete a NIC</h4><ol id="EN-US_TOPIC_0112790034__ol4603193413811"><li id="EN-US_TOPIC_0112790034__li960312341080"><a name="EN-US_TOPIC_0112790034__li960312341080"></a><a name="li960312341080"></a>Obtain the VLAN and MAC address of the NIC to be deleted.</li><li id="EN-US_TOPIC_0112790034__li981817319913">Log in to a Windows BMS.</li><li id="EN-US_TOPIC_0112790034__li638122918919">On the Windows PowerShell CLI of the BMS, run the following command to check information about the NIC to be added:<p id="EN-US_TOPIC_0112790034__p1150241195611"><a name="EN-US_TOPIC_0112790034__li638122918919"></a><a name="li638122918919"></a><strong id="EN-US_TOPIC_0112790034__b433218469119">Get-NetLbfoTeamNIC</strong> <strong id="EN-US_TOPIC_0112790034__b1032434841115">-Team</strong> <strong id="EN-US_TOPIC_0112790034__b13324548191110">Team1</strong></p>
<p id="EN-US_TOPIC_0112790034__p1911111133116"><span><img id="EN-US_TOPIC_0112790034__image121151115316" src="en-us_image_0113100398.png" title="Click to enlarge" class="imgResize"></span></p>
</li><li id="EN-US_TOPIC_0112790034__li4483427910">Run the following command to delete the NIC:<p id="EN-US_TOPIC_0112790034__p1819017731219"><a name="EN-US_TOPIC_0112790034__li4483427910"></a><a name="li4483427910"></a><strong id="EN-US_TOPIC_0112790034__b12845105251110">Remove-NetLbfoTeamNIC</strong> <strong id="EN-US_TOPIC_0112790034__b27851254161114">-Team</strong> <strong id="EN-US_TOPIC_0112790034__b13286105781117">"Team1"</strong> <strong id="EN-US_TOPIC_0112790034__b928615714111">-VlanID</strong> <em id="EN-US_TOPIC_0112790034__i612825216237">vlan_id</em></p>
<p id="EN-US_TOPIC_0112790034__p6827141192410">In the command, <em id="EN-US_TOPIC_0112790034__i83770126510208">vlan_id</em> indicates the VLAN information obtained in step <a href="#EN-US_TOPIC_0112790034__li960312341080">1</a>.</p>
<p id="EN-US_TOPIC_0112790034__p167811546163114"><span><img id="EN-US_TOPIC_0112790034__image1578194614318" src="en-us_image_0113100585.png" title="Click to enlarge" class="imgResize"></span></p>
</li><li id="EN-US_TOPIC_0112790034__li92045560238">Run the following commands to query the NIC information and verify that the NIC is deleted:<p id="EN-US_TOPIC_0112790034__p9281450112414"><a name="EN-US_TOPIC_0112790034__li92045560238"></a><a name="li92045560238"></a><strong id="EN-US_TOPIC_0112790034__b162516311216">Get-NetLbfoTeamNIC</strong> <strong id="EN-US_TOPIC_0112790034__b5104451123">-Team</strong> <strong id="EN-US_TOPIC_0112790034__b1610595191218">Team1</strong></p>
<p id="EN-US_TOPIC_0112790034__p16281750132412"><strong id="EN-US_TOPIC_0112790034__b1170115572410">Get-NetAdapter</strong></p>
<p id="EN-US_TOPIC_0112790034__p554814156328"><span><img id="EN-US_TOPIC_0112790034__image2548121503214" src="en-us_image_0113102174.png" title="Click to enlarge" class="imgResize"></span></p>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0140749123.html">VPC</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>