New-SCNativeUplinkPortProfile
创建本机上行端口配置文件。
语法
New-SCNativeUplinkPortProfile
[-LogicalNetworkDefinition <LogicalNetworkDefinition[]>]
[-VMMServer <ServerConnection>]
[-Name] <String>
[-Description <String>]
[-EnableNetworkVirtualization <Boolean>]
[-LBFOLoadBalancingAlgorithm <NetworkAdapterLBFOLoadBalancingAlgorithm>]
[-LBFOTeamMode <NetworkAdapterLBFOTeamMode>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
New-SCNativeUplinkPortProfile cmdlet 为本机上行端口配置文件创建对象。
示例
示例 1:使用逻辑网络定义创建本机上行端口配置文件
PS C:\> $LogNetDefinition = Get-SCLogicalNetworkDefinition -Name "Logical Network Definition 01"
PS C:\> New-SCNativeUplinkPortProfile -Name "NativeUplinkPortProfile01" -LogicalNetworkDefinition $LogNetDefinition -EnableNetworkVirtualization $True
第一个命令获取名为“逻辑网络定义 01”的逻辑网络定义对象,并将该对象存储在$LogNetDefinition变量中。
第二个命令使用名为 Logical Network Definition 01 的网络定义对象创建名为 NativeUplinkPortProfile01 的本机上行端口配置文件,并启用网络虚拟化。
参数
-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 |
-LogicalNetworkDefinition
指定逻辑网络定义 (也称为网络站点) ,其中包含 IP 地址池服务的子网。 子网由 Subnet 参数指定。
Type: | LogicalNetworkDefinition[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
指定 Virtual Machine Manager (VMM) 对象的名称。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业异步运行,以便控件立即返回到命令 shell。
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 |