PowerEdge:在 ESXI 中新增和移除 VMNic 上行鏈路

Summary: 在 VSS (標準交換器) 和 VDS (分散式交換器) 新增和移除 VMNIC

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

  • 檢視目前 vSwitch 組態和 vmkernel 使用這些命令進行介面設定:
    esxcli network vswitch standard list # list current vswitch configuration
    esxcli network vswitch dvs vmware list # list Distributed Switch configuration
    esxcli network ip interface list # list vmkernel interfaces and their configuration
    esxcli network nic list # display listing of physical adapters and their link state
  • 使用這些命令在標準 vSwitch 中新增或移除網路卡 (稱為 vmnic):
    esxcli network vswitch standard uplink remove --uplink-name=vmnic --vswitch-name=vSwitch # unlink an uplink
    esxcli network vswitch standard uplink add --uplink-name=vmnic --vswitch-name=vSwitch # add an uplink
  • 使用下列命令,在 vNetwork Distributed Switch (vDS) 間新增或移除網路卡 (稱為 vmnic):
    esxcfg-vswitch -Q vmnic -V dvPort_ID_of_vmnic dvSwitch # unlink/remove a vDS uplink
    esxcfg-vswitch -P vmnic -V unused_dvPort_ID dvSwitch # add a vDS uplink
     
    注意:如果在將管理網路遷移至分散式交換器時連線中斷,則可能需要移除或停用現有的管理 VMkernel 介面,並在具有相同 IP 組態的標準 vSwitch 連接埠群組中重新建立介面。

 

範例:-
將 vmnci4 新增至 vSwitch (標準)

新增 vswitch 的 CLI 
驗證 vswitch 現在 vmnic 4 是添加到上行鏈路。
現在確認 vswitch vmnic 4 已新增至上行鏈路

從上行鏈路移除 VMNIC vSwitch
從上行鏈路 vSwitch 0 卸下 VMNIC

vSwitch0
0 新增   VMNIC4 上行鏈路至 VDS (分散式交換器),

在新增上行鏈路連接埠之前,請確認 DVS 名稱和 DVPort 在此範例中,ID 應為可用連接埠,連接埠 11 未使用。

新增 vnic4
檢查 VMNIC 是否已新增至 DVS 上行鏈路。
檢查是否已將 VMNIC 新增至 DVS 上行鏈路

移除 VMNIC 上行鏈路來自 VDS,
從 VDS 移除 VMNIC 上行鏈路,

Affected Products

VMware ESXi 6.7.X, VMware ESXi 6.x, VMware ESXi 7.x
Article Properties
Article Number: 000198710
Article Type: How To
Last Modified: 02 Apr 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.