New-VMSwitch
New-VMSwitch
Creates a new virtual switch on one or more virtual machine hosts.
구문
Parameter Set: NetAdapterName
New-VMSwitch [-Name] <String> -NetAdapterName <String> [-AllowManagementOS <Boolean> ] [-ComputerName <String[]> ] [-EnableIov <Boolean> ] [-MinimumBandwidthMode <VMSwitchBandwidthMode> ] [-Notes <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: NetAdapterInterfaceDescription
New-VMSwitch [-Name] <String> -NetAdapterInterfaceDescription <String> [-AllowManagementOS <Boolean> ] [-ComputerName <String[]> ] [-EnableIov <Boolean> ] [-MinimumBandwidthMode <VMSwitchBandwidthMode> ] [-Notes <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SwitchType
New-VMSwitch [-Name] <String> -SwitchType <VMSwitchType> [-ComputerName <String[]> ] [-EnableIov <Boolean> ] [-MinimumBandwidthMode <VMSwitchBandwidthMode> ] [-Notes <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
자세한 설명
The New-VMSwitch cmdlet creates a new virtual switch on one or more virtual machine hosts.
매개 변수
-AllowManagementOS<Boolean>
Specifies whether the parent partition (i.e. the management operating system) is to have access to the physical NIC bound to the virtual switch to be created.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
True |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-ComputerName<String[]>
Specifies one or more Hyper-V hosts on which the virtual switch is to be created. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer — use “localhost” or a dot (“.”) to specify the local computer explicitly.
별칭 |
PSComputerName |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-EnableIov<Boolean>
Specifies that IO virtualization is to be enabled on the virtual switch to be created.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-MinimumBandwidthMode<VMSwitchBandwidthMode>
Specifies how minimum bandwidth is to be configured on the virtual switch. Allowed values are Absolute, Default, None, or Weight. If Absolute is specified, minimum bandwidth is bits per second. If Weight is specified, minimum bandwidth is a value ranging from 1 to 100. If None is specified, minimum bandwidth is disabled on the switch – that is, users cannot configure it on any network adapter connected to the switch. If Default is specified, the system will set the mode to Weight, if the switch is not IOV-enabled, or None if the switch is IOV-enabled.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
weight |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Name<String>
Specifies the name of the switch to be created.
별칭 |
SwitchName |
필수 여부 |
true |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Notes<String>
Specifies a note to be associated with the switch to be created.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-SwitchType<VMSwitchType>
Specifies the type of the switch to be created. Allowed values are Internal and Private. To create an External virtual switch, specify either the NetAdapterInterfaceDescription or the NetAdapterName parameter, which implicitly set the type of the virtual switch to External.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-NetAdapterInterfaceDescription<String>
Specifies the interface description of the network adapter to be bound to the switch to be created. You can use the Get-NetAdapter cmdlet to get the interface description of a network adapter.
별칭 |
InterfaceDescription |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-NetAdapterName<String>
Specifies the name of the network adapter to be bound to the switch to be created. You can use the Get-NetAdapter cmdlet to get the interface description of a network adapter.
별칭 |
InterfaceAlias |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-Confirm
cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.
필수 여부 |
false |
위치 |
named |
기본값 |
false |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-WhatIf
cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.
필수 여부 |
false |
위치 |
named |
기본값 |
false |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
- Microsoft.HyperV.PowerShell.EthernetSwitch
예제
Example 1
Creates a new switch QoS switch, which binds to a network adapter called Wired Ethernet Connection 3 and supports weight-based minimum bandwidth.
PS C:\> New-VMSwitch "QoS Switch" -NetAdapterName "Wired Ethernet Connection 3" -MinimumBandwidthMode Weight