New-SCLogicalSwitch
建立邏輯交換器。
Syntax
New-SCLogicalSwitch
-Name <String>
[-VirtualSwitchExtensions <VirtualSwitchExtension[]>]
[-Description <String>]
[-EnableSriov <Boolean>]
[-SwitchUplinkMode <SwitchUplinkMode>]
[-MinimumBandwidthMode <BandwidthMode>]
[-VMMServer <ServerConnection>]
[-EnablePacketDirect <Boolean>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
New-SCLogicalSwitch Cmdlet 會建立邏輯交換器物件。
範例
範例 1:建立邏輯交換器
PS C:\> $VSwitchExt = Get-SCVirtualSwitchExtension -Name "VirtualSwitchExtension01"
PS C:\> New-SCLogicalSwitch -Name "LogicalSwitch01" -VirtualSwitchExtensions $VSwitchExt -MinimumBandwidthMode Default
第一個命令會取得名為 VirtualSwitchExtension01 的虛擬交換器擴充物件,並將物件儲存在$VSwitchExt變數中。
第二個命令會使用 VirtualSwitchExtension01 建立名為 LogicalSwitch01 的邏輯交換器。
參數
-Description
指定邏輯交換器的描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnablePacketDirect
在交換器上啟用封包直接存取。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableSriov
指出是否啟用單一根 I/O 虛擬化 (SR-IOV) 。
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 |
-MinimumBandwidthMode
指定邏輯交換器的最小頻寬模式。 此參數可接受的值為:
- Default
- Weight
- 絕對
- 無
Type: | BandwidthMode |
Accepted values: | Default, Weight, Absolute, None |
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: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定觸發此動作之 PRO 提示 (PRO 提示的識別碼) 。 此參數可讓您稽核 PRO 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
表示作業會以非同步方式執行,讓控制項立即返回命令殼層。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SwitchUplinkMode
指定交換器上行模式物件。
Type: | SwitchUplinkMode |
Accepted values: | NoTeam, Team, EmbeddedTeam |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualSwitchExtensions
指定虛擬交換器擴充物件的陣列。
若要取得虛擬交換器擴充物件,請使用 Get-SCVirtualSwitchExtension Cmdlet。
Type: | VirtualSwitchExtension[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
指定 VMM 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |