Set-SCNativeUplinkPortProfile
更新原生上行通訊埠設定檔。
Syntax
Set-SCNativeUplinkPortProfile
[-AddLogicalNetworkDefinition <LogicalNetworkDefinition[]>]
[-RemoveLogicalNetworkDefinition <LogicalNetworkDefinition[]>]
[-VMMServer <ServerConnection>]
[-NativeUplinkPortProfile] <NativeUplinkPortProfile>
[-Name <String>]
[-Description <String>]
[-EnableNetworkVirtualization <Boolean>]
[-LBFOLoadBalancingAlgorithm <NetworkAdapterLBFOLoadBalancingAlgorithm>]
[-LBFOTeamMode <NetworkAdapterLBFOTeamMode>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Set-SCNativeUplinkPortProfile Cmdlet 會更新原生上行通訊埠設定檔。 您可以使用它來新增或移除邏輯網路定義。
範例
範例 1:從原生上行通訊埠設定檔移除邏輯網路定義
PS C:\> $LogNetDefinition = Get-SCLogicalNetworkDefinition -Name "Logical Network Definition 01"
PS C:\> Get-SCNativeUplinkPortProfile -Name "NativeUplinkPortProfile01" | Set-SCNativeUplinkPortProfile -RemoveLogicalNetworkDefinition $LogNetDefinition
第一個命令會取得名為邏輯網路定義 01 的邏輯網路定義物件,並將物件儲存在$LogNetDefinition變數中。
第二個命令會取得名為 NativeUplinkPortProfile01 的原生上行通訊埠設定檔物件,並使用管線運算子將物件傳遞至 Set-SCNativeUplinikPortProfile。 這會從 NativeUplinkPortProfile01 中移除邏輯網路定義 01。
參數
-AddLogicalNetworkDefinition
指定這個 Cmdlet 所加入之邏輯網路定義物件的陣列。
若要取得邏輯網路定義物件,請使用 Get-SCLogicalNetworkDefinition Cmdlet。
Type: | LogicalNetworkDefinition[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Description
指定埠設定檔的描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableNetworkVirtualization
指出是否啟用網路虛擬化。 預設值為 $False。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定追蹤和儲存作業進度的變數。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LBFOLoadBalancingAlgorithm
指定負載平衡和容錯移轉 (LBFO) 網路介面卡負載平衡演算法。 此參數可接受的值為:
- TransortPorts
- IPAddresses
- MACAddresses
- HyperVPort
- 動態
- HostDefault
Type: | NetworkAdapterLBFOLoadBalancingAlgorithm |
Accepted values: | TransportPorts, IPAddresses, MacAddresses, HyperVPort, Dynamic, HostDefault |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LBFOTeamMode
指定負載平衡和容錯移轉的小組模式, (LBFO) 網路介面卡。
Type: | NetworkAdapterLBFOTeamMode |
Accepted values: | Static, SwitchIndependent, Lacp |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 Virtual Machine Manager (VMM) 物件的名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NativeUplinkPortProfile
指定原生上行通訊埠設定檔物件。
Type: | NativeUplinkPortProfile |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PROTipID
指定觸發此動作 (PRO 提示) 效能和資源優化提示的識別碼。 此參數可讓您稽核 PRO 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveLogicalNetworkDefinition
指定要移除的邏輯網路定義物件的陣列。
若要取得邏輯網路定義物件,請使用 Get-SCLogicalNetworkDefinition Cmdlet。
Type: | LogicalNetworkDefinition[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RunAsynchronously
表示作業會以非同步方式執行,讓控制項立即返回命令殼層。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定 VMM 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |